@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
Name | Type |
---|---|
leaves | string [] |
nodes | string [] |
depth | string |
bitmap | string |
anchor | ProofAnchor |
Returns
Defined in
Properties
anchor
• anchor: ProofAnchor
Defined in
bitmap
• bitmap: string
Defined in
depth
• depth: string
Defined in
leaves
• leaves: string
[]
Defined in
nodes
• nodes: string
[]
Defined in
Methods
toProto
▸ toProto(): Proof
Returns
Proof
Defined in
fromProto
▸ fromProto(p
): Proof
Parameters
Name | Type |
---|---|
p | Proof |