Skip to main content

@bloock/sdk / Proof

Class: Proof

Represents a proof, including leaves, nodes, depth, bitmap, and anchor information.

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Proof(leaves, nodes, depth, bitmap, anchor): Proof

Constructs a Proof object with the specified parameters.

Parameters

NameType
leavesstring[]
nodesstring[]
depthstring
bitmapstring
anchorProofAnchor

Returns

Proof

Defined in

entity/integrity/proof.ts:22

Properties

anchor

anchor: ProofAnchor

Defined in

entity/integrity/proof.ts:12


bitmap

bitmap: string

Defined in

entity/integrity/proof.ts:11


depth

depth: string

Defined in

entity/integrity/proof.ts:10


leaves

leaves: string[]

Defined in

entity/integrity/proof.ts:8


nodes

nodes: string[]

Defined in

entity/integrity/proof.ts:9

Methods

toProto

toProto(): Proof

Returns

Proof

Defined in

entity/integrity/proof.ts:46


fromProto

fromProto(p): Proof

Parameters

NameType
pProof

Returns

Proof

Defined in

entity/integrity/proof.ts:36