purify
C++ Purify implementation with native circuit and BPP support
Loading...
Searching...
No Matches
anchor_escrow_internal.hpp
Go to the documentation of this file.
1// Copyright (c) 2026 Judica, Inc.
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or https://opensource.org/license/mit/.
4
5#pragma once
6
8
9namespace purify::accountable {
10
22 const GeneratedKey& recovered_recipient,
23 const AnchorPunishmentPublicKey& punishment_key,
24 const AnchorEscrowCiphertext& ciphertext,
25 purify_secp_context* secp_context);
26
30 const RecoveryBoundSigningRoster& roster,
31 const UInt512& advertised_anchor_root,
32 const AnchorPunishmentKey& punishment_key,
33 const AnchorEscrowContextDigest& context_digest,
34 const bppp::ScalarBytes& auxiliary_randomness,
35 purify_secp_context* secp_context,
36 bppp::ExperimentalCircuitBackend* cache = nullptr);
37
42
46 const UInt512& recipient,
47 const AnchorEscrowCiphertext& ciphertext);
48
49} // namespace purify::accountable
A nonce-host-bound roster with an authorized recovery-root relation.
std::array< unsigned char, 32 > AnchorEscrowContextDigest
Result< AnchorPunishmentKey > recover_authenticated_anchor_ciphertext(const GeneratedKey &recovered_recipient, const AnchorPunishmentPublicKey &punishment_key, const AnchorEscrowCiphertext &ciphertext, purify_secp_context *secp_context)
Result< AnchorEscrowRecord > create_anchor_escrow_with_aux_randomness(const RecoveryBoundSigningRoster &roster, const UInt512 &advertised_anchor_root, const AnchorPunishmentKey &punishment_key, const AnchorEscrowContextDigest &context_digest, const bppp::ScalarBytes &auxiliary_randomness, purify_secp_context *secp_context, bppp::ExperimentalCircuitBackend *cache)
Result< AnchorEscrowCircuitShape > anchor_escrow_circuit_shape_for_testing(const UInt512 &recipient, const AnchorEscrowCiphertext &ciphertext)
std::array< unsigned char, 32 > ScalarBytes
Big-endian 32-byte scalar encoding.
Definition bppp.hpp:30
BigUInt< 8 > UInt512
512-bit unsigned integer used for private and packed public keys.
Definition numeric.hpp:821
Expected< T, Error > Result
Expected-returning convenience alias for Purify value-producing APIs.
Definition error.hpp:99
struct purify_secp_context purify_secp_context
Caller-owned reusable secp256k1 context handle shared across Purify C and C++ APIs.