v51

latestOpenAPI 3.1.0BSLraw.githubusercontent.com2026-08-01285574.9 KB
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

messageobject required
primaryTypestring required
typesobject required

Response

signaturestring required
type'Ed25519Signature2020' | 'EcdsaSecp256k1Signature2019' required
verificationMethodstring required

Example response

{
  "proof": {
    "signature": "0x48b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353efffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c8041b",
    "verificationMethod": "0x03993fbdd2f7a840b78202496af7e699dc9fcd1667f16dcce73887d563f448cc31"
  },
  "signature": "uAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
  "verificationMethod": "did:key:z6MkmgVreHBu2ABaD59Jq1J2JneXwzpsUWwEWXS4kLhjb4V4"
}