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
| Property | Type | Description | Defined in |
|---|---|---|---|
actions | UpdateAction[] | The actions to update the DID with. | packages/lib/sdk/src/castor/methods/prism/index.ts:144 |
did | DID | The DID to update. | packages/lib/sdk/src/castor/methods/prism/index.ts:142 |
key | PrivateKey | Master signing key used to authorise the update. | packages/lib/sdk/src/castor/methods/prism/index.ts:140 |
previousOperationHash? | Uint8Array | SHA-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 |