Skip to main content

CredentialProof

Represents the proof associated with a credential, including signature and sparse merkle tree proof.

  • Full name: \Bloock\Entity\Identity\CredentialProof

Properties

signatureProof

private string $signatureProof

sparseMtProof

private string $sparseMtProof

Methods

__construct

Constructs an CredentialProof object with the specified parameters.

public __construct(string $signatureProof, string $sparseMtProof): mixed

Parameters:

ParameterTypeDescription
$signatureProofstring
$sparseMtProofstring

fromProto

public static fromProto(\Bloock\CredentialProof $res): \Bloock\Entity\Identity\CredentialProof
  • This method is static.

Parameters:

ParameterTypeDescription
$res\Bloock\CredentialProof

getSignatureProof

Retrieve signature proof with string format

public getSignatureProof(): string

getSparseMtProof

Retrieve sparse merkle tree proof with string format

public getSparseMtProof(): string

toProto

public toProto(): \Bloock\CredentialProof


Automatically generated on 2024-04-02