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_ripemd160
— Function.Return RIPEMD160 hash of top item
Bitcoin.op_sha1
— Function.Return SHA1 hash of top item
Bitcoin.op_sha256
— Function.Return SHA256 hash of top item
Bitcoin.op_hash160
— Function.Return RIPEMD160(SHA256(x)) hash of top item
Bitcoin.op_hash256
— Function.Return SHA256(SHA256(x)) hash of top item
Bitcoin.op_checksig
— Function.Pop a public key and signature and validate the signature for the transaction's hashed data, return TRUE if matching
Bitcoin.op_checksigverify
— Function.Same as CHECKSIG, then OP_VERIFY to halt if not TRUE
Bitcoin.op_checkmultisig
— Function.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
Bitcoin.op_checkmultisigverify
— Function.Same as CHECKMULTISIG, then OP_VERIFY to halt if not TRUE
Bitcoin.op_checklocktimeverify
— Function.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
Bitcoin.op_checksequenceverify
— Function.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
Index
Base.hash
Bitcoin.bip141
Bitcoin.bip9
Bitcoin.bip91
Bitcoin.check_pow
Bitcoin.coinbase_height
Bitcoin.difficulty
Bitcoin.h160_2_address
Bitcoin.id
Bitcoin.is_p2pkh
Bitcoin.is_p2sh
Bitcoin.iscoinbase
Bitcoin.op_checklocktimeverify
Bitcoin.op_checkmultisig
Bitcoin.op_checkmultisigverify
Bitcoin.op_checksequenceverify
Bitcoin.op_checksig
Bitcoin.op_checksigverify
Bitcoin.op_hash160
Bitcoin.op_hash256
Bitcoin.op_ripemd160
Bitcoin.op_sha1
Bitcoin.op_sha256
Bitcoin.p2pkh_script
Bitcoin.p2sh_script
Bitcoin.script2address
Bitcoin.scriptparse
Bitcoin.target
Bitcoin.txoutparse
Bitcoin.txpushsignature
Bitcoin.txsigninput
Bitcoin.wif
Secp256k1.serialize