Skip to content

fix: match signing accounts by SS58 only (strict host) - #34

Open
decrypto21 wants to merge 1 commit into
mainfrom
fix/strict-host-ss58-matching
Open

fix: match signing accounts by SS58 only (strict host)#34
decrypto21 wants to merge 1 commit into
mainfrom
fix/strict-host-ss58-matching

Conversation

@decrypto21

Copy link
Copy Markdown
Collaborator

What
Removes the raw-hex-pubkey fallback in getPairByAddress, so the test host matches signing accounts by SS58 address only - exactly like a real wallet. Rewires test-product.ts's trySignRaw to go through the real signer path (getLegacyAccountSigner(...).signBytes(...)) instead of hand-building the wire request.

Why
The hex fallback made the test host more lenient than production and silently masked paritytech/product-sdk#156: getLegacyAccountSigner was sending the signer as toHex(publicKey) instead of an SS58 address. With the fallback gone, legacy-account signRaw/signPayload fail here the same way they fail against a real wallet - so the suite catches this class of regression.

Gating
The legacy sign-raw integration test goes green only once this repo consumes the fixed wrapper (@novasamatech/host-api-wrapper ≥ 0.8.1, from triangle-js-sdks PR). Until then it correctly reproduces the failure. Don't merge ahead of that publish + dep bump.

Post-actions
Bumps version → 0.9.1, with CHANGELOG + forum-post entries per the repo's release checklist.

@decrypto21
decrypto21 requested a review from mordamax as a code owner June 1, 2026 19:16

@mordamax mordamax left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@decrypto21 please resolve conflicts
Also is there a way to test this addition?

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