purify
C++ Purify implementation with native circuit and BPP support
Loading...
Searching...
No Matches
purify::accountable::AnchorPunishmentKey Class Reference

#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)

Detailed Description

Move-only recovered BIP340 punishment key with an even-Y secret.

Definition at line 106 of file anchor_escrow.hpp.

Constructor & Destructor Documentation

◆ AnchorPunishmentKey() [1/2]

purify::accountable::AnchorPunishmentKey::AnchorPunishmentKey ( const AnchorPunishmentKey & )
delete

◆ AnchorPunishmentKey() [2/2]

purify::accountable::AnchorPunishmentKey::AnchorPunishmentKey ( AnchorPunishmentKey && )
defaultnoexcept

References AnchorPunishmentKey().

Member Function Documentation

◆ bip340_key()

const Bip340Key & purify::accountable::AnchorPunishmentKey::bip340_key ( ) const
inlinenodiscardnoexcept

◆ from_secret()

Result< AnchorPunishmentKey > purify::accountable::AnchorPunishmentKey::from_secret ( std::array< unsigned char, 32 > secret,
purify_secp_context * secp_context )
staticnodiscard

◆ operator=() [1/2]

AnchorPunishmentKey & purify::accountable::AnchorPunishmentKey::operator= ( AnchorPunishmentKey && )
defaultnoexcept

◆ operator=() [2/2]

AnchorPunishmentKey & purify::accountable::AnchorPunishmentKey::operator= ( const AnchorPunishmentKey & )
delete

References AnchorPunishmentKey().

◆ public_key()

const AnchorPunishmentPublicKey & purify::accountable::AnchorPunishmentKey::public_key ( ) const
inlinenodiscardnoexcept

The documentation for this class was generated from the following files: