UNPKG

ecies-geth

Version:

JavaScript Elliptic Curve Integrated Encryption Scheme (ECIES) Library - Based off Geth's implementation

62 lines (37 loc) 1.77 kB
# CHANGELOG.md ## 1.7.5 Features: - Remove `browser` field in `package.json`. ## 1.7.3 (2024-10-23) Features: - Remove support for `ES3` to new default `ES5`. ## 1.7.0 (2023-11-05) Features: - Remove dependency to (vulnerable) `live-server` only used for testing purpose; - **Breaking change:** Messages encrypted with `ecies-geth` could not be decrypted using `go-ethereum` due to an `ecies: invalid message error`. Upon analysis of the source code, a nuanced discrepancy was identified. Specifically, the issue lay in the padding of the shared key: `go-ethereum` pads the shared key with zeros when it's less than 32 bytes, a behavior not mirrored in `ecies-geth`. Follow the links for specific lines in the sources: https://github.com/ethereum/go-ethereum/blob/master/crypto/ecies/ecies.go#L134-L136 https://github.com/cyrildever/ecies-geth/blob/master/lib/src/typescript/node.ts#L171 **IMPORTANT**: This fix introduces a breaking change. Messages encrypted by the older version of this library might not be decryptable after the update, and vice versa. Users will need to be aware of this incompatibility when considering an upgrade. ## 1.6.10 (2023-03-21) Features: - Add `ignoreDeprecations` in `tsconfig.json` at compilation to keep target at `ES3`. ## 1.5.0 (2021-03-26) Features: - Add `KeyPath` and `Path` types. ## 1.4.0 (2021-01-11) Features: - Latest `secp256k1` lib. ## 1.3.0 (2020-11-26) Features: - **Breaking change:** `verify()` returns `true` (instead of `null`). ## 1.2.2 (2020-07-25) Features: - Add eslint support. ## 1.1.0 (2020-05-15) Features: - Fix message length. ## 1.0.0 (2019-12-23) Features: - Original production version. <hr /> &copy; 2019-2024 Cyril Dever. All rights reserved.