Skip to content

bitcoin

Classes

Name
class bitcoin::BitcoinKeyGenerator
Creates a pair of ECDSA keys and a Bitcoin address from a compressed key.

Types

Name
using ecdsa_t::CurveType CurveType
Curve type used by Ethereum keys.
using typename ecdsa_t::base_field_type base_field_type
Ethereum base field type.
using typename ecdsa_t::scalar_field_type scalar_field_type
Ethereum scalar field type.
using typename ecdsa_t::scalar_field_value_type scalar_field_value_type
Ethereum value from the scalar field type.
using ecdsa_t::random_generator_type random_generator_type
Random generator type, to generate new Ethereum keys/addresses.
using ecdsa_t::hash_type hash_type
The hash type used by Ethereum address derivation.
using ecdsa_t::generator_type generator_type
The deterministic generator used by Ethereum key pair.
using ecdsa_t::padding_policy padding_policy
Ethereum passing policy.
using ecdsa_t::policy_type policy_type
Ethereum policy type.
using ecdsa_t::signature_type signature_type
Random generator type, to generate new Bitcoin keys/addresses.
using hashes::sha2< 256 > derivation_hash_type
The hash type used by Ethereum address derivation.

Functions

Name
std::vector< std::uint8_t > BitcoinKeyGenerator::ExtractPubKeyFromField< std::vector< std::uint8_t > >(const pubkey::public_key< policy_type > & pub_key)
BitcoinKeyGenerator::PubKeyPair_t BitcoinKeyGenerator::ExtractPubKeyFromField< BitcoinKeyGenerator::PubKeyPair_t >(const pubkey::public_key< policy_type > & pub_key)

Types Documentation

using CurveType

using bitcoin::CurveType = ecdsa_t::CurveType;

Curve type used by Ethereum keys.

using base_field_type

using bitcoin::base_field_type = typename ecdsa_t::base_field_type;

Ethereum base field type.

using scalar_field_type

using bitcoin::scalar_field_type = typename ecdsa_t::scalar_field_type;

Ethereum scalar field type.

using scalar_field_value_type

using bitcoin::scalar_field_value_type = typename ecdsa_t::scalar_field_value_type;

Ethereum value from the scalar field type.

using random_generator_type

using bitcoin::random_generator_type = ecdsa_t::random_generator_type;

Random generator type, to generate new Ethereum keys/addresses.

using hash_type

using bitcoin::hash_type = ecdsa_t::hash_type;

The hash type used by Ethereum address derivation.

using generator_type

using bitcoin::generator_type = ecdsa_t::generator_type;

The deterministic generator used by Ethereum key pair.

using padding_policy

using bitcoin::padding_policy = ecdsa_t::padding_policy;

Ethereum passing policy.

using policy_type

using bitcoin::policy_type = ecdsa_t::policy_type;

Ethereum policy type.

using signature_type

using bitcoin::signature_type = ecdsa_t::signature_type;

Random generator type, to generate new Bitcoin keys/addresses.

using derivation_hash_type

using bitcoin::derivation_hash_type = hashes::sha2<256>;

The hash type used by Ethereum address derivation.

Functions Documentation

function BitcoinKeyGenerator::ExtractPubKeyFromField< std::vector< std::uint8_t > >

std::vector< std::uint8_t > BitcoinKeyGenerator::ExtractPubKeyFromField< std::vector< std::uint8_t > >(
    const pubkey::public_key< policy_type > & pub_key
)

function BitcoinKeyGenerator::ExtractPubKeyFromField< BitcoinKeyGenerator::PubKeyPair_t >

BitcoinKeyGenerator::PubKeyPair_t BitcoinKeyGenerator::ExtractPubKeyFromField< BitcoinKeyGenerator::PubKeyPair_t >(
    const pubkey::public_key< policy_type > & pub_key
)

Updated on 2026-03-04 at 13:10:43 -0800