A class representing a RecordsQuery DWN message.

Hierarchy

Accessors

  • get author(): undefined | string
  • DID of the logical author of this message. NOTE: we say "logical" author because a message can be signed by a delegate of the actual author, in which case the author DID would not be the same as the signer/delegate DID, but be the DID of the grantor (grantedBy) of the delegated grant presented.

    Returns undefined | string

  • get isSignedByAuthorDelegate(): boolean
  • If this message is signed by an author-delegate.

    Returns boolean

  • get message(): M
  • Valid JSON message representing this DWN message.

    Returns M

  • get signer(): undefined | string
  • Gets the signer of this message. This is not to be confused with the logical author of the message.

    Returns undefined | string

Methods

  • Authorizes the delegate who signed this message.

    Parameters

    • messageStore: MessageStore

      Used to check if the grant has been revoked.

    Returns Promise<void>