Safe Haskell | None |
---|---|
Language | Haskell2010 |
- serTxWitness :: NonEmpty Script -> ByteString
- calcTxSize :: Tx -> Word
- dummyHash256 :: Hash256
- hash256 :: Serialize a => a -> Hash256
- hash160 :: Serialize a => a -> Hash160
- opPush :: Serialize a => a -> ScriptOp
- addressToScript :: Address -> ScriptOutput
- decodeScriptHash :: ByteString -> Either String Hash160
- addressToScriptPubKeyBS :: Address -> ByteString
- replaceScriptInput :: Word32 -> Script -> Tx -> Tx
- removeOutputs :: Tx -> Tx
- appendOutput :: Tx -> TxOut -> Tx
- bitcoinPayPK :: PubKeyC -> Script
- bitcoinPayPKBS :: PubKeyC -> ByteString
Documentation
serTxWitness :: NonEmpty Script -> ByteString Source #
Serialize NonEmpty list of "script witnesses". A transaction with no witnesses should use the old tx serialization format, hence the non-empty list. (https:/github.combitcoinbipsblobmasterbip-0144.mediawiki#Serialization)
calcTxSize :: Tx -> Word Source #
removeOutputs :: Tx -> Tx Source #
bitcoinPayPK :: PubKeyC -> Script Source #
bitcoinPayPKBS :: PubKeyC -> ByteString Source #