SignRequest
plainDocumentobjectrequired
Example:
{"id":"document1","content":"This is a sample document"}keyIdstring
Example:
did:example:12345normalizationstring
Possible values: [RDFC, JCS]
Default value:
RDFCExample:
RDFCproofPurposestring
Default value:
assertionMethodExample:
assertionMethodoptions object
idstring
Example:
did:example:xyz#proof-1typestring
Possible values: [DataIntegrityProof]
Example:
DataIntegrityProofproofPurposestring
Example:
assertionMethodverificationMethodstring
Example:
did:example:author#verificationKeycryptosuitestring
Example:
ecdsa-2019createdstring
Example:
2021-01-01T00:00:00Zexpiresstring
Example:
2022-01-01T00:00:00Zdomainstring[]
Example:
["example.com"]challengestring
Example:
1234567890proofValuestring
Example:
ProofValueStringpreviousProofstring[]
Example:
["PreviousProof1","PreviousProof2"]noncestring
Example:
nonce-stringembeddedVerificationMethodboolean
Default value:
falseExample:
falseSignRequest
{
"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
}