Skip to main content

CompactTypeMerkleTreePath

For the complete documentation index, see llms.txt

@midnight-ntwrk/compact-runtime v0.16.0


@midnight-ntwrk/compact-runtime / CompactTypeMerkleTreePath

Class: CompactTypeMerkleTreePath<A>

MerkleTreePath의 런타임 타입

Type Parameters​

A​

A

Implements​

Constructors​

Constructor​

new CompactTypeMerkleTreePath<A>(n, leaf): CompactTypeMerkleTreePath<A>;

Parameters​

n​

number

leaf​

CompactType<A>

Returns​

CompactTypeMerkleTreePath<A>

Properties​

leaf​

readonly leaf: CompactType<A>;

path​

readonly path: CompactTypeVector<MerkleTreePathEntry>;

Methods​

alignment()​

alignment(): Alignment;

이 타입의 필드 정렬 바이너리 정렬 방식입니다.

Returns​

Alignment

Implementation of​

CompactType.alignment


fromValue()​

fromValue(value): MerkleTreePath<A>;

이 타입의 필드 정렬 바이너리 표현을 TypeScript 표현으로 파괴적으로 변환합니다. 입력을 (부분적으로) 소비하며, 체이닝을 위해 불필요한 데이터는 무시합니다.

Parameters​

value​

Value

Returns​

MerkleTreePath<A>

Implementation of​

CompactType.fromValue


toValue()​

toValue(value): Value;

이 타입의 TypeScript 표현을 필드 정렬 바이너리 표현으로 변환합니다

Parameters​

value​

MerkleTreePath<A>

Returns​

Value

Implementation of​

CompactType.toValue