Type Alias MintProofOptions

MintProofOptions: {
    counter?: number;
    keysetId?: string;
    outputAmounts?: OutputAmounts;
    outputData?: OutputDataLike[] | OutputDataFactory;
    p2pk?: { locktime?: number; pubkey: string; refundKeys?: string[] };
    proofsWeHave?: Proof[];
    pubkey?: string;
}

Type declaration

  • Optionalcounter?: number
  • OptionalkeysetId?: string
  • OptionaloutputAmounts?: OutputAmounts
  • OptionaloutputData?: OutputDataLike[] | OutputDataFactory
  • Optionalp2pk?: { locktime?: number; pubkey: string; refundKeys?: string[] }
  • OptionalproofsWeHave?: Proof[]
  • Optionalpubkey?: string

Optional parameters for configuring the Mint Proof operation:

  • keysetId: override the keysetId derived from the current mintKeys with a custom one. This should be a keyset that was fetched from the /keysets endpoint
  • outputAmounts: optionally specify the output's amounts to keep and to send.
  • counter: optionally set counter to derive secret deterministically. CashuWallet class must be initialized with seed phrase to take effect
  • proofsWeHave: optionally provide all currently stored proofs of this mint. Cashu-ts will use them to derive the optimal output amounts
  • pubkey: optionally locks ecash to pubkey. Will not be deterministic, even if counter is set!