multiversx / mx-sdk-js-web-wallet-provider

Signing provider for dApps: MultiversX (Web) Wallet.
Other
0 stars 1 forks source link

Implement sign message #19

Closed andreibancioiu closed 1 year ago

andreibancioiu commented 1 year ago

Signing a message:

// Using sdk-core's SignableMessage
provider.signMessage(new SignableMessage({ message: Buffer.from("hello") }))

// Using a simple buffer
provider.signMessage({ message: Buffer.from("hello") })

Retrieving the message signature (as a plain string): provider.getMessageSignatureFromWalletUrl().