Module quorum_approved_request

Source
Expand description

Quorum approved request initiation and verification implementation.

Ref: https://wamu.tech/specification#quorum-approved-request.

Functions§

challenge_response
Given a list of command approval payloads, an identity provider, a quorum approved request initialization payload, a quorum size and a list of verifying keys for the other parties, returns an ok result with a quorum approved challenge response payload or an appropriate error result for an invalid request.
initiate
Given a “command” and an identity provider, returns the payload for initiating an quorum approved request.
verify_challenge_response
Given a quorum approved challenge response payload, a list of command approval payloads, a verifying key for challenged party, a quorum approved request initialization payload, a quorum size and a list of verifying keys for the other parties, returns an Ok result for valid quorum approved challenge response, or an appropriate Err result otherwise.
verify_request_and_initiate_challenge
Given a “command” a quorum approved request initialization payload, an identity provider and a list of verifying keys for the other parties, returns an ok result with a “command” approval payload for initiating an identity challenge and approval acknowledgement for a valid request or an appropriate error result for an invalid request.