Skip to main content
Version: v0.13.0

SignRequest

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
idstring
Example: did:example:xyz#proof-1
typestring

Possible values: [DataIntegrityProof]

Example: DataIntegrityProof
proofPurposestring
Example: assertionMethod
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
{
"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
}