interface ISigner<Export extends CryptoKeyPair | string> {
    alg: SignatureAlgorithm;
    code?: number;
    did: `did:${string}:${string}`;
    didKey: `did:${string}:${string}`;
    document: DIDDocument;
    export: () => Export;
    publicKey: Uint8Array;
    sign: (message: Uint8Array) => Promise<Uint8Array<ArrayBufferLike>>;
    toString: () => string;
    type: KeyType;
    url: DIDURLObject;
}

Type Parameters

  • Export extends CryptoKeyPair | string

Hierarchy (View Summary)

Properties

JWT signing algorithm

code?: number
did: `did:${string}:${string}`
didKey: `did:${string}:${string}`
document: DIDDocument
export: () => Export
publicKey: Uint8Array
sign: (message: Uint8Array) => Promise<Uint8Array<ArrayBufferLike>>
toString: () => string
type: KeyType

Keypair type