Skip to content

Feat/lookup table#76

Merged
Oghma merged 2 commits into
stellarfrom
feat/lookup-table
May 27, 2026
Merged

Feat/lookup table#76
Oghma merged 2 commits into
stellarfrom
feat/lookup-table

Conversation

@Oghma

@Oghma Oghma commented Apr 30, 2026

Copy link
Copy Markdown
Collaborator

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

@dkgoutham dkgoutham left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good!

@Oghma
Oghma merged commit f379981 into stellar May 27, 2026
24 of 34 checks passed
@Oghma
Oghma deleted the feat/lookup-table branch May 27, 2026 09:29
@dkgoutham dkgoutham mentioned this pull request Jun 17, 2026
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