-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let the user sign an arbitrary message with its keystore #976
Comments
To follow best practices and let others benefit from this approach and not only dappnode, how feasible would it be to add to the standard a new type of signing to the existing endpoint Request: {
"type": "PROOF_OF_VALIDATION",
"platform": "",
"timestamp": "",
"pubkey": "",
} Edit: the Response: "message": {
"platform": "",
"timestamp": "",
"pubkey": "",
},
"signature": "" |
@pablomendezroyo It is do-able as we already have DEPOSIT and VALIDATOR_REGISTRATION which doesn't take fork_info as input parameter. The only thing to work out is that all other types attach a "domain" when calculating the signing root. I am assuming this one would be a simple signing? |
@usmansaleem you right, it would be a simple signing |
Currently, web3signer only permits signing certain types of data (as body payloads) in the
/api/v1/eth2/sign/{identifier}
ETH2 endpoint or/api/v1/eth1/sign/{identifier}
ETH1 endpoint. See https://consensys.github.io/web3signer/web3signer-eth2.htmlIt would be nice to add an endpoint (probably in ETH2 mode or both ETH1 & ETH2) that signs an arbitrary payload sent by the user. Something like:
This is outside web3signer main scope, it would let users sign messages not necessarily related to the eth2 protocol
The text was updated successfully, but these errors were encountered: