Skip to content
Open
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
206 changes: 202 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ sqlx = { version = "0.8.6", default-features = false, features = [
] }
derive-where = { version = "1.2.7", default-features = false }
once_cell = { version = "1.21.3", default-features = false }
reqwest = { version = "0.11", features = ["json"] }
indexmap = { version = "2.0", features = ["serde"] }

# substrate dependencies
frame-benchmarking = { default-features = false, git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2506" }
Expand Down
10 changes: 10 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ This changelog is based on [Keep A Changelog](https://keepachangelog.com/en/1.1.

# Unreleased

## Added

* Enhanced `generate-keys` command in `partner-chains-cli`:
* Added `--url` parameter to enable automatic key generation via RPC (`author_rotateKeys`) when connecting to a running node.
* When `--url` is provided, the command automatically generates session keys by calling the node's RPC endpoint, decodes them using the runtime API, and saves them to the keystore and `partner-chains-public-keys.json`.
* Provides fallback and error handling for various runtime formats.
* Maintains backward compatibility - when called without `--url`, it uses the traditional local key generation method.
* Comprehensive test suite for SCALE decoding and key handling logic.
* Help message and workflow documentation updated to show both key generation methods and when to use each.

## Changed

* **BREAKING**: Updated partner-chains-smart-contracts (raw-scripts) dependency to v8.0.0.
Expand Down
3 changes: 3 additions & 0 deletions toolkit/partner-chains-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ pallet-governed-map = { workspace = true, features = ["std"] }
sp-governed-map = { workspace = true, features = ["std"] }
sidechain-slots = { workspace = true }
authority-selection-inherents = { workspace = true, features = ["std"] }
reqwest = { workspace = true }

parity-scale-codec = { workspace = true }

[dev-dependencies]
frame-system = { workspace = true }
Expand Down
Loading
Loading