1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*! # Nour
A high-performance, secure Bitcoin SV toolkit for building applications handling thousands of
transactions per second. Provides primitives for transactions, script evaluation, P2P messaging,
address handling, and wallet key management.
Successor to [rust-sv](https://github.com/murphsicles/rust-sv), built for Rust 2024 edition with
async-ready networking and optimized cryptographic operations.
## Usage
use nour::address::Address;
use nour::network::Network;
let addr = Address::from_pubkey_hash([0; 20], Network::Mainnet);
assert_eq!(addr.to_base58check(), "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa");
## Features
- `async`: Enables non-blocking P2P networking with Tokio (e.g., `peer::connect_async`).
## Security
- Run `cargo audit` monthly to check for dependency vulnerabilities.
- Not intended for full consensus validation; use with a trusted BSV node.
## Performance
Optimized for high-throughput BSV applications (e.g., 10k TPS). See benchmarks in each module.
*/