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

#include <anchor_escrow.hpp>

Public Member Functions

 AnchorPunishmentPublicKey (const AnchorPunishmentPublicKey &)=default
AnchorPunishmentPublicKey & operator= (const AnchorPunishmentPublicKey &)=default
 AnchorPunishmentPublicKey (AnchorPunishmentPublicKey &&) noexcept=default
AnchorPunishmentPublicKey & operator= (AnchorPunishmentPublicKey &&) noexcept=default
const std::array< unsigned char, 32 > & xonly () const noexcept

Static Public Member Functions

static Result< AnchorPunishmentPublicKey > create (const std::array< unsigned char, 32 > &xonly, purify_secp_context *secp_context)

Friends

class AnchorPunishmentKey
bool operator== (const AnchorPunishmentPublicKey &, const AnchorPunishmentPublicKey &)=default

Detailed Description

Canonical x-only BIP340 key authorized to punish one anchor.

Definition at line 75 of file anchor_escrow.hpp.

Constructor & Destructor Documentation

◆ AnchorPunishmentPublicKey() [1/2]

purify::accountable::AnchorPunishmentPublicKey::AnchorPunishmentPublicKey ( const AnchorPunishmentPublicKey & )
default

◆ AnchorPunishmentPublicKey() [2/2]

purify::accountable::AnchorPunishmentPublicKey::AnchorPunishmentPublicKey ( AnchorPunishmentPublicKey && )
defaultnoexcept

Member Function Documentation

◆ create()

Result< AnchorPunishmentPublicKey > purify::accountable::AnchorPunishmentPublicKey::create ( const std::array< unsigned char, 32 > & xonly,
purify_secp_context * secp_context )
staticnodiscard

◆ operator=() [1/2]

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

◆ operator=() [2/2]

AnchorPunishmentPublicKey & purify::accountable::AnchorPunishmentPublicKey::operator= ( const AnchorPunishmentPublicKey & )
default

◆ xonly()

const std::array< unsigned char, 32 > & purify::accountable::AnchorPunishmentPublicKey::xonly ( ) const
inlinenodiscardnoexcept

◆ AnchorPunishmentKey

friend class AnchorPunishmentKey
friend

Definition at line 102 of file anchor_escrow.hpp.

References AnchorPunishmentKey.

Referenced by AnchorPunishmentKey.

◆ operator==

bool operator== ( const AnchorPunishmentPublicKey & ,
const AnchorPunishmentPublicKey &  )
friend

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