Type Alias AuthorizationModel

AuthorizationModel: {
    authorDelegatedGrant?: DelegatedGrantRecordsWriteMessage;
    ownerDelegatedGrant?: DelegatedGrantRecordsWriteMessage;
    ownerSignature?: GeneralJws;
    signature: GeneralJws;
}

The data model for the authorization property in a DWN message.

Type declaration

  • OptionalauthorDelegatedGrant?: DelegatedGrantRecordsWriteMessage

    The delegated grant required when the message is signed by an author-delegate.

  • OptionalownerDelegatedGrant?: DelegatedGrantRecordsWriteMessage

    The delegated grant required when the message is signed by an owner-delegate.

  • OptionalownerSignature?: GeneralJws

    An "overriding" signature for a DWN owner or owner-delegate to store a message authored by another entity.

  • signature: GeneralJws

    The signature of the message signer. NOTE: the signer is not necessarily the logical author of the message (e.g. signer is a delegate).