Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type TxWitness = Vector TxInWitness
- data TxInWitness
- newtype TxSigData = TxSigData {}
- type TxSig = Signature TxSigData
- recoverSigData ∷ Annotated Tx ByteString → Annotated TxSigData ByteString
Documentation
type TxWitness = Vector TxInWitness Source #
A witness is a proof that a transaction is allowed to spend the funds it spends (by providing signatures, redeeming scripts, etc). A separate proof is provided for each input.
data TxInWitness Source #
A witness for a single input
VKWitness !VerificationKey !TxSig | VKWitness twKey twSig |
RedeemWitness !RedeemVerificationKey !(RedeemSignature TxSigData) | RedeemWitness twRedeemKey twRedeemSig |
Instances
Data that is being signed when creating a TxSig