[][src]Module sv::util

Miscellaneous helpers

Modules

rx

Lightweight reactive library

Structs

BloomFilter

Bloom filter used by SPV nodes to limit transactions received

Hash160

160-bit hash for public key addresses

Hash256

256-bit hash for blocks and transactions

Enums

Error

Standard error type used in the library

Constants

BITCOIN_CASH_FORK_HEIGHT_MAINNET

Block height that BCH and BTC forked on mainnet

BITCOIN_CASH_FORK_HEIGHT_TESTNET

Block height that BCH and BTC forked on testnet

BLOOM_FILTER_MAX_FILTER_SIZE

Maximum number of bytes in the bloom filter bit field

BLOOM_FILTER_MAX_HASH_FUNCS

Maximum number of hash functions for the bloom filter

GENESIS_UPGRADE_HEIGHT_MAINNET

Block height that activated the genesis upgrade on mainnet

GENESIS_UPGRADE_HEIGHT_TESTNET

Block height that activated the genesis upgrade on testnet

Traits

Serializable

An object that may be serialized and deserialized

Functions

hash160

Hashes a data array once with SHA256 and again with RIPEMD160

secs_since

Gets the time in seconds since a time in the past

sha256d

Hashes a data array twice using SHA256

Type Definitions

Result

Standard Result used in the library