Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Utxo

Index

Constructors

  • new Utxo(__namedParameters: { amount?: BigNumberish; blinding?: BigNumberish; chainId: BigNumberish; index?: number; keypair?: Keypair; originChainId?: BigNumberish }): Utxo
  • Initialize a new UTXO - unspent transaction output or input. Note, a full TX consists of 2/16 inputs and 2 outputs

    Parameters

    • __namedParameters: { amount?: BigNumberish; blinding?: BigNumberish; chainId: BigNumberish; index?: number; keypair?: Keypair; originChainId?: BigNumberish }
      • Optional amount?: BigNumberish
      • Optional blinding?: BigNumberish
      • chainId: BigNumberish
      • Optional index?: number
      • Optional keypair?: Keypair
      • Optional originChainId?: BigNumberish

    Returns Utxo

Properties

_commitment?: BigNumber
_nullifier?: BigNumber
amount: BigNumber
blinding: BigNumber
chainId: BigNumber
index: number
keypair: Keypair
originChainId: BigNumber

Methods

  • encrypt(): string
  • getCommitment(): BigNumber
  • getDiffs(roots: RootInfo[]): BigNumberish[]
  • getNullifier(): BigNumber
  • decrypt(keypair: Keypair, data: string, index: number): Utxo

Generated using TypeDoc