Requesting an arbitrary signature
getArbitrarySignature lets you sign arbitrary data with a given public key's private key.
const publicKey = '...' // The key you want a signature for
const data = ''; // Any string of words up to 12 characters each word
scatter.getArbitrarySignature(publicKey, data).then(signature => {
//...
}).catch(error => {
//...
});
const publicKey = '...' // The key you want a signature for
const data = ''; // Any string of words up to 12 characters each word
{
id:'random-uid',
type:'requestArbitrarySignature',
plugin:'Your App Name',
payload:{
origin:'domain' || 'YOUR_APP',
publicKey,
data,
}
}
PLEASE NOTE strings that have words with over 12 characters will be automatically rejected.
For instance:
You-cannot-sign-this-string -> But you can sign this one.