purify
C++ Purify implementation with native circuit and BPP support
Loading...
Searching...
No Matches
recovery_root_accumulation.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
7#include <cstddef>
8#include <utility>
9
12
13namespace purify::accountable {
14
23public:
24 static constexpr std::size_t kNormVectorLength = 4096;
25
27 delete;
29 const RecoveryRootSetupAccumulator&) = delete;
31 RecoveryRootSetupAccumulator&&) noexcept = default;
33 RecoveryRootSetupAccumulator&&) noexcept = default;
34
35 [[nodiscard]] static Result<RecoveryRootSetupAccumulator> create(
36 purify_secp_context* secp_context);
37
38 [[nodiscard]] const bppp::accumulation::Basis& basis() const noexcept {
39 return basis_;
40 }
41
43 const NonceHostBoundSigningRoster& roster,
44 const UInt512& recovery_root,
45 const RecoveryRootSetupProof& proof,
46 purify_secp_context* secp_context,
47 bppp::ExperimentalCircuitBackend* cache = nullptr) const;
48
49private:
52 : basis_(std::move(basis)) {}
53
55};
56
57} // namespace purify::accountable
An ordered signing roster bound to one core and nonce-host list.
RecoveryRootSetupAccumulator(const RecoveryRootSetupAccumulator &)=delete
Result< bppp::accumulation::AlgebraicPreparedNorm > prepare(const NonceHostBoundSigningRoster &roster, const UInt512 &recovery_root, const RecoveryRootSetupProof &proof, purify_secp_context *secp_context, bppp::ExperimentalCircuitBackend *cache=nullptr) const
RecoveryRootSetupAccumulator & operator=(const RecoveryRootSetupAccumulator &)=delete
RecoveryRootSetupAccumulator(RecoveryRootSetupAccumulator &&) noexcept=default
static Result< RecoveryRootSetupAccumulator > create(purify_secp_context *secp_context)
const bppp::accumulation::Basis & basis() const noexcept
Common interface for reusable experimental BPPP backend state.
Definition bppp.hpp:129
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