| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Hydra.Data.Party
Synopsis
- newtype Party = UnsafeParty {
- vkey :: BuiltinByteString
- partyFromVerificationKeyBytes :: ByteString -> Party
- partyToVerficationKeyBytes :: Party -> ByteString
Documentation
On-chain representation of a Hydra party.
NOTE: This roughly corresponds to the Party in 'hydra-node', but is
simplified to allow usage of this type in plutus-tx. If we would use the
complex type directly, which is based on 'cardano-crypto-class', we would get
errors like "Error: Unsupported feature: Kind: GHC.Types.Nat".
The data constructor should not be used to construct this value as it would
always come from off-chain code via partyFromVerificationKeyBytes.
Constructors
| UnsafeParty | |
Fields
| |
Instances
| Arbitrary Party Source # | |
| Generic Party Source # | |
| Show Party Source # | |
| Eq Party Source # | |
| Eq Party Source # | |
Defined in Hydra.Data.Party | |
| FromData Party Source # | |
Defined in Hydra.Data.Party Methods fromBuiltinData :: BuiltinData -> Maybe Party | |
| ToData Party Source # | |
Defined in Hydra.Data.Party Methods toBuiltinData :: Party -> BuiltinData | |
| UnsafeFromData Party Source # | |
Defined in Hydra.Data.Party Methods unsafeFromBuiltinData :: BuiltinData -> Party | |
| type Rep Party Source # | |
Defined in Hydra.Data.Party | |
partyFromVerificationKeyBytes :: ByteString -> Party Source #
Create an on-chain Party from some verification key bytes.
partyToVerficationKeyBytes :: Party -> ByteString Source #
Get the verification key bytes contained from an on-chain Party.