@arkade-os/sdk Documentation - v0.5.0-rc.11
    Preparing search index...

    Interface ProvisionedKey

    A key the wallet provisioned for a contract we must be able to spend.

    interface ProvisionedKey {
        address: string;
        descriptor: string;
        pkScript: Uint8Array;
        pubkey: Uint8Array;
    }
    Index

    Properties

    address: string

    The receive address pkScript was decoded from, captured in the same single IWallet.getAddress read. The quote-time refund address and the covenant's refundPkScript must always name the same script, and two independent reads of a wallet that rotates its receive address would not guarantee that — reuse this, never a second getAddress() call.

    descriptor: string

    The wallet descriptor it came from. Public — persist it with the artifact; contractSigner resolves it back to a signer.

    pkScript: Uint8Array

    The Ark scriptPubKey that corresponds to this key — the pkScript of the wallet's current receive address. Returned alongside pubkey so callers building the lockup script do not need a separate IWallet.getAddress round-trip or an ArkAddress.decode call.

    pubkey: Uint8Array

    x-only pubkey to bind into the covenant.