@exodus/message-signer
v3.0.0
Published
a module to sign asset-related messages
Downloads
3,792
Readme
@exodus/message-signer
The message signer delegates the unsigned message to the corresponding software or hardware wallet.
Install
yarn add @exodus/message-signerUsage
This feature is designed to be used together with @exodus/headless. See using the sdk.
Play with it
- Open the playground https://exodus-hydra.pages.dev/features/message-signer
- Try out the some methods via the UI. These corresponds 1:1 with the
exodus.messageSignerAPI. - Run the below in the Dev Tools Console:
await exodus.messageSigner.signMessage({
walletAccount: 'exodus_0',
baseAssetName: 'ethereum',
purpose: 44,
message: { rawMessage: Buffer.from('hello world') },
})API Side
See using the sdk for more details on how features plug into the SDK and the API interface in the type declaration.
await exodus.messageSigner.signMessage({
walletAccount,
baseAssetName: asset.name,
purpose: 44,
message: { rawMessage: Buffer.from('hello world') },
})