A proof that can be added to any activity or object, allowing recipients to verify the identity of the actor and the integrity of the data.
DataIntegrityProof(values: { id?: URL | null; cryptosuite?: "eddsa-jcs-2022" | null; verificationMethod?: ; proofPurpose?: "assertionMethod"
| "authentication"
| "capabilityInvocation"
| "capabilityDelegation"
| "keyAgreement"
| null; proofValue?: Uint8Array | null; created?: Temporal.Instant | null; },unnamed 1?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; },)
Constructs a new instance of DataIntegrityProof with the given values.
_contextLoader: DocumentLoader | undefined
_documentLoader: DocumentLoader | undefined
created: Temporal.Instant | null
The date and time the proof was created.
cryptosuite: "eddsa-jcs-2022" | null
The cryptographic suite used to create the proof.
proofPurpose: "assertionMethod"
| "authentication"
| "capabilityInvocation"
| "capabilityDelegation"
| "keyAgreement"
| null
The reason the proof was created.
"assertionMethod"
"authentication"
"capabilityInvocation"
"capabilityDelegation"
"keyAgreement"
proofValue: Uint8Array | null
The proof value.
verificationMethodId: URL | null
Similar to
DataIntegrityProof.getVerificationMethod,
but returns its @id
URL instead of the object itself.
[Symbol.for("Deno.customInspect")](inspect: Deno.inspect,options: Deno.InspectOptions,): string
_getCustomInspectProxy(): Record<string, unknown>
clone(values?: { id?: URL | null; cryptosuite?: "eddsa-jcs-2022" | null; verificationMethod?: ; proofPurpose?: "assertionMethod"
| "authentication"
| "capabilityInvocation"
| "capabilityDelegation"
| "keyAgreement"
| null; proofValue?: Uint8Array | null; created?: Temporal.Instant | null; },options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; },): DataIntegrityProof
Clones this instance, optionally updating it with the given values.
getVerificationMethod(options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; suppressError?: boolean; }): Promise<Multikey | null>
A key owned by an actor according to FEP-521a: Representing actor's public keys.
isCompactable(): boolean
The type URI of DataIntegrityProof: https://w3id.org/security#DataIntegrityProof
.
fromJsonLd(json: unknown,options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; },): Promise<DataIntegrityProof>
Converts a JSON-LD structure to an object of this type.