|
purify
C++ Purify implementation with native circuit and BPP support
|
#include <anchor_escrow.hpp>
Public Member Functions | |
| AnchorPunishmentKey (const AnchorPunishmentKey &)=delete | |
| AnchorPunishmentKey & | operator= (const AnchorPunishmentKey &)=delete |
| AnchorPunishmentKey (AnchorPunishmentKey &&) noexcept=default | |
| AnchorPunishmentKey & | operator= (AnchorPunishmentKey &&) noexcept=default |
| const Bip340Key & | bip340_key () const noexcept |
| const AnchorPunishmentPublicKey & | public_key () const noexcept |
Static Public Member Functions | |
| static Result< AnchorPunishmentKey > | from_secret (std::array< unsigned char, 32 > secret, purify_secp_context *secp_context) |
Move-only recovered BIP340 punishment key with an even-Y secret.
Definition at line 106 of file anchor_escrow.hpp.
|
delete |
References AnchorPunishmentKey().
Referenced by AnchorPunishmentKey(), AnchorPunishmentKey(), from_secret(), operator=(), and operator=().
|
defaultnoexcept |
References AnchorPunishmentKey().
|
inlinenodiscardnoexcept |
Definition at line 118 of file anchor_escrow.hpp.
References bip340_key().
Referenced by bip340_key(), and purify::accountable::AnchorEscrowRecord::create_anchor_escrow_with_aux_randomness.
|
staticnodiscard |
Parse and normalize one secret to its even-Y BIP340 representative.
Definition at line 357 of file anchor_escrow.cpp.
References AnchorPunishmentKey(), purify_bip340_key_from_seckey(), PURIFY_RETURN_IF_ERROR, purify::RangeViolation, purify::require_secp_context(), purify::Bip340Key::seckey, purify::unexpected_error(), and purify::Bip340Key::xonly_pubkey.
Referenced by operator=().
|
defaultnoexcept |
References AnchorPunishmentKey(), and from_secret().
|
delete |
References AnchorPunishmentKey().
|
inlinenodiscardnoexcept |
Definition at line 122 of file anchor_escrow.hpp.
Referenced by purify::accountable::AnchorEscrowRecord::create_anchor_escrow_with_aux_randomness.