Skip to main content

ProofErasedTransient

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


@midnight-ntwrk/ledger v3.0.2 / ProofErasedTransient

Class: ProofErasedTransient

A Transient, with all proof information erased

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

Constructors​

new ProofErasedTransient()​

private new ProofErasedTransient(): ProofErasedTransient

Returns​

ProofErasedTransient

Properties​

commitment​

readonly commitment: string;

The commitment of the transient


contractAddress​

readonly contractAddress: undefined | string;

The contract address creating the transient, if applicable


nullifier​

readonly nullifier: string;

The nullifier of the transient

Methods​

serialize()​

serialize(netid): Uint8Array

Parameters​

β€’ netid: NetworkId

Returns​

Uint8Array


toString()​

toString(compact?): string

Parameters​

β€’ compact?: boolean

Returns​

string


deserialize()​

static deserialize(raw, netid): ProofErasedTransient

Parameters​

β€’ raw: Uint8Array

β€’ netid: NetworkId

Returns​

ProofErasedTransient