purify
C++ Purify implementation with native circuit and BPP support
Loading...
Searching...
No Matches
purify::Bip340Key Struct Reference

Canonical BIP340 keypair derived deterministically from a packed Purify secret. More...

#include <api.hpp>

Public Member Functions

 Bip340Key ()=default
 
 Bip340Key (const Bip340Key &)=delete
 
Bip340Keyoperator= (const Bip340Key &)=delete
 
 Bip340Key (Bip340Key &&other) noexcept
 
Bip340Keyoperator= (Bip340Key &&other) noexcept
 
 ~Bip340Key ()
 

Data Fields

std::array< unsigned char, 32 > seckey {}
 
std::array< unsigned char, 32 > xonly_pubkey {}
 

Detailed Description

seckey is normalized to the even-Y representative corresponding to xonly_pubkey, so the returned pair is the canonical secp256k1/BIP340 encoding for this derivation.

Definition at line 38 of file api.hpp.

Constructor & Destructor Documentation

◆ Bip340Key() [1/3]

purify::Bip340Key::Bip340Key ( )
default

◆ Bip340Key() [2/3]

purify::Bip340Key::Bip340Key ( const Bip340Key )
delete

◆ Bip340Key() [3/3]

purify::Bip340Key::Bip340Key ( Bip340Key &&  other)
inlinenoexcept

Definition at line 43 of file api.hpp.

◆ ~Bip340Key()

purify::Bip340Key::~Bip340Key ( )
inline

Definition at line 58 of file api.hpp.

Member Function Documentation

◆ operator=() [1/2]

Bip340Key & purify::Bip340Key::operator= ( Bip340Key &&  other)
inlinenoexcept

Definition at line 48 of file api.hpp.

References seckey, and xonly_pubkey.

◆ operator=() [2/2]

Bip340Key & purify::Bip340Key::operator= ( const Bip340Key )
delete

Field Documentation

◆ seckey

std::array<unsigned char, 32> purify::Bip340Key::seckey {}

Definition at line 62 of file api.hpp.

Referenced by operator=().

◆ xonly_pubkey

std::array<unsigned char, 32> purify::Bip340Key::xonly_pubkey {}

Definition at line 63 of file api.hpp.

Referenced by operator=().


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