Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
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
.
UnsafeParty | |
|
Instances
Arbitrary Party Source # | |
FromJSON Party Source # | |
Defined in Hydra.Data.Party parseJSON :: Value -> Parser Party parseJSONList :: Value -> Parser [Party] | |
ToJSON Party Source # | |
Defined in Hydra.Data.Party | |
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 fromBuiltinData :: BuiltinData -> Maybe Party | |
ToData Party Source # | |
Defined in Hydra.Data.Party toBuiltinData :: Party -> BuiltinData | |
UnsafeFromData Party Source # | |
Defined in Hydra.Data.Party 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
.