Bitcoin.jl Documentation

Bitcoin.jl Documentation

A Bitcoin library for Julia

Functions

Address

h160_2_address
address
wif

Transaction

Bitcoin.txfetch
Bitcoin.txparse
Bitcoin.txserialize
Bitcoin.txhash
Bitcoin.txid
Bitcoin.txfee
Bitcoin.txsighash256
Bitcoin.txsighash
Bitcoin.txinputverify
Bitcoin.txverify
Bitcoin.txsigninput
Bitcoin.txpushsignature
Bitcoin.iscoinbase
Bitcoin.coinbase_height

Inbound Transaction

Bitcoin.txinparse
Bitcoin.txinserialize
Bitcoin.txinvalue
Bitcoin.txin_scriptpubkey

Outband Transaction

Bitcoin.txoutparse(s::Base.GenericIOBuffer)
Bitcoin.txoutserialize(tx::TxOut)

Script

Bitcoin.scriptparse
Bitcoin.scriptevaluate
Bitcoin.p2pkh_script
Bitcoin.p2sh_script
Bitcoin.is_p2pkh
Bitcoin.is_p2sh
Bitcoin.script2address

OP

Bitcoin.op_ripemd160Function.

Return RIPEMD160 hash of top item

Bitcoin.op_sha1Function.

Return SHA1 hash of top item

Bitcoin.op_sha256Function.

Return SHA256 hash of top item

Bitcoin.op_hash160Function.

Return RIPEMD160(SHA256(x)) hash of top item

Bitcoin.op_hash256Function.

Return SHA256(SHA256(x)) hash of top item

Bitcoin.op_checksigFunction.

Pop a public key and signature and validate the signature for the transaction's hashed data, return TRUE if matching

Same as CHECKSIG, then OP_VERIFY to halt if not TRUE

Run CHECKSIG for each pair of signature and public key provided. All must match. Bug in implementation pops an extra value, prefix with OP_NOP as workaround

Same as CHECKMULTISIG, then OP_VERIFY to halt if not TRUE

Marks transaction as invalid if the top stack item is greater than the transaction's nLockTime field, otherwise script eveluation continues as though an OP_NOP was executed. Transaction is also invalid if 1. the stack is empty; or 2. the top stack item is negative; or 3. the top stack item is greater than or equal to 500000000 while the transaction's nLockTime field is less than 500000000, or vice versa; or 4. the input's nSequence field is equal to 0xffffffff. The precise semantics are described in BIP-65

Marks transaction as invalid if the relative lock time of the input (enforced by BIP-68 with nSequence) is not equal to or longer than the value of the top stack item. The precise semantics are described in BIP-112

Block

Bitcoin.blockparse
Bitcoin.serialize
Bitcoin.hash
Bitcoin.id
Bitcoin.bip9
Bitcoin.bip91
Bitcoin.bip141
Bitcoin.target
Bitcoin.difficulty
Bitcoin.check_pow

Buy me a cup of coffee

Donate Bitcoin

Index