Expose the stake pool BLS key in StakePoolParameters - #1307
Draft
ch1bo wants to merge 1 commit into
Draft
Conversation
cardano-ledger-core 1.22 added `sppBlsKey` to `StakePoolParams`, letting a stake pool register a BLS voting key together with a proof of possession from the Dijkstra era onwards. Surface it as `stakePoolBlsKey` and convert it in both directions, so building and inspecting a pool registration certificate round-trips the key. `createBlsKeyRegistration` derives the pair a pool has to register -- verification key plus proof of possession -- from a BLS signing key, which is otherwise fiddly to assemble from the pieces this module already exports. The ledger `BlsKey` is re-exported from `Cardano.Api.Ledger` so that callers do not need a direct cardano-ledger-core dependency to name the field's type. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
cardano-ledger-core 1.22 added
sppBlsKeytoStakePoolParams, letting a stake pool register a BLS voting key together with a proof of possession from the Dijkstra era onwards. Surface it asstakePoolBlsKeyand convert it in both directions, so building and inspecting a pool registration certificate round-trips the key.createBlsKeyRegistrationderives the pair a pool has to register -- verification key plus proof of possession -- from a BLS signing key, which is otherwise fiddly to assemble from the pieces this module already exports.The ledger
BlsKeyis re-exported fromCardano.Api.Ledgerso that callers do not need a direct cardano-ledger-core dependency to name the field's type.Context
Additional context for the PR goes here. If the PR fixes a particular issue please provide a link to the issue.
How to trust this PR
Highlight important bits of the PR that will make the review faster. If there are commands the reviewer can run to observe the new behavior, describe them.
Checklist
.changes/