Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

keys

Fully qualified path: alexandria_btc::keys

Free functions

private_key_to_public_keyGenerates a Bitcoin public key from a private key using secp256k1 elliptic curve operations. Performs elliptic curve point multiplication (private_key * G) where G is the…
public_key_to_bytesSerializes a Bitcoin public key to its byte representation. Converts a public key to either compressed (33 bytes) or uncompressed (65 bytes) format according to SEC 1 standard:…
public_key_hashGenerates a Bitcoin public key hash using Hash160 (RIPEMD160 of SHA256). Computes the standard Bitcoin public key hash by serializing the public key…
create_private_keyCreates a Bitcoin private key from a u256 value with validation. Validates that the provided key value is within the secp256k1 curve order…
generate_private_keyGenerates a random Bitcoin private key (placeholder implementation). Creates a private key using a deterministic value for testing purposes….