Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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).
 EllSwiftPubKey (std::span< const std::byte > ellswift) noexcept
 Construct a new ellswift public key from a given serialization.
CPubKey Decode () const
 Decode to normal compressed CPubKey (for debugging purposes).
const std::byte * data () const
auto begin () const
auto end () const
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 308 of file pubkey.h.

Constructor & Destructor Documentation

◆ EllSwiftPubKey() [1/2]

EllSwiftPubKey::EllSwiftPubKey ( )
defaultnoexcept

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

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

◆ EllSwiftPubKey() [2/2]

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

Construct a new ellswift public key from a given serialization.

Definition at line 365 of file pubkey.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ begin()

auto EllSwiftPubKey::begin ( ) const
inline

Definition at line 327 of file pubkey.h.

◆ data()

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

Definition at line 325 of file pubkey.h.

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

◆ Decode()

CPubKey EllSwiftPubKey::Decode ( ) const

Decode to normal compressed CPubKey (for debugging purposes).

Definition at line 371 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 328 of file pubkey.h.

◆ operator==()

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

Definition at line 330 of file pubkey.h.

Here is the call graph for this function:

◆ size()

constexpr size_t EllSwiftPubKey::size ( )
inlinestaticconstexpr

Definition at line 326 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 312 of file pubkey.h.

◆ SIZE

size_t EllSwiftPubKey::SIZE = 64
staticconstexprprivate

Definition at line 311 of file pubkey.h.


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