odf-sign
Sign EIP-712 typed data
This endpoint authorizes that the caller has signing permissions for a specified managed key and signs the message with it.
The optional includeNodeProof flag is used to additionally sign the resulting signature with the node's own secp256k1 key, allowing for on-chain verification.
post/sign/eip712
Query parameters
keystring required
Example:did:odf:fed01a561ed291d9c38b6a561ed291d9c38b63017d606c75606006bfe2508acbc4c25
DID of the managed key to sign with
includeNodeProofboolean
Include a node proof over the resulting signature
Request body
Response
Example response
{
"proof": {
"signature": "0x48b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353efffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c8041b",
"verificationMethod": "0x03993fbdd2f7a840b78202496af7e699dc9fcd1667f16dcce73887d563f448cc31"
},
"signature": "uAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"verificationMethod": "did:key:z6MkmgVreHBu2ABaD59Jq1J2JneXwzpsUWwEWXS4kLhjb4V4"
}