Skip to main content

ProofErasedInput

@midnight-ntwrk/ledger v3.0.2 β€’ Readme | API


@midnight-ntwrk/ledger v3.0.2 / ProofErasedInput

Class: ProofErasedInput

A Input, with all proof information erased

Primarily for use in testing, or handling data known to be correct from external information

Constructors​

new ProofErasedInput()​

private new ProofErasedInput(): ProofErasedInput

Returns​

ProofErasedInput

Properties​

contractAddress​

readonly contractAddress: undefined | string;

The contract address receiving the input, if the sender is a contract


nullifier​

readonly nullifier: string;

The nullifier of the input

Methods​

serialize()​

serialize(netid): Uint8Array

Parameters​

β€’ netid: NetworkId

Returns​

Uint8Array


toString()​

toString(compact?): string

Parameters​

β€’ compact?: boolean

Returns​

string


deserialize()​

static deserialize(raw, netid): ProofErasedInput

Parameters​

β€’ raw: Uint8Array

β€’ netid: NetworkId

Returns​

ProofErasedInput