ZswapInput
For the complete documentation index, see llms.txt
@midnight/ledger / ZswapInput
Class: ZswapInput<P>
차폐된 트랜잭션 입력입니다.
Type Parameters
P
P extends Proofish
Properties
contractAddress
readonly contractAddress: undefined | string;
발신자가 컨트랙트인 경우 입력을 수신하는 컨트랙트 주소입니다.
nullifier
readonly nullifier: string;
입력의 널리파이어입니다.
proof
readonly proof: P;
이 입력의 증명입니다.
Methods
serialize()
serialize(): Uint8Array;
Returns
Uint8Array
toString()
toString(compact?): string;
Parameters
compact?
boolean
Returns
string
deserialize()
static deserialize<P>(markerP, raw): ZswapInput<P>;
Type Parameters
P
P extends Proofish
Parameters
markerP
P["instance"]
raw
Uint8Array
Returns
ZswapInput<P>
newContractOwned()
static newContractOwned(
coin,
segment,
contract,
state): UnprovenInput;
Parameters
coin
segment
undefined | number
contract
string