Skip to content

Feat/lookup table#76

Open
Oghma wants to merge 2 commits into
stellarfrom
feat/lookup-table
Open

Feat/lookup table#76
Oghma wants to merge 2 commits into
stellarfrom
feat/lookup-table

Conversation

@Oghma
Copy link
Copy Markdown
Collaborator

@Oghma Oghma commented Apr 30, 2026

Summary

Add to the core contract the methods for recording Soroban addresses under a canonical hash and resolving those hashes back to addresses.

Changes

  • Add hash_address helper using the address StrKey string bytes as the hash input.
  • Add record_address and get_address_from_hash to the Wormhole Core interface.
  • Store address lookups under StorageKey::AddressTable.
  • Extend storage TTL on address lookup writes and reads.
  • Add AddressNotFound for missing lookup entries.
  • Add unit tests for address lookup round trips and missing hash behavior.

Breaking changes

None.

Notes

The address hash intentionally uses the Soroban address StrKey string bytes, not raw account or contract bytes.

@Oghma Oghma requested a review from dkgoutham April 30, 2026 08:55
Copy link
Copy Markdown

@dkgoutham dkgoutham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

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.

2 participants