Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Hydra.Tx.Party
Description
Types and functions revolving around a Hydra Party
. That is, a
participant in a Hydra Head, which signs transactions or snapshots in the
Hydra protocol.
Synopsis
- newtype Party = Party {}
- deriveParty :: SigningKey HydraKey -> Party
- partyToChain :: Party -> Party
- partyFromChain :: MonadFail m => Party -> m Party
- class HasParty a where
Documentation
Identifies a party in a Hydra head by it's VerificationKey
.
Constructors
Party | |
Fields |
Instances
deriveParty :: SigningKey HydraKey -> Party Source #
Get the Party
given some Hydra SigningKey
.
partyToChain :: Party -> Party Source #
partyFromChain :: MonadFail m => Party -> m Party Source #
Retrieve the "high-level" 'Party from the "low-level" on-chain
representation. This can fail because of the lower type-safety used on-chain
and a non-guaranteed verification key length. See Party
for an explanation why this is a distinct type.