Raw contract strings (C...) and account IDs (G...) are easy to mishandle. A strong Address wrapper prevents invalid identifiers from entering the application's core logic.
Implementation Guidelines
Key Files: crates/core/src/types/ (create or update relevant type files).
- Define an
Address struct wrapping stellar-strkey::Contract and stellar-strkey::PublicKey.
Expectations
What done looks like: An Address struct that strictly represents a validated Stellar or Soroban address.
For any question, reach me on Discord: emry_ss
Raw contract strings (
C...) and account IDs (G...) are easy to mishandle. A strongAddresswrapper prevents invalid identifiers from entering the application's core logic.Implementation Guidelines
Key Files:
crates/core/src/types/(create or update relevant type files).Addressstruct wrappingstellar-strkey::Contractandstellar-strkey::PublicKey.Expectations
What done looks like: An
Addressstruct that strictly represents a validated Stellar or Soroban address.For any question, reach me on Discord: emry_ss