Bitcoin Core  27.99.0
P2P Digital Currency
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
EllSwiftPubKey Struct Reference

An ElligatorSwift-encoded public key. More...

#include <pubkey.h>

Public Member Functions

 EllSwiftPubKey () noexcept=default
 Default constructor creates all-zero pubkey (which is valid). More...
 
 EllSwiftPubKey (Span< const std::byte > ellswift) noexcept
 Construct a new ellswift public key from a given serialization. More...
 
CPubKey Decode () const
 Decode to normal compressed CPubKey (for debugging purposes). More...
 
const std::byte * data () const
 
auto begin () const
 
auto end () const
 
bool friend operator== (const EllSwiftPubKey &a, const EllSwiftPubKey &b)
 
bool friend operator!= (const EllSwiftPubKey &a, const EllSwiftPubKey &b)
 

Static Public Member Functions

static constexpr size_t size ()
 

Private Attributes

std::array< std::byte, SIZEm_pubkey
 

Static Private Attributes

static constexpr size_t SIZE = 64
 

Detailed Description

An ElligatorSwift-encoded public key.

Definition at line 304 of file pubkey.h.

Constructor & Destructor Documentation

◆ EllSwiftPubKey() [1/2]

EllSwiftPubKey::EllSwiftPubKey ( )
defaultnoexcept

Default constructor creates all-zero pubkey (which is valid).

◆ EllSwiftPubKey() [2/2]

EllSwiftPubKey::EllSwiftPubKey ( Span< const std::byte >  ellswift)
noexcept

Construct a new ellswift public key from a given serialization.

Definition at line 346 of file pubkey.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ begin()

auto EllSwiftPubKey::begin ( ) const
inline

Definition at line 323 of file pubkey.h.

◆ data()

const std::byte* EllSwiftPubKey::data ( ) const
inline

Definition at line 321 of file pubkey.h.

Here is the caller graph for this function:

◆ Decode()

CPubKey EllSwiftPubKey::Decode ( ) const

Decode to normal compressed CPubKey (for debugging purposes).

Definition at line 352 of file pubkey.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ end()

auto EllSwiftPubKey::end ( ) const
inline

Definition at line 324 of file pubkey.h.

◆ operator!=()

bool friend EllSwiftPubKey::operator!= ( const EllSwiftPubKey a,
const EllSwiftPubKey b 
)
inline

Definition at line 331 of file pubkey.h.

◆ operator==()

bool friend EllSwiftPubKey::operator== ( const EllSwiftPubKey a,
const EllSwiftPubKey b 
)
inline

Definition at line 326 of file pubkey.h.

◆ size()

static constexpr size_t EllSwiftPubKey::size ( )
inlinestaticconstexpr

Definition at line 322 of file pubkey.h.

Here is the caller graph for this function:

Member Data Documentation

◆ m_pubkey

std::array<std::byte, SIZE> EllSwiftPubKey::m_pubkey
private

Definition at line 308 of file pubkey.h.

◆ SIZE

constexpr size_t EllSwiftPubKey::SIZE = 64
staticconstexprprivate

Definition at line 307 of file pubkey.h.


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