Skip to main content

@midnight/ledger v2.0.8Readme | API


@midnight/ledger v2.0.8 / Input

Class: Input

A shielded transaction input

Constructors

new Input()

new Input(): Input

Returns

Input

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(): Uint8Array

Returns

Uint8Array


toString()

toString(compact?): string

Parameters

compact?: boolean

Returns

string


deserialize()

static deserialize(raw): Input

Parameters

raw: Uint8Array

Returns

Input