This repository was archived by the owner on Feb 21, 2024. It is now read-only.
v2.1.0
This release mainly focuses on adding support for an extra argument to all Wallet types signMessage methods.
The second argument is messageData and provides the ability to sign Uint8Arrays, since a UTF-8 String is not always to best choice when signing a message.
The API still works the same, for a String message:
walletInstance.signMessage({ message: 'Hello' });But now, you also have another option of using Uint8Array directly:
walletInstance.signMessage({ messageData: new Uint8Array(32) });
Besides the above feature, all other changes are related to package updates (see below)
monorepo:
- Updated dev dependencies:
- Updated project's dependencies:
ethers#183
- Bumped version to next PATCH: 2.1.0
purser-core:
- Added an internal
messageOrDataValidatorthat supports bothStringmessages as well asUint8Array#194 by @sprusr - Bumped version to next PATCH: 2.1.0
purser-ledger:
- the
signMessageWallet instance method now supports passing in bothmessageormessageDataas arguments #194 by @sprusr - Bumped version to next PATCH: 1.2.2
purser-metamask:
- the
signMessageWallet instance method now supports passing in bothmessageormessageDataas arguments #194 by @sprusr - Bumped version to next PATCH: 2.1.0
purser-software:
- the
signMessageWallet instance method now supports passing in bothmessageormessageDataas arguments #194 by @sprusr - Bumped version to next PATCH: 1.2.4
purser-trezor: