Skip to content

feat(kaspa): add escrow_pub to validator-info response#456

Merged
danwt merged 1 commit intomain-dymfrom
danwt/claude/validator-info-escrow-pub
Jan 27, 2026
Merged

feat(kaspa): add escrow_pub to validator-info response#456
danwt merged 1 commit intomain-dymfrom
danwt/claude/validator-info-escrow-pub

Conversation

@danwt
Copy link
Copy Markdown

@danwt danwt commented Jan 27, 2026

Summary

  • Extend /validator-info endpoint to return both ISM address and escrow public key
  • Both fields are now optional to support validators with only ISM key, only escrow key, or both
  • The escrow_pub is the compressed secp256k1 public key (33 bytes hex)

Example responses:

ISM-only validator:

{"ism_address": "0xa8f4c60ca8143b8eed67980b0e7e794d3d96039a"}

Escrow-only validator:

{"escrow_pub": "02aa1e8aad8f1894703c8bfcba0b725512143b6f714305590af83462e5f8a5d709"}

Full validator (both keys):

{
  "ism_address": "0xa8f4c60ca8143b8eed67980b0e7e794d3d96039a",
  "escrow_pub": "02aa1e8aad8f1894703c8bfcba0b725512143b6f714305590af83462e5f8a5d709"
}

Test plan

  • Build passes: cargo check -p dymension-kaspa
  • Test with validator that has both keys configured
  • Test with validator that has only ISM key
  • Test with validator that has only escrow key

🤖 Generated with Claude Code

Extend the /validator-info endpoint to return both ISM address and
escrow public key. Both fields are now optional to support validators
that have only ISM key, only escrow key, or both.

Response format:
- ism_address: Ethereum-style address (if ISM signer configured)
- escrow_pub: Compressed secp256k1 public key hex (if escrow key configured)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@danwt danwt merged commit 1da10c9 into main-dym Jan 27, 2026
7 of 11 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