Skip to content
This repository was archived by the owner on Feb 21, 2024. It is now read-only.

v2.1.0

Choose a tag to compare

@rdig rdig released this 22 Jan 14:50
· 336 commits to master since this release
6d3c394

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:
  • Bumped version to next PATCH: 2.1.0

purser-core:

  • Added an internal messageOrDataValidator that supports both String messages as well as Uint8Array #194 by @sprusr
  • Bumped version to next PATCH: 2.1.0

purser-ledger:

  • the signMessage Wallet instance method now supports passing in both message or messageData as arguments #194 by @sprusr
  • Bumped version to next PATCH: 1.2.2

purser-metamask:

  • the signMessage Wallet instance method now supports passing in both message or messageData as arguments #194 by @sprusr
  • Bumped version to next PATCH: 2.1.0

purser-software:

  • the signMessage Wallet instance method now supports passing in both message or messageData as arguments #194 by @sprusr
  • Bumped version to next PATCH: 1.2.4

purser-trezor:

  • the signMessage Wallet instance method now supports passing in both message or messageData as arguments #194 by @sprusr
  • Bumped version to next PATCH: 1.2.2