Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data AProposal a = AProposal {
- aBody ∷ !(Annotated ProposalBody a)
- issuer ∷ !VerificationKey
- signature ∷ !(Signature ProposalBody)
- annotation ∷ !a
- type Proposal = AProposal ()
- type UpId = Hash Proposal
- unsafeProposal ∷ ProposalBody → VerificationKey → Signature ProposalBody → Proposal
- signProposal ∷ ProtocolMagicId → ProposalBody → SafeSigner → Proposal
- signatureForProposal ∷ ProtocolMagicId → ProposalBody → SafeSigner → Signature ProposalBody
- body ∷ AProposal a → ProposalBody
- recoverUpId ∷ AProposal ByteString → UpId
- formatMaybeProposal ∷ Maybe Proposal → Builder
- data ProposalBody = ProposalBody {}
- recoverProposalSignedBytes ∷ Annotated ProposalBody ByteString → Annotated ProposalBody ByteString
Proposal
Proposal for software update
AProposal | |
|
Instances
Proposal Constructors
unsafeProposal ∷ ProposalBody → VerificationKey → Signature ProposalBody → Proposal Source #
Create an update Proposal
using the provided signature.
signProposal ∷ ProtocolMagicId → ProposalBody → SafeSigner → Proposal Source #
Create an update Proposal
, signing it with the provided safe signer.
signatureForProposal ∷ ProtocolMagicId → ProposalBody → SafeSigner → Signature ProposalBody Source #
Proposal Accessors
body ∷ AProposal a → ProposalBody Source #
Proposal Formatting
ProposalBody
data ProposalBody Source #
ProposalBody | |
|
Instances
ProposalBody Binary Serialization
recoverProposalSignedBytes ∷ Annotated ProposalBody ByteString → Annotated ProposalBody ByteString Source #
Prepend byte corresponding to `encodeListLen 5`, which was used during signing