purser v2.1.0

purser

#1

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 Uint8Array s, 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:
    • `flow-bin
    • regenerator-runtime
    • prettier
    • jest-junit
  • Updated project’s dependencies:
    • ethers
  • Bumped version to next PATCH: 2.1.0

purser-core :

  • Added an internal messageOrDataValidator that supports both String messages as well as Uint8Array
  • 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
  • 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
  • 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
  • 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
  • Bumped version to next PATCH: 1.2.2

Release Candidate v1.2.0-rc.0:

  • Added support for EIP-1102 to keep in line with the upcoming Metamask change
  • Minor docs fixes
  • Minor fix to purser-core flow types

Release Candidate v1.2.0-rc.1:

  • Improvements to the Metamask EIP-1102 support, to also support legacy versions

Release Candidate v2.0.0-rc.0:

  • purser-metamask now returns the RLP encoded hex string after signing a transaction
  • purser-core's hexSequenceValidator disabled string length check
  • Minor docs fixes

monorepo:

  • Changed version to the main track (eg: latest): 2.0.0

purser-core:

  • Changed version to the main track (eg: latest): 2.0.0

purser-ledger:

  • Changed version to the main track (eg: latest): 1.1.2

purser-metamask:

  • Changed version to the main track (eg: latest): 2.0.0

purser-software:

  • Changed version to the main track (eg: latest): 1.1.4

purser-trezor:

  • Changed version to the main track (eg: latest): 1.1.2

Link to Github release