Pub bitcoin

Comment

Author: Admin | 2025-04-28

Expand description§Rust Bitcoin LibraryThis is a library that supports the Bitcoin network protocol and associatedprimitives. It is designed for Rust programs built to work with the Bitcoinnetwork.Except for its dependency on libsecp256k1 (and optionally libbitcoinconsensus),this library is written entirely in Rust. It illustrates the benefits ofstrong type safety, including ownership and lifetime, for financial and/or cryptographic software.See README.md for detailed documentation about development and supportedenvironments.§Available feature flagsstd - the usual dependency on std (default).secp-recovery - enables calculating public key from a signature and message.base64 - (dependency), enables encoding of PSBTs and message signatures.rand - (dependency), makes it more convenient to generate random values.serde - (dependency), implements serde-based serialization anddeserialization.secp-lowmemory - optimizations for low-memory devices.bitcoinconsensus-std - enables std in bitcoinconsensus and communicates itto this crate so it knows how to implementstd::error::Error. At this time there’s a hack toachieve the same without this feature but it couldhappen the implementations diverge one day.ordered - (dependency), adds implementations of ArbitraryOrdOrd to some structs.pub extern crate base58;pub extern crate base64;pub extern crate bech32;pub extern crate hashes;pub extern crate hex;pub extern crate io;pub extern crate ordered;pub extern crate secp256k1;absoluteProvides type LockTime that implements the logic around nLockTime/OP_CHECKLOCKTIMEVERIFY.addressBitcoin addresses.amountBitcoin amounts.bip32BIP32 implementation.bip152BIP152 Compact Blocksbip158BIP 158 Compact Block Filters for Light Clients.blockBitcoin blocks.blockdataBitcoin block data.consensusBitcoin consensus.constantsBlockdata constants.ecdsaECDSA Bitcoin signatures.errorContains error types and other error handling tools.hash_typesBitcoin hash types.keyBitcoin keys.locktimeProvides absolute and relative locktimes.merkle_treeBitcoin merkle tree functions.networkBitcoin network.opcodesBitcoin script opcodes.p2pBitcoin p2p network types.paramsBitcoin consensus parameters.parseUnit parsing utilities.policyBitcoin policy.powProof-of-work related integer types.psbtPartially Signed Bitcoin Transactions.relativeProvides type LockTime that implements the logic around nSequence/OP_CHECKSEQUENCEVERIFY.scriptBitcoin scripts.sighashSignature hash implementation (used in transaction signing).sign_messageSignaturetaprootBitcoin Taproot.transactionBitcoin transactions.witnessWitnesswitness_programThe segregated witness program as defined by BIP141.witness_versionThe segregated witness version byte as defined by BIP141.AddressA Bitcoin address.AmountAmountBlockBitcoin block.BlockHashA bitcoin block hash.CompactTargetEncoding of 256-bit target as 32-bit float.CompressedPublicKeyAn always-compressed Bitcoin ECDSA public keyFeeRateRe-export everything from the units::fee_rate module.Represents fee rate.FilterHashFilter

Add Comment