interface · Browser and Node
Identity
One agent's keys. The X25519 encryption key is derived from the Ed25519 key, as the P2P Trust Stack does.
@toip-tools/trust-coreView sourceimport { type Identity } from "@toip-tools/trust-core";
Declaration
interface Identity {
did: string;
signingSecret: Uint8Array;
signingPublic: Uint8Array;
encryptionSecret: Uint8Array;
encryptionPublic: Uint8Array;
signer: Signer;
}
Properties
didrequiredstringsigningSecretrequiredUint8Array<ArrayBufferLike>signingPublicrequiredUint8Array<ArrayBufferLike>encryptionSecretrequiredUint8Array<ArrayBufferLike>encryptionPublicrequiredUint8Array<ArrayBufferLike>signerrequiredSigner