You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// this injector object has a signer and a signRaw method
// to be able to sign raw bytes
const signRaw = injector?.signer?.signRaw;
if (!!signRaw) {
// after making sure that signRaw is defined
// we can use it to sign our message
const { signature } = await signRaw({
address: account.address,
data: stringToHex('message to sign'),
type: 'bytes'
});
}
The text was updated successfully, but these errors were encountered:
Details here https://polkadot.js.org/docs/extension/cookbook/#sign-a-message
The text was updated successfully, but these errors were encountered: