hydra-tx-0.19.0: Hydra transaction library
Safe HaskellSafe-Inferred
LanguageGHC2021

Hydra.Tx.OnChainId

Description

Identifier or Head participants on-chain. That is, a participant in the Hydra Head protocol which authorizes protocol transitions on-chain.

Synopsis

Documentation

newtype OnChainId Source #

Identifier for a Hydra Head participant on-chain.

Instances

Instances details
Arbitrary OnChainId Source # 
Instance details

Defined in Hydra.Tx.OnChainId

FromJSON OnChainId Source # 
Instance details

Defined in Hydra.Tx.OnChainId

Methods

parseJSON :: Value -> Parser OnChainId

parseJSONList :: Value -> Parser [OnChainId]

omittedField :: Maybe OnChainId

ToJSON OnChainId Source # 
Instance details

Defined in Hydra.Tx.OnChainId

Methods

toJSON :: OnChainId -> Value

toEncoding :: OnChainId -> Encoding

toJSONList :: [OnChainId] -> Value

toEncodingList :: [OnChainId] -> Encoding

omitField :: OnChainId -> Bool

Generic OnChainId Source # 
Instance details

Defined in Hydra.Tx.OnChainId

Associated Types

type Rep OnChainId :: Type -> Type Source #

Show OnChainId Source # 
Instance details

Defined in Hydra.Tx.OnChainId

HasTypeProxy OnChainId Source # 
Instance details

Defined in Hydra.Tx.OnChainId

Associated Types

data AsType OnChainId #

SerialiseAsRawBytes OnChainId Source # 
Instance details

Defined in Hydra.Tx.OnChainId

Eq OnChainId Source # 
Instance details

Defined in Hydra.Tx.OnChainId

Ord OnChainId Source # 
Instance details

Defined in Hydra.Tx.OnChainId

type Rep OnChainId Source # 
Instance details

Defined in Hydra.Tx.OnChainId

type Rep OnChainId = D1 ('MetaData "OnChainId" "Hydra.Tx.OnChainId" "hydra-tx-0.19.0-CNt37yoHV6SLHPMLDZKDue" 'True) (C1 ('MetaCons "UnsafeOnChainId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))
data AsType OnChainId Source # 
Instance details

Defined in Hydra.Tx.OnChainId

genOnChainId :: Gen OnChainId Source #

Generate an arbitrary OnChainId of 28 bytes length.