purify
C++ Purify implementation with native circuit and BPP support
Loading...
Searching...
No Matches
anchor_escrow.hpp File Reference
#include <array>
#include <cstddef>
#include <span>
#include <utility>
#include "purify/api.hpp"
#include "purify/bppp.hpp"
#include "purify/puresign/accountable_roster.hpp"

Go to the source code of this file.

Data Structures

class  purify::accountable::AnchorEscrowAuxiliaryScalar
class  purify::accountable::AnchorPunishmentPublicKey
class  purify::accountable::AnchorPunishmentKey
struct  purify::accountable::AnchorEscrowCiphertext
class  purify::accountable::AnchorEscrowRecord

Namespaces

namespace  purify
namespace  purify::accountable

Typedefs

using purify::accountable::AnchorEscrowContextDigest = std::array<unsigned char, 32>

Functions

Result< AnchorEscrowRecord > purify::accountable::create_anchor_escrow (const RecoveryBoundSigningRoster &roster, const UInt512 &advertised_anchor_root, const AnchorPunishmentKey &punishment_key, const AnchorEscrowContextDigest &context_digest, purify_secp_context *secp_context, bppp::ExperimentalCircuitBackend *cache=nullptr)
Result< AnchorEscrowRecord > purify::accountable::create_anchor_escrow_deterministic (const RecoveryBoundSigningRoster &roster, const UInt512 &advertised_anchor_root, const AnchorPunishmentKey &punishment_key, const AnchorEscrowContextDigest &context_digest, const AnchorEscrowAuxiliaryScalar &auxiliary_scalar, purify_secp_context *secp_context, bppp::ExperimentalCircuitBackend *cache=nullptr)
Result< bool > purify::accountable::verify_anchor_escrow (const RecoveryBoundSigningRoster &roster, const UInt512 &advertised_anchor_root, const AnchorPunishmentPublicKey &punishment_key, const AnchorEscrowContextDigest &context_digest, const AnchorEscrowRecord &record, purify_secp_context *secp_context, bppp::ExperimentalCircuitBackend *cache=nullptr)
Result< AnchorPunishmentKey > purify::accountable::recover_escrowed_anchor (const RecoveryBoundSigningRoster &roster, const FieldElement &exposed_signing_scalar, const UInt512 &advertised_anchor_root, const AnchorPunishmentPublicKey &punishment_key, const AnchorEscrowContextDigest &context_digest, const AnchorEscrowRecord &record, purify_secp_context *secp_context, bppp::ExperimentalCircuitBackend *cache=nullptr)
Result< AnchorPunishmentKey > purify::accountable::recover_distributed_escrowed_anchor (const VerifiedDistributedRecoverySetup &setup, const FieldElement &exposed_signing_scalar, const UInt512 &advertised_anchor_root, const AnchorPunishmentPublicKey &punishment_key, const AnchorEscrowContextDigest &context_digest, const AnchorEscrowRecord &record, purify_secp_context *secp_context, bppp::ExperimentalCircuitBackend *cache=nullptr)