Skip to main content

Crate hns_light_wallet

Crate hns_light_wallet 

Source
Expand description

Locally verified Handshake filtered-block evidence for embedded wallets.

Peers provide bloom-filter matches, MerkleBlock payloads, and transactions. This crate treats all of them as untrusted until the partial Merkle tree is bound to a consensus-validated hns_light_chain::HeaderEntry or an authenticated archived WalletHeaderAnchor, and every advertised transaction hash is exactly correlated. The wallet therefore persists headers and its own coins, names, and boards rather than a pruned global transaction or name index.

Structs§

FilteredBlockCollector
Correlates transaction packets following one verified HSD MerkleBlock.
HsdBloomFilter
Exact HSD-compatible BIP37 bloom filter.
MatchedTransaction
One transaction hash proven into the expected header’s Merkle root.
VerifiedWalletBlock
Complete matched transaction set for one locally validated block header.
WalletBlockEvidence
Partial-Merkle evidence bound to one locally consensus-validated header.
WalletHeaderAnchor
Minimal locally validated header fields needed by wallet block evidence.

Enums§

BloomError
BIP37 filter construction or encoding failure.
BloomUpdate
HSD bloom-filter automatic outpoint update mode.
WalletEvidenceError
Filtered-block proof or exact transaction-correlation failure.

Constants§

MAX_BLOOM_FILTER_BYTES
HSD/Bitcoin policy maximum bloom-filter byte length.
MAX_BLOOM_HASH_FUNCTIONS
HSD/Bitcoin policy maximum bloom-filter hash function count.
MAX_FILTERED_BLOCK_TRANSACTIONS
HSD’s maximum plausible transactions in a one-megabyte base block.
MAX_FILTER_ADD_ELEMENT_BYTES
HSD maximum element length accepted by filteradd.
MAX_MERKLE_BLOCK_PAYLOAD_BYTES
Strict upper bound for one canonical HSD MerkleBlock payload.
MAX_PARTIAL_MERKLE_FLAG_BYTES
Maximum flags needed by a full partial tree with the transaction bound.

Functions§

request_filtered_blocks
Request locally known headers as HSD filtered blocks.