-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use mlocked KES internally #1374
Open
tdammers
wants to merge
7
commits into
main
Choose a base branch
from
tdammers/mlocked-kes-rebase
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
443ab79
Update to an unreleased version of ledger with mempack usage
lehins c580128
update srp
lehins 2902d89
Update to use newest cardano-crypto-class with unsound pure KES imple…
lehins c844bc2
Pin versions of crypto packages
lehins cfddb02
Use mlocked KES
tdammers 452d5e1
Address review comments
tdammers a2dd9f6
Address more review comments
tdammers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...os-consensus-cardano/changelog.d/20250130_093803_tdammers_mlocked_kes_rebase.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
### Breaking | ||
|
||
- Use new mlocked KES API for all internal KES sign key handling. | ||
- Add finalizers to all block forgings (required by `ouroboros-consensus`). | ||
- Change `HotKey` to manage not only KES sign keys, but also the corresponding | ||
OpCerts. This is in preparation for KES agent connectivity: with the new | ||
design, the KES agent will provide both KES sign keys and matching OpCerts | ||
together, and we need to be able to dynamically replace them both together. | ||
- Add finalizer to `HotKey`. This takes care of securely forgetting any KES | ||
keys the HotKey may still hold, and will be called automatically when the | ||
owning block forging terminates. | ||
tdammers marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- Change `ShelleyLeaderCredentials` to not contain the KES sign key itself | ||
anymore. Instead, the `CanBeLeader` data structure now contains a | ||
`praosCanBeLeaderCredentialsSource` field, which specifies how to obtain the | ||
actual credentials (OpCert and KES SignKey). | ||
- The `KesKey` data type in `unstable-cardano-tools` has been renamed to | ||
`UnsoundPureKesKey`, to reflect the fact that it uses the old, unsound KES | ||
API (which does not use mlocking or secure forgetting). | ||
tdammers marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm unsure we want to merge this as is. If we did so Consensus would be unreleasable until those other dependencies are released. I think we should wait until there are no more
source-repository-package
stanzas.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree. This PR depends on another PR anyway, so it's not in a merge-ready state. I just want to have it as ready as I can.