Skip to main content

Crate causeway_btc

Crate causeway_btc 

Source
Expand description

Causeway off-chain helpers for Bitcoin.

  • address — P2TR vault address (Causeway tweak ∘ BIP-341 TapTweak)
  • tx — unsigned tx + sighash construction
  • sign — splice the threshold Schnorr signature into the witness

Modules§

address
P2TR vault address: re-export the existing causeway_derive::btc pipeline (Causeway tweak → BIP-341 TapTweak → bech32m).
sign
Splice the 64-byte BIP-340 Schnorr signature from the threshold round into the input-0 witness.
tx
BIP-341 sighash + witness construction. Stub for v0.1.0-alpha.0.

Enums§

BtcError