Static
compareStatic
compareStatic
createCreates the authorization
property to be included in a DWN message.
Optional
delegatedOptional
permissionOptional
protocolused as an authorization
property.
Static
createCreates a generic signature from the given DWN message descriptor by including descriptorCid
as the required property in the signature payload.
NOTE: there is an opportunity to consolidate RecordsWrite.createSignerSignature() wth this method
Optional
additionalPayloadProperties: { Optional
delegatedOptional
permissionOptional
protocolStatic
getGets the DID of the author of the given message.
Static
getGets the CID of the given message.
Static
getnewest message in the array. undefined
if given array is empty.
Static
getoldest message in the array. undefined
if given array is empty.
Static
getGets the DID of the signer of the given message, returns undefined
if message is not signed.
Static
isStatic
isStatic
isSee if the given message is signed by an author-delegate.
Static
isSee if the given message is signed by an owner-delegate.
Static
validateStatic
validateValidates the structural integrity of the message signature given:
descriptorCid
property matches the CID of the message descriptor
NOTE: signature is NOT verified.The key to look up the JSON schema referenced in compile-validators.js
and perform payload schema validation on.
the parsed JSON payload object if validation succeeds.
A class containing utility methods for working with DWN messages.