ouroboros-consensus-0.1.0.0: Consensus layer for the Ouroboros blockchain protocol
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.NodeId

Contents

Synopsis

Node IDs

newtype CoreNodeId Source #

Core node ID

Constructors

CoreNodeId 

Fields

Instances

Instances details
Eq CoreNodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Ord CoreNodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Show CoreNodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Generic CoreNodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Associated Types

type Rep CoreNodeIdTypeType Source #

Hashable CoreNodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Methods

hashWithSaltIntCoreNodeIdInt

hashCoreNodeIdInt

Serialise CoreNodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Methods

encodeCoreNodeId → Encoding #

decode ∷ Decoder s CoreNodeId #

encodeList ∷ [CoreNodeId] → Encoding #

decodeList ∷ Decoder s [CoreNodeId] #

NoThunks CoreNodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Methods

noThunks ∷ Context → CoreNodeIdIO (Maybe ThunkInfo) #

wNoThunks ∷ Context → CoreNodeIdIO (Maybe ThunkInfo) #

showTypeOfProxy CoreNodeIdString #

Condense CoreNodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

type Rep CoreNodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

type Rep CoreNodeId = D1 ('MetaData "CoreNodeId" "Ouroboros.Consensus.NodeId" "ouroboros-consensus-0.1.0.0-inplace" 'True) (C1 ('MetaCons "CoreNodeId" 'PrefixI 'True) (S1 ('MetaSel ('Just "unCoreNodeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

data NodeId Source #

Constructors

CoreId !CoreNodeId 
RelayId !Word64 

Instances

Instances details
Eq NodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Methods

(==)NodeIdNodeIdBool Source #

(/=)NodeIdNodeIdBool Source #

Ord NodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Show NodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Generic NodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Associated Types

type Rep NodeIdTypeType Source #

Methods

fromNodeIdRep NodeId x Source #

toRep NodeId x → NodeId Source #

Hashable NodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Methods

hashWithSaltIntNodeIdInt

hashNodeIdInt

NoThunks NodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Methods

noThunks ∷ Context → NodeIdIO (Maybe ThunkInfo) #

wNoThunks ∷ Context → NodeIdIO (Maybe ThunkInfo) #

showTypeOfProxy NodeIdString #

Condense NodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Methods

condenseNodeIdString Source #

type Rep NodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

type Rep NodeId = D1 ('MetaData "NodeId" "Ouroboros.Consensus.NodeId" "ouroboros-consensus-0.1.0.0-inplace" 'False) (C1 ('MetaCons "CoreId" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 CoreNodeId)) :+: C1 ('MetaCons "RelayId" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64)))