| Crates.io | blindbitd |
| lib.rs | blindbitd |
| version | 0.0.1 |
| created_at | 2025-10-26 05:45:02.52715+00 |
| updated_at | 2025-10-26 05:45:02.52715+00 |
| description | Utility to run a blindbit-oracle server in integration tests |
| homepage | |
| repository | https://github.com/pythcoiner/blindbitdd |
| max_upload_size | |
| id | 1900968 |
| size | 17,247,509 |
Utility to run an blindbit-oracle instance into rust integration tests.
It will spawn a corepc-node under the hood for convenience.
This repo is (largely) inspired from bitcoind & electrsd projects.
This lib is shipped with a blindbit-oracle linux binary that i've compiled myself from commit bcd562f for convenience but you should use binaries you build by yourself.
use blindbitd::BlindbitD;
let mut bbd = new_blindbitd_instance();
let bitcoind = bbd.bitcoin();
// Generate 100 blocks
let address = bitcoind.new_address().unwrap();
bitcoind.generate_to_address(100, &address).unwrap();
let url = bbd.url();
use blindbitd::{BlindbitD, Conf};
let mut conf = Conf::default();
conf.binary = Some("path/to/your/binary".into());
let bbd = BlindbitD::with_conf(&conf).unwrap();
let mut bbd = new_blindbitd_instance();
let bitcoind = bbd.bitcoin();
// Generate 100 blocks
let address = bitcoind.new_address().unwrap();
bitcoind.generate_to_address(100, &address).unwrap();
let url = bbd.url();