Skip to content

Add backward compatibility tests for v3-encrypted data#986

Merged
pubkey merged 2 commits intomasterfrom
copilot/test-v3-encrypted-data-v4
Mar 13, 2026
Merged

Add backward compatibility tests for v3-encrypted data#986
pubkey merged 2 commits intomasterfrom
copilot/test-v3-encrypted-data-v4

Conversation

Copy link
Contributor

Copilot AI commented Mar 13, 2026

v4.0.0 changed crypto internals — need to verify data encrypted with v3 is still decryptable.

Hard-coded test fixtures generated with eth-crypto@3.1.0 using known keys, covering:

  • Object form — v3 encrypted {iv, ephemPublicKey, ciphertext, mac} decrypted in v4
  • Stringified form — compressed hex string (via cipher.stringify) decrypted in v4
  • Deterministic variants — fixed IV + ephemeral key for both object and stringified forms

All four cases confirm v3→v4 backward compatibility holds.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: pubkey <8926560+pubkey@users.noreply.github.com>
Copilot AI changed the title [WIP] Add test case for v3 encrypted data compatibility in v4 Add backward compatibility tests for v3-encrypted data Mar 13, 2026
Copilot AI requested a review from pubkey March 13, 2026 10:06
@pubkey pubkey marked this pull request as ready for review March 13, 2026 10:10
@pubkey pubkey merged commit 3659669 into master Mar 13, 2026
1 check 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.

2 participants