Skip to content

Guard stake RPC operator public key#438

Open
giwaov wants to merge 1 commit into
canopy-network:mainfrom
giwaov:issue-203-stake-pubkey-guard
Open

Guard stake RPC operator public key#438
giwaov wants to merge 1 commit into
canopy-network:mainfrom
giwaov:issue-203-stake-pubkey-guard

Conversation

@giwaov

@giwaov giwaov commented Jun 28, 2026

Copy link
Copy Markdown

Summary

  • Preserve an explicitly supplied stake pubKey instead of always replacing it with the signer key.
  • Reject stake RPC requests when the supplied public key does not resolve to the requested validator address.
  • Add focused RPC admin tests for pubKey preservation and validator-address validation.

Why

Fixes #203. Signing a stake request with the output key should not silently construct a custodial validator registration for the output key.

Testing

  • git diff --check
  • Not run: Go toolchain is not installed in this environment.

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.

[BUG] Output key signing for a 'stake message' will automatically be custodial

1 participant