Skip to main content

UpdatePayload

@hyperledger/identus-sdk v8.0.0


@hyperledger/identus-sdk / overview / UpdatePayload

Type Alias: UpdatePayload

UpdatePayload = { actions: UpdateAction[]; did: DID; key: PrivateKey; previousOperationHash?: Uint8Array; }

Defined in: packages/lib/sdk/src/castor/methods/prism/index.ts:138

Options for updating a Prism DID.

Properties

PropertyTypeDescriptionDefined in
actionsUpdateAction[]The actions to update the DID with.packages/lib/sdk/src/castor/methods/prism/index.ts:144
didDIDThe DID to update.packages/lib/sdk/src/castor/methods/prism/index.ts:142
keyPrivateKeyMaster signing key used to authorise the update.packages/lib/sdk/src/castor/methods/prism/index.ts:140
previousOperationHash?Uint8ArraySHA-256 hash of the last Atala operation applied to this DID. For the first update this is the create operation's hash, which equals the DID's state hash — defaulted from Domain.DID.methodId when omitted. For chained updates the caller must supply the hash of the previous update operation.packages/lib/sdk/src/castor/methods/prism/index.ts:153