| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Cometa.Signer
Description
Inject partial signing with keys kept inside scoped closures. A signer
returns witnesses without attaching them or submitting the transaction.
Merge its result explicitly with addWitnesses.
import qualified Cometa.Signer as Signer import qualified Cometa.Transaction as Tx signWith signer transaction = do result <- Signer.signTransaction signer transaction pure (result >>= (witnesses -> Tx.addWitnesses witnesses transaction))
Documentation
An application-supplied partial signer. Captured scoped keys/handlers must remain open throughout its use; escaped closures report the existing closed key/handler error. No private-key export is required.
Constructors
| Signer | |
Fields
| |
ed25519 :: SigningKey -> Signer Source #
Capture an open normal or extended Ed25519 signing key. The result contains one Shelley verification witness and does not mutate or attach it to input.