Module attestation_utils

Source

Structs§

CRState
Type for representing the state of the challenge-response process. Holds information about both identity (part one) and content challenge-response (part two) and their respective initiation.
ContentCRChallenge
Type for storing details of part two (content challenge) of the challenge-response process.
ContentCRInitiation
Type for storing initiation details of part two (content challenge) of the challenge-response process.
CustomResponse
Type for implementing custom response returned by the server. Provides a message and optional data field.
IdentityCRChallenge
Type for storing details of part one (identity challenge) of the challenge-response process.
IdentityCRInitiation
Type for storing initiation details of the attestation request.
Nonce
Nonce type for challenge-response.
RequesterDetails
Type for storing details of the requester.

Enums§

CurrentCRState
Enumerates the possible states of the challenge-response process.
TrustchainCRError

Traits§

ElementwiseSerializeDeserialize
Interface for serializing and deserializing each field of structs to/from files.

Functions§

attestation_request_basepath
Returns the root path for storing attestation requests.
attestation_request_path
Returns unique path name for a specific attestation request derived from public key for the interaction.
matching_endpoint
Returns endpoint that contains the given fragment from the given list of service endpoints. Throws error if no or more than one matching endpoint is found.