Skip to main content

IntegrityDetails

Represents details related to the integrity of a record, including hash and proof.

  • Full name: \Bloock\Entity\Record\IntegrityDetails

Properties

hash

private string $hash

proof

private ?\Bloock\Entity\Integrity\Proof $proof

Methods

__construct

Constructs a IntegrityDetails object with the specified parameters.

public __construct(string $hash, \Bloock\Entity\Integrity\Proof|null $proof): mixed

Parameters:

ParameterTypeDescription
$hashstring
$proof\Bloock\Entity\Integrity\Proof|null

getHash

Gets the hash of the record.

public getHash(): string

getProof

Gets the proof of the record.

public getProof(): \Bloock\Entity\Integrity\Proof|null

fromProto

public static fromProto(\Bloock\IntegrityDetails $details): \Bloock\Entity\Record\IntegrityDetails
  • This method is static.

Parameters:

ParameterTypeDescription
$details\Bloock\IntegrityDetails

toProto

public toProto(): \Bloock\IntegrityDetails


Automatically generated on 2024-04-02