UnprovenTransient
@midnight-ntwrk/ledger v3.0.2 β’ Readme | API
@midnight-ntwrk/ledger v3.0.2 / UnprovenTransient
Class: UnprovenTransient
A Transient, before being proven
All "shielded" information in the transient can still be extracted at this stage!
Constructorsβ
new UnprovenTransient()β
private new UnprovenTransient(): UnprovenTransient
Returnsβ
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): UnprovenTransient
Parametersβ
β’ raw: Uint8Array
β’ netid: NetworkId
Returnsβ
newFromContractOwnedOutput()β
static newFromContractOwnedOutput(coin, output): UnprovenTransient
Creates a new contract-owned transient, from a given output and its coin.
The QualifiedCoinInfo should have an mt_index of 0
Parametersβ
β’ coin: QualifiedCoinInfo
β’ output: UnprovenOutput