UltrafastSecp256k1 3.50.0
Ultra high-performance secp256k1 elliptic curve cryptography library
Loading...
Searching...
No Matches
secp256k1::coins::wallet Namespace Reference

Classes

struct  MessageSignature
 
struct  WalletKey
 

Functions

std::pair< WalletKey, bool > from_private_key (const std::uint8_t *priv32)
 
std::string get_address (const CoinParams &coin, const WalletKey &key, bool testnet=false)
 
std::string get_address_p2pkh (const CoinParams &coin, const WalletKey &key, bool testnet=false)
 
std::string get_address_p2wpkh (const CoinParams &coin, const WalletKey &key, bool testnet=false)
 
std::string get_address_p2sh_p2wpkh (const CoinParams &coin, const WalletKey &key, bool testnet=false)
 
std::string get_address_p2tr (const CoinParams &coin, const WalletKey &key, bool testnet=false)
 
std::string get_address_cashaddr (const CoinParams &coin, const WalletKey &key, bool testnet=false)
 
std::string export_private_key (const CoinParams &coin, const WalletKey &key, bool testnet=false)
 
std::string export_public_key_hex (const CoinParams &coin, const WalletKey &key)
 
MessageSignature sign_message (const CoinParams &coin, const WalletKey &key, const std::uint8_t *msg, std::size_t msg_len)
 
MessageSignature sign_hash (const CoinParams &coin, const WalletKey &key, const std::uint8_t *hash32)
 
bool verify_message (const CoinParams &coin, const fast::Point &pubkey, const std::uint8_t *msg, std::size_t msg_len, const MessageSignature &sig)
 
std::pair< fast::Point, bool > recover_signer (const CoinParams &coin, const std::uint8_t *msg, std::size_t msg_len, const MessageSignature &sig)
 
std::pair< std::string, bool > recover_address (const CoinParams &coin, const std::uint8_t *msg, std::size_t msg_len, const MessageSignature &sig)
 

Function Documentation

◆ export_private_key()

std::string secp256k1::coins::wallet::export_private_key ( const CoinParams coin,
const WalletKey key,
bool  testnet = false 
)

◆ export_public_key_hex()

std::string secp256k1::coins::wallet::export_public_key_hex ( const CoinParams coin,
const WalletKey key 
)

◆ from_private_key()

std::pair< WalletKey, bool > secp256k1::coins::wallet::from_private_key ( const std::uint8_t *  priv32)

◆ get_address()

std::string secp256k1::coins::wallet::get_address ( const CoinParams coin,
const WalletKey key,
bool  testnet = false 
)

◆ get_address_cashaddr()

std::string secp256k1::coins::wallet::get_address_cashaddr ( const CoinParams coin,
const WalletKey key,
bool  testnet = false 
)

◆ get_address_p2pkh()

std::string secp256k1::coins::wallet::get_address_p2pkh ( const CoinParams coin,
const WalletKey key,
bool  testnet = false 
)

◆ get_address_p2sh_p2wpkh()

std::string secp256k1::coins::wallet::get_address_p2sh_p2wpkh ( const CoinParams coin,
const WalletKey key,
bool  testnet = false 
)

◆ get_address_p2tr()

std::string secp256k1::coins::wallet::get_address_p2tr ( const CoinParams coin,
const WalletKey key,
bool  testnet = false 
)

◆ get_address_p2wpkh()

std::string secp256k1::coins::wallet::get_address_p2wpkh ( const CoinParams coin,
const WalletKey key,
bool  testnet = false 
)

◆ recover_address()

std::pair< std::string, bool > secp256k1::coins::wallet::recover_address ( const CoinParams coin,
const std::uint8_t *  msg,
std::size_t  msg_len,
const MessageSignature sig 
)

◆ recover_signer()

std::pair< fast::Point, bool > secp256k1::coins::wallet::recover_signer ( const CoinParams coin,
const std::uint8_t *  msg,
std::size_t  msg_len,
const MessageSignature sig 
)

◆ sign_hash()

MessageSignature secp256k1::coins::wallet::sign_hash ( const CoinParams coin,
const WalletKey key,
const std::uint8_t *  hash32 
)

◆ sign_message()

MessageSignature secp256k1::coins::wallet::sign_message ( const CoinParams coin,
const WalletKey key,
const std::uint8_t *  msg,
std::size_t  msg_len 
)

◆ verify_message()

bool secp256k1::coins::wallet::verify_message ( const CoinParams coin,
const fast::Point pubkey,
const std::uint8_t *  msg,
std::size_t  msg_len,
const MessageSignature sig 
)