Class HolderContext

Expand description

Holder-side context for generating holder identity keys.

Properties§

§readonly publicKey: string

Return the holder's Nostr public key.

Methods§

§

authorizeCredentialUse(
    request: HolderAuthorizationRequest,
    credential: SignedCredential,
): HolderAuthorization

Create a signed holder authorization for an auxiliary subject key and selected credential.

§

exportSecretKey(): string

Export this holder's secret key for application-managed backup or restore.

§

free(): void

§

generate(): HolderContext

Generate a new holder context with fresh holder identity keys.

§

importSecretKey(secret_key: string): HolderContext

Import a holder context from a previously exported holder secret key.