Marmot-TS
    Preparing search index...

    Type Alias GenerateKeyPackageOptions

    Options for generating a marmot key package

    type GenerateKeyPackageOptions = {
        capabilities?: Capabilities;
        ciphersuiteImpl: CiphersuiteImpl;
        createdAt?: number;
        credential: Credential;
        extensions?: CustomExtension[];
        isLastResort?: boolean;
        lifetime?: Lifetime;
        signer: AuthorizationProofSigner;
    }
    Index
    capabilities?: Capabilities
    ciphersuiteImpl: CiphersuiteImpl
    createdAt?: number

    Injected created_at (Unix seconds) for the account identity proof. Defaults to the current time. Core-only: meant for byte-stable tests and fixtures; the client layer does not expose this option.

    credential: Credential
    extensions?: CustomExtension[]
    isLastResort?: boolean

    Whether to mark this KeyPackage as reusable using the MLS last_resort extension.

    • true: include the last_resort KeyPackage extension (reusable; helps with race windows)
    • false: omit the extension (single-use; private init_key is expected to be consumed)

    Default: true for backwards compatibility with existing marmot-ts behavior.

    lifetime?: Lifetime

    The Nostr account signer that proves this KeyPackage's leaf by signing the kind-450 account identity proof through signEvent; its public key MUST equal the credential identity. Any signEvent-capable signer works (a local key signer, NIP-07, NIP-46).