Proof
Represents a proof, including leaves, nodes, depth, bitmap, and anchor information.
- Full name:
\Bloock\Entity\Integrity\Proof
Properties
leaves
private array $leaves
nodes
private array $nodes
depth
private string $depth
bitmap
private string $bitmap
anchor
private \Bloock\Entity\Integrity\ProofAnchor $anchor
Methods
__construct
Constructs a Proof object with the specified parameters.
public __construct(array $leaves, array $nodes, string $depth, string $bitmap, \Bloock\Entity\Integrity\ProofAnchor $anchor): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$leaves | array | |
$nodes | array | |
$depth | string | |
$bitmap | string | |
$anchor | \Bloock\Entity\Integrity\ProofAnchor |
fromProto
public static fromProto(\Bloock\Proof $proof): \Bloock\Entity\Integrity\Proof
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$proof | \Bloock\Proof |
getLeaves
Gets the leaves of the proof.
public getLeaves(): array
getNodes
Gets the nodes of the proof.
public getNodes(): array
getDepth
Gets the depth of the proof.
public getDepth(): string
getBitmap
Gets the bitmap of the proof.
public getBitmap(): string
getAnchor
Gets the anchor of the proof.
public getAnchor(): \Bloock\Entity\Integrity\ProofAnchor
toProto
public toProto(): \Bloock\Proof
Automatically generated on 2024-04-02