| License | Apache-2.0 |
|---|---|
| Safe Haskell | None |
| Language | GHC2021 |
Singular.Registry.Signing
Description
Signing changes only the witness set. The body and its transaction identity are preserved. The constructor stays private: submission capabilities accept only a transaction passed through this payment-key signing boundary.
Synopsis
- data SignedTx
- detachedWitness :: SignKeyDSIGN Ed25519DSIGN -> ConwayTx -> WitVKey 'Witness
- signTx :: SignKeyDSIGN Ed25519DSIGN -> ConwayTx -> SignedTx
- signedTx :: SignedTx -> ConwayTx
- assembleSigned :: ConwayTx -> [WitVKey 'Witness] -> SignedTx
Documentation
detachedWitness :: SignKeyDSIGN Ed25519DSIGN -> ConwayTx -> WitVKey 'Witness Source #
The verification-key witness of a transaction's body hash, signed
by the key: the same witness signTx adds to a transaction's witness
set, detached, so the offline bundle-signing path can write it to its
own file. Pure.
signTx :: SignKeyDSIGN Ed25519DSIGN -> ConwayTx -> SignedTx Source #
Add a payment-key witness, preserving the body and other witnesses.
signedTx :: SignedTx -> ConwayTx Source #
The signed ledger transaction, for identity and durable journalling.
assembleSigned :: ConwayTx -> [WitVKey 'Witness] -> SignedTx Source #
Assemble a signed transaction from a transaction and its verified witnesses: the body bytes and identity of the transaction, with exactly those witnesses — the key witnesses the envelope's transaction already carries are replaced, not kept, so an envelope holding a witness that was never supplied (another body's, or an unneeded key's) does not smuggle it into the submission. The witnesses must have been verified against the body beforehand — this boundary adds them without signing and without verifying; the submit command verifies first and reconstructs the key witnesses it hands here.