Skip to content

feat(kaspa-tools): add compute-deposit-id command#457

Merged
danwt merged 1 commit intodanwt/claude/validator-info-escrow-pubfrom
danwt/claude/kaspa-tools-compute-deposit-id
Jan 27, 2026
Merged

feat(kaspa-tools): add compute-deposit-id command#457
danwt merged 1 commit intodanwt/claude/validator-info-escrow-pubfrom
danwt/claude/kaspa-tools-compute-deposit-id

Conversation

@danwt
Copy link
Copy Markdown

@danwt danwt commented Jan 27, 2026

Summary

  • Adds compute-deposit-id command to kaspa-tools that computes the Hyperlane message ID for a Kaspa deposit transaction
  • Enables verification of whether a deposit has been processed on the Dymension hub by checking against dymd q hyperlane delivered
  • Reuses existing ParsedHL::parse_string and add_kaspa_metadata_hl_messsage from dymension-kaspa crate

Usage

kaspa-tools compute-deposit-id <payload> <tx_id> <utxo_index>

Example:

kaspa-tools compute-deposit-id \
  03000000014088489d00...174876e800 \
  242b5987b89e939a8777d42072bbd3527dcfceb61048a4cf874fc473f76a1b79 \
  0

Output:

Hyperlane Message ID: 0x0167144656186f1caaf8a3ef0cd05f25052bbbf8a7433766a6af42d61a5efe5b

To check delivery on Dymension hub:
  dymd q hyperlane delivered <mailbox_id> 0x0167144656186f1caaf8a3ef0cd05f25052bbbf8a7433766a6af42d61a5efe5b

Test plan

  • Unit tests pass (cargo test -p kaspa-tools)
  • Tested with real mainnet deposit transaction payloads
  • Handles 0x prefix on payload and tx_id inputs

🤖 Generated with Claude Code

Add a command to compute the Hyperlane message ID for Kaspa deposit
transactions. This enables users to verify whether a deposit has been
processed on the Dymension hub by querying with the computed message ID.

The message ID is deterministically derived from the deposit payload
combined with the Kaspa transaction metadata (tx_id, utxo_index).

Usage:
  kaspa-tools compute-deposit-id <payload> <tx_id> <utxo_index>

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@danwt danwt merged commit 15b268f into danwt/claude/validator-info-escrow-pub Jan 27, 2026
1 check 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