Class

AuthenticatedAIRResult

AuthenticatedAIRResult()

Authenticated address identity registry value. Contains a proof that the AIR result is stored on the ledger.

Constructor

# new AuthenticatedAIRResult()

View Source pkg/wasm.js, line 921

Methods

# static from_json() → {AuthenticatedAIRResult}

Construct an AIRResult from the JSON-encoded value returned by the ledger.

See:
  • Network.getAIRResult for information about how to fetch a value from the address identity registry.

View Source pkg/wasm.js, line 943

# get_commitment() → {CredentialCommitment|undefined}

Returns the underlying credential commitment of the AIR result.

View Source pkg/wasm.js, line 968

CredentialCommitment | undefined

# is_valid(state_commitment) → {boolean}

Returns true if the authenticated AIR result proofs verify succesfully. If the proofs are valid, the identity commitment contained in the AIR result is a valid part of the ledger.

Parameters:
Name Type Description
state_commitment string

String representing the ledger state commitment.

View Source pkg/wasm.js, line 958

boolean