Class ShieldedPoolProver

Hierarchy

  • ShieldedPoolProver

Constructors

Properties

Methods

Constructors

Properties

account: Account
proofGen: GenerateProofFn

Methods

  • Generate a proof to add tokens to the shielded pool

    Parameters

    • amount: BigNumberish
    • asset: BigNumberish = 0
    • swapParams: SwapParams = ...
    • checkBlocklist: boolean = false

    Returns Promise<FormattedProof>

  • Generate a proof to transfer tokens in the shielded pool

    Parameters

    • amount: BigNumberish
    • toPubKey: string

      Keypair public key to send the note to

    • asset: BigNumberish = 0
    • swapParams: SwapParams = ...
    • checkBlocklist: boolean = false

    Returns Promise<FormattedProof>

  • Generate a proof to remove tokens in the shielded pool

    Parameters

    • amount: BigNumberish

      The amount

    • recipientEthAddress: string

      the recippient address to burn in the proof to ensure the funds cannot be withdrawn elsewhere

    • asset: BigNumberish = 0
    • swapParams: SwapParams = ...
    • checkBlocklist: boolean = false

    Returns Promise<FormattedProof>

Generated using TypeDoc