Sign arbitrary data using a specified signature algorithm #1292
Labels
Feature
New functionality expanding SDK’s capabilities, adding tools or APIs for developers.
P4 - Needs Investigation
Requires analysis to determine cause or feasibility. Not fully understood, needs research first.
I'm submitting a ...
What is the current behavior and expected behavior?
When calling
signRaw
orsignPayload
on aSigner
using the extension, the keyring pair type seems to be selected by the extension(what the user has configured or substrate default) and in cases where you want to use the users private-key/seed to generate a deterministic signature, accounts using thesr25519
type isn't a viable approach.We need to generate a deterministic signature using the users private key stored in the extension to generate a salt that is used to authenticate the users submission in a two step extrinsic submission process.
This is related to the new court implementation on zeitgeist where the user votes in secret and later reveals their vote.
For reference here is the kleros implementation outlined:
To be able to specify the type
ethereum
or other deterministic algorithm when signing arbitrary pieces of data using the wallet extension. In the assumption that the extension can use the same seed to generate the neededKeyringPair
to sign the data.The text was updated successfully, but these errors were encountered: