ouroboros-consensus:protocol
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.Protocol.Praos.AgentClient

Documentation

class (MonadFail m, Show (Addr m)) ⇒ MonadKESAgent (m ∷ Type → Type) where Source #

Associated Types

type FD (m ∷ Type → Type) Source #

type Addr (m ∷ Type → Type) Source #

Methods

withAgentContext ∷ (Snocket m (FD m) (Addr m) → m a) → m a Source #

makeRawBearer ∷ MakeRawBearer m (FD m) Source #

makeAddress ∷ Proxy m → FilePath → Addr m Source #

Instances

Instances details
MonadKESAgent IO Source # 
Instance details

Defined in Ouroboros.Consensus.Protocol.Praos.AgentClient

Associated Types

type FD IO 
Instance details

Defined in Ouroboros.Consensus.Protocol.Praos.AgentClient

type FD IO = Socket
type Addr IO 
Instance details

Defined in Ouroboros.Consensus.Protocol.Praos.AgentClient

Methods

withAgentContext ∷ (Snocket IO (FD IO) (Addr IO) → IO a) → IO a Source #

makeRawBearer ∷ MakeRawBearer IO (FD IO) Source #

makeAddress ∷ Proxy IO → FilePath → Addr IO Source #

MonadKESAgent (IOSim s) Source # 
Instance details

Defined in Ouroboros.Consensus.Protocol.Praos.AgentClient

Associated Types

type FD (IOSim s) 
Instance details

Defined in Ouroboros.Consensus.Protocol.Praos.AgentClient

type FD (IOSim s) = FD (IOSim s) (TestAddress FilePath)
type Addr (IOSim s) 
Instance details

Defined in Ouroboros.Consensus.Protocol.Praos.AgentClient

type Addr (IOSim s) = TestAddress FilePath

Methods

withAgentContext ∷ (Snocket (IOSim s) (FD (IOSim s)) (Addr (IOSim s)) → IOSim s a) → IOSim s a Source #

makeRawBearer ∷ MakeRawBearer (IOSim s) (FD (IOSim s)) Source #

makeAddress ∷ Proxy (IOSim s) → FilePath → Addr (IOSim s) Source #

runKESAgentClient ∷ ∀ m c. (KESAgentContext c m, DSIGN (ACrypto c) ~ DSIGN) ⇒ Tracer m KESAgentClientTrace → FilePath → (OCert c → SignKeyKES (KES c) → Word → KESPeriod → m ()) → m () → m () Source #

Orphan instances

GlobalAddressScheme FilePath Source # 
Instance details

Methods

getAddressType ∷ TestAddress FilePath → AddressType

ephemeralAddress ∷ AddressType → Natural → TestAddress FilePath