Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!--
A new scriv changelog fragment.

Uncomment the section that is right (remove the HTML comment wrapper).
For top level release notes, leave all the headers commented out.
-->

<!--
### Patch

- A bullet item for the Patch category.

-->
<!--
### Non-Breaking

- A bullet item for the Non-Breaking category.

-->

### Breaking

- Allow `cardano-node` to integrate `kes-agent`: make the `PraosCredentialsAgent` constructor of `PraosCredentialsSource` usable by removing `Void`.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import qualified Control.Tracer as Tracer
import Data.Function (on)
import Data.Map.Strict (Map)
import Data.Ord (Down (Down))
import Data.Void
import Data.Word (Word64)
import GHC.Generics (Generic)
import NoThunks.Class
Expand Down Expand Up @@ -278,7 +277,7 @@ data PraosCredentialsSource c where
OCert.OCert c -> KES.UnsoundPureSignKeyKES (KES c) -> PraosCredentialsSource c
-- | Connect to a KES agent listening on a service socket at the given path.
PraosCredentialsAgent ::
Agent.DSIGN (ACrypto c) ~ DSIGN => Void -> FilePath -> PraosCredentialsSource c
Agent.DSIGN (ACrypto c) ~ DSIGN => FilePath -> PraosCredentialsSource c

instance (NoThunks (KES.UnsoundPureSignKeyKES (KES c)), Crypto c) => NoThunks (PraosCredentialsSource c) where
wNoThunks ctxt = \case
Expand All @@ -287,7 +286,7 @@ instance (NoThunks (KES.UnsoundPureSignKeyKES (KES c)), Crypto c) => NoThunks (P
[ noThunks ctxt oca
, noThunks ctxt k
]
PraosCredentialsAgent _ fp -> noThunks ctxt fp
PraosCredentialsAgent fp -> noThunks ctxt fp

showTypeOf _ = "PraosCredentialsSource"

Expand All @@ -308,7 +307,7 @@ instantiatePraosCredentials maxKESEvolutions _ (PraosCredentialsUnsound ocert sk
sk
startPeriod
maxKESEvolutions
instantiatePraosCredentials maxKESEvolutions tr (PraosCredentialsAgent _ path) = do
instantiatePraosCredentials maxKESEvolutions tr (PraosCredentialsAgent path) = do
HotKey.mkDynamicHotKey
maxKESEvolutions
(Just $ runKESAgentClient tr path)
Expand Down
Loading