Skip to content

Add Stellar public key validator - #191

Merged
chizzy192 merged 1 commit into
StellarState:devfrom
louiss72:agent/stellar-public-key-validator-162
Jul 29, 2026
Merged

Add Stellar public key validator#191
chizzy192 merged 1 commit into
StellarState:devfrom
louiss72:agent/stellar-public-key-validator-162

Conversation

@louiss72

Copy link
Copy Markdown
Contributor

What changed

  • Added isValidStellarPublicKey in src/utils/stellar-address.utils.ts.
  • Added unit coverage for valid ed25519 G-addresses, malformed values, non-public-key StrKeys, and non-string input.

Validation

  • npm test -- --runTestsByPath tests/unit/stellar-address.test.ts
  • npm run type-check
  • npm run lint

Closes #162

@chizzy192 chizzy192 closed this Jul 29, 2026
@chizzy192 chizzy192 reopened this Jul 29, 2026
@chizzy192
chizzy192 merged commit 3534a6a into StellarState:dev Jul 29, 2026
3 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.

[BACKEND] Add helper for validating Stellar public key G-address format

2 participants