SignRequest
typestring
Possible values: [JsonWebSignature2020
, DataIntegrityProof
]
Example:
{"type":"JsonWebSignature2020"}
plainDocumentobjectrequired
Example:
{"id":"document1","content":"This is a sample document"}
keyIdstring
Example:
did:example:12345
normalizationstring
Possible values: [RDFC
, JCS
]
Default value:
RDFC
Example:
RDFC
proofPurposestring
Default value:
assertionMethod
Example:
assertionMethod
options object
typestring
Possible values: [DataIntegrityProof
]
Example:
DataIntegrityProof
proofPurposestring
Example:
assertionMethod
idstring
Example:
did:example:xyz#proof-1
verificationMethodstring
Example:
did:example:author#verificationKey
cryptosuitestring
Example:
ecdsa-2019
createdstring
Example:
2021-01-01T00:00:00Z
expiresstring
Example:
2022-01-01T00:00:00Z
domainstring[]
Example:
["example.com"]
challengestring
Example:
1234567890
proofValuestring
Example:
ProofValueString
previousProofstring[]
Example:
["PreviousProof1","PreviousProof2"]
noncestring
Example:
nonce-string
embeddedVerificationMethodboolean
Default value:
false
Example:
false
SignRequest
{
"type": {
"type": "JsonWebSignature2020"
},
"plainDocument": {
"id": "document1",
"content": "This is a sample document"
},
"keyId": "did:example:12345",
"normalization": "RDFC",
"proofPurpose": "assertionMethod",
"options": {
"created": "2023-10-12T18:25:43.511Z",
"proofPurpose": "assertionMethod"
},
"embeddedVerificationMethod": false
}