Static
buildThis will create individual keys for each of the tags that look like tag.tag_property
Static
constructConstructs full key derivation path using the specified scheme.
Static
constructStatic
constructStatic
constructConstructs the full key derivation path using protocolPath
scheme.
Static
constructStatic
convertStatic
decryptDecrypts the encrypted data in a message reply using the given ancestor private key.
Any ancestor private key in the key derivation path.
Static
deriveDerives a descendant private key given an ancestor private key and the full absolute derivation path.
NOTE: right now only ECIES-ES256K
algorithm is supported for asymmetric encryption,
so we will only derive SECP256K1 key without additional conditional checks
Static
filterStatic
filterStatic
getStatic
isChecks if the given message is a RecordsWriteMessage
.
Static
isStatic
normalizeNormalizes the protocol and schema URLs within a provided RecordsFilter and returns a copy of RecordsFilter with the modified values.
incoming RecordsFilter to normalize.
a copy of the incoming RecordsFilter with the normalized properties.
Static
shouldStatic
validateValidates that ancestor derivation path matches the descendant derivation path completely.
with DwnErrorCode.RecordsInvalidAncestorKeyDerivationSegment
if fails validation.
Static
validateValidates the referential integrity of both author-delegated grant and owner-delegated grant.
Decoded payload of the author signature of the message. Pass undefined
if message is not signed.
Passed purely as a performance optimization so we don't have to decode the signature payload again.
Optional
ownerSignaturePayload: GenericSignaturePayloadDecoded payload of the owner signature of the message. Pass undefined
if no owner signature is present.
Passed purely as a performance optimization so we don't have to decode the owner signature payload again.
Class containing useful utilities related to the Records interface.