Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .changeset/eip55-warnings.md

This file was deleted.

19 changes: 19 additions & 0 deletions packages/siwe-parser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# @signinwithethereum/siwe-parser

## 4.2.0

### Minor Changes

- [`66f5176`](https://github.com/signinwithethereum/siwe/commit/66f51766ad0a2404797fc5031af061c5708c7829) Thanks [@jwahdatehagh](https://github.com/jwahdatehagh)! - Accept unchecksummed addresses with a warning; verify signatures regardless of address case

**Parsing 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 of `ParsedMessage` and `SiweMessage`. Applications that want strict behavior can check `message.warnings.length === 0` after 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)
- `AddressCaseStatus` type

**Error message reworded** — mixed-case addresses with a bad checksum now report `invalid EIP-55 address checksum` (was `invalid EIP-55 address`).

## 4.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/siwe-parser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@signinwithethereum/siwe-parser",
"version": "4.1.0",
"version": "4.2.0",
"type": "module",
"description": "Parse Messages that conform to EIP-4361: Sign in with Ethereum (SIWE)",
"main": "dist/parsers.cjs",
Expand Down
24 changes: 24 additions & 0 deletions packages/siwe/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# @signinwithethereum/siwe

## 4.2.0

### Minor Changes

- [`66f5176`](https://github.com/signinwithethereum/siwe/commit/66f51766ad0a2404797fc5031af061c5708c7829) Thanks [@jwahdatehagh](https://github.com/jwahdatehagh)! - Accept unchecksummed addresses with a warning; verify signatures regardless of address case

**Parsing 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 of `ParsedMessage` and `SiweMessage`. Applications that want strict behavior can check `message.warnings.length === 0` after 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)
- `AddressCaseStatus` type

**Error message reworded** — mixed-case addresses with a bad checksum now report `invalid EIP-55 address checksum` (was `invalid EIP-55 address`).

### Patch Changes

- Updated dependencies [[`66f5176`](https://github.com/signinwithethereum/siwe/commit/66f51766ad0a2404797fc5031af061c5708c7829)]:
- @signinwithethereum/siwe-parser@4.2.0

## 4.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/siwe/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@signinwithethereum/siwe",
"version": "4.1.0",
"version": "4.2.0",
"type": "module",
"description": "Sign in with Ethereum (SIWE)",
"main": "dist/siwe.cjs",
Expand Down
Loading