Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cardano.Chain.Update.Proposal
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
Constructors
AProposal | |
Fields
|
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 #
recoverUpId :: AProposal ByteString -> UpId Source #
Proposal Formatting
ProposalBody
data ProposalBody Source #
Constructors
ProposalBody | |
Fields
|
Instances
ProposalBody Binary Serialization
recoverProposalSignedBytes :: Annotated ProposalBody ByteString -> Annotated ProposalBody ByteString Source #
Prepend byte corresponding to `encodeListLen 5`, which was used during signing