Skip to content

core: load a KeyPair from its secret key - #132

Merged
hozan23 merged 1 commit into
masterfrom
core-keypair-from-secret
Nov 19, 2026
Merged

hozan23 merged 1 commit into
masterfrom
core-keypair-from-secret

Conversation

@hozan23

@hozan23 hozan23 commented Nov 19, 2026

Copy link
Copy Markdown
Member

Which issue does this PR close?

  • No issue

Rationale for this change

KeyPair::secret() exported the secret key, but nothing loaded it back,
so a node got a new keypair and PeerID on every run.

What changes are included in this PR?

  • KeyPair::from_secret(kp_type, bytes)

What is the testing strategy for this PR?

Unit test load_from_secret .

Are there any user-facing changes?

Yes: new KeyPair::from_secret in karyon_core (feature crypto).

@hozan23
hozan23 merged commit d10265a into master Nov 19, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant