Input
@midnight/zswap v3.0.2 β’ Readme | API
@midnight/zswap v3.0.2 / Input
Class: Input
A shielded transaction input
Constructorsβ
new Input()β
private new Input(): Input
Returnsβ
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): Input
Parametersβ
β’ raw: Uint8Array
β’ netid: NetworkId