Version Packages#13
Merged
Merged
Conversation
211d10f to
ed8fd0f
Compare
ed8fd0f to
9bbdb1c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@signinwithethereum/siwe@4.2.0
Minor Changes
66f5176Thanks @jwahdatehagh! - Accept unchecksummed addresses with a warning; verify signatures regardless of address caseParsing no longer rejects all-lowercase or all-uppercase addresses. Previously, any address that wasn't properly EIP-55 checksummed produced a parse error. Now only mixed-case addresses with an incorrect checksum fail — all-lowercase and all-uppercase addresses parse successfully and surface a non-fatal warning on the new
warnings: string[]field ofParsedMessageandSiweMessage. Applications that want strict behavior can checkmessage.warnings.length === 0after construction.Verification is case-insensitive for EOA signature recovery. The recovered address (always EIP-55) is compared to the message address without regard to case, so messages carrying a lowercase or uppercase address verify correctly against a wallet signature.
Object-constructed messages are normalized to EIP-55.
new SiweMessage({ address: '0xabc...' })stores the checksummed form so the emitted message — and the bytes presented to the signer — are spec-compliant. A warning is still recorded when the input needed normalization. Mixed-case inputs with an incorrect checksum throw. Messages constructed from a raw string preserve the address verbatim so signature re-construction matches what the wallet signed.New exports from
@signinwithethereum/siwe-parser:classifyAddressCase(address)— returns'valid-checksum' | 'unchecksummed' | 'invalid-checksum'toChecksumAddress(address)— canonical EIP-55 encoder (accepts any-case input)AddressCaseStatustypeError message reworded — mixed-case addresses with a bad checksum now report
invalid EIP-55 address checksum(wasinvalid EIP-55 address).Patch Changes
66f5176]:@signinwithethereum/siwe-parser@4.2.0
Minor Changes
66f5176Thanks @jwahdatehagh! - Accept unchecksummed addresses with a warning; verify signatures regardless of address caseParsing no longer rejects all-lowercase or all-uppercase addresses. Previously, any address that wasn't properly EIP-55 checksummed produced a parse error. Now only mixed-case addresses with an incorrect checksum fail — all-lowercase and all-uppercase addresses parse successfully and surface a non-fatal warning on the new
warnings: string[]field ofParsedMessageandSiweMessage. Applications that want strict behavior can checkmessage.warnings.length === 0after construction.Verification is case-insensitive for EOA signature recovery. The recovered address (always EIP-55) is compared to the message address without regard to case, so messages carrying a lowercase or uppercase address verify correctly against a wallet signature.
Object-constructed messages are normalized to EIP-55.
new SiweMessage({ address: '0xabc...' })stores the checksummed form so the emitted message — and the bytes presented to the signer — are spec-compliant. A warning is still recorded when the input needed normalization. Mixed-case inputs with an incorrect checksum throw. Messages constructed from a raw string preserve the address verbatim so signature re-construction matches what the wallet signed.New exports from
@signinwithethereum/siwe-parser:classifyAddressCase(address)— returns'valid-checksum' | 'unchecksummed' | 'invalid-checksum'toChecksumAddress(address)— canonical EIP-55 encoder (accepts any-case input)AddressCaseStatustypeError message reworded — mixed-case addresses with a bad checksum now report
invalid EIP-55 address checksum(wasinvalid EIP-55 address).