Type alias VAnchorPMSetupInput

VAnchorPMSetupInput: {
    chainId: string;
    encryptedCommitments: [Uint8Array, Uint8Array];
    extAmount: string;
    fee: string;
    inputUtxos: Utxo[];
    leafIds: LeafIdentifier[];
    leavesMap: Record<string, Leaves>;
    output: [Utxo, Utxo];
    provingKey: Uint8Array;
    publicAmount: string;
    recipient: Uint8Array;
    refund: string;
    relayer: Uint8Array;
    roots: Leaves;
    token: Uint8Array;
}

Proving Manager setup input for anchor API proving manager over sdk-core

Param

VAnchor notes representing input UTXOs for proving

Param

Leaves for generating the merkle path, it's indexed by the chain_id and for each entry the values are list of leaves for this chain

Param

Identify a leaf's for leaves at 's entry in the leavesMap

Param

Roots set for every anchor

Param

The chain id where the input UTXOs being spent

Param

Configuration to shape the output UTXOs

Param

Encrypted commitments for the output UTXOs

Param

Amount the is used to tell the transaction type : Sum. of inputs + public amount = Sum. of outputs

Param

Proving key bytes to pass in to the Zero-knowledge proof generation

Param

Relayer account ID or address

Param

Recipient account ID or address

Param

External amount being deposited or withdrawn

Param

Fee for the transaction

Param

Refund for the transaction

Param

The optional token to unwrap into upon withdrawal

Type declaration

  • chainId: string
  • encryptedCommitments: [Uint8Array, Uint8Array]
  • extAmount: string
  • fee: string
  • inputUtxos: Utxo[]
  • leafIds: LeafIdentifier[]
  • leavesMap: Record<string, Leaves>
  • output: [Utxo, Utxo]
  • provingKey: Uint8Array
  • publicAmount: string
  • recipient: Uint8Array
  • refund: string
  • relayer: Uint8Array
  • roots: Leaves
  • token: Uint8Array

Generated using TypeDoc