Skip to main content

ZswapTransient

For the complete documentation index, see llms.txt

@midnight/ledger v8.0.3


@midnight/ledger / ZswapTransient

Class: ZswapTransient<P>

차폐된 "트랜지언트"로, 동일 트랜잭션 내에서 즉시 소비되는 출력입니다.

Type Parameters​

P​

P extends Proofish

Properties​

commitment​

readonly commitment: string;

트랜지언트의 커밋먼트입니다.


contractAddress​

readonly contractAddress: undefined | string;

해당하는 경우, 트랜지언트를 생성하는 컨트랙트 주소입니다.


inputProof​

readonly inputProof: P;

이 트랜지언트의 입력 증명입니다.


nullifier​

readonly nullifier: string;

트랜지언트의 널리파이어입니다.


outputProof​

readonly outputProof: P;

이 트랜지언트의 출력 증명입니다.

Methods​

serialize()​

serialize(): Uint8Array;

Returns​

Uint8Array


toString()​

toString(compact?): string;

Parameters​

compact?​

boolean

Returns​

string


deserialize()​

static deserialize<P>(markerP, raw): ZswapTransient<P>;

Type Parameters​

P​

P extends Proofish

Parameters​

markerP​

P["instance"]

raw​

Uint8Array

Returns​

ZswapTransient<P>


newFromContractOwnedOutput()​

static newFromContractOwnedOutput(
coin,
segment,
output): UnprovenTransient;

주어진 출력과 코인으로 컨트랙트 소유의 새 트랜지언트를 생성합니다.

The QualifiedShieldedCoinInfo should have an mt_index of 0

Parameters​

coin​

QualifiedShieldedCoinInfo

segment​

undefined | number

output​

UnprovenOutput

Returns​

UnprovenTransient