Expand description
General utility functions, conversions, and helper tools.
Functions§
- asset_
entropy - Calculates new sha256 midstate and binds generated entropy to the specific outpoint.
- btc2sat
- Converts BTC amount into Satoshi.
- hash_
script - Computes the SHA-256 hash of a given script and returns the resulting 32-byte array.
- random_
mnemonic - Generates a radom menemonic with 12 words.
- sat2btc
- Converts Satoshi amount into BTC.
- tap_
data_ hash - Hashes arbitrary data with and additional
TapDataand tags. - tr_
unspendable_ key - Generates a hardcoded “unspendable” Taproot public key.