Taquito v11.0.0-beta-RC.1
Pre-release
Pre-release
roxaneletourneau
released this
16 Nov 01:34
·
1304 commits
to master
since this release
@taquito/utils - Provide utility to verify signatures
The function named verifySignature
introduced in pre-release v11.0.0-beta-RC.1 in the @taquito/remote-signer
package has been moved to the @taquito/utils
package. Use of crypto library libsodium has been replace by stablelib in order not to drastically increase the bundle size of @taquito/utils
package.
verifySignature
allows verifying signatures of payloads. The function takes a message, a public key, and a signature as parameters and returns a boolean indicating if the signature matches.
Here is an example of use:
import { verifySignature } from '@taquito/utils';
const message = '03d0c10e3ed11d7c6e3357f6ef335bab9e8f2bd54d0ce20c482e241191a6e4b8ce6c01be917311d9ac46959750e405d57e268e2ed9e174a80794fbd504e12a4a000141eb3781afed2f69679ff2bbe1c5375950b0e40d00ff000000005e05050505050507070100000024747a32526773486e74516b72794670707352466261313652546656503539684b72654a4d07070100000024747a315a6672455263414c42776d4171776f6e525859565142445439426a4e6a42484a750001';
const pk = 'sppk7c7hkPj47yjYFEHX85q46sFJGw6RBrqoVSHwAJAT4e14KJwzoey';
const sig = 'spsig1cdLkp1RLgUHAp13aRFkZ6MQDPp7xCnjAExGL3MBSdMDmT6JgQSX8cufyDgJRM3sinFtiCzLbsyP6d365EHoNevxhT47nx'
await verifySignature(message, pk, sig);
@taquito/beacon-wallet - The beacon-sdk has been updated to version 2.3.7
Here is a link to the release notes: https://github.com/airgap-it/beacon-sdk/releases/tag/v2.3.7