Using nostr for bitcoin schnorr signature request orchestration and signing
Rust 100.00%
coinstr's Introduction
Using nostr to coordinate Bitcoin spending policy signatures and multi-custody
Usage: coinstr <COMMAND>
Commands:
generate Generates random account(s)
subscribe Subscribe to nostr events
publish Publish a nostr event
inspect Inspect a mnenonic for validity and print bitcoin and nostr keys
convert Convert between hex and bech32 format keys
balance Find the balance for a bitcoin descriptor
get Get things
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
Quick start
cargo build --release
Show spending policy (from test for now)
โ cargo test policy -- --nocapture
running 2 tests
Coinstr Policy
Name : ๐ธ My testing policy
Description : A policy for testing Alice and Bob multisig
Coinstr Policy
Name : ๐ธ My testing policy
Description : A policy for testing Alice and Bob multisig
๐ธ My testing policy
โโโ ๐ ktrzwzm6
โโโ ๐๏ธ Threshold Condition : 1 of 2
โโโ ๐ 96d6dvge
โ โโโ ๐ Schnorr Sig of <fingerprint:06d1e3e7>
โโโ ๐ 460alevg
โโโ ๐ Schnorr Sig of <fingerprint:ca0b6651>test policy::tests::build_multisig_policy ... ok
๐ธ My testing policy
โโโ ๐ ng5yfwlw
โโโ ๐๏ธ Threshold Condition : 2 of 2
โโโ ๐ nk7jnzl3
โ โโโ โ๏ธ ECDSA Sig of <pk:02e5d000a7ea6d5c577245bd8e8727d0b57f12d1d06bb8c7266df3e1ff22f326e9>
โโโ ๐ kxkjs274
โโโ ๐๏ธ Threshold Condition : 1 of 2
โโโ ๐ hn0csay5
โ โโโ โ๏ธ ECDSA Sig of <pk:032c9bf7a1a5074d790b9ff7f4b6f9595f4ff61d132da0d234ce47c69e9f2e5f89>
โโโ ๐ hwm4g28x
โโโ โณ Relative Timelock of 12960
test policy::tests::build_with_descriptor ... ok
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 11 filtered out; finished in 0.23s
Get list of known users
โ ./target/release/coinstr get users
Alice
Bob
Charlie
David
Erika