# DID Operations

All Sidtree-based DID operations require DID owners to generate specific data values and cryptographic material. These operations are:

* Create: Used to generate a side tree based DID. [More information](https://identity.foundation/sidetree/spec/#create)
* Update: Used to update the state of a DID. [More information](https://identity.foundation/sidetree/spec/#update)
* Recover: Used to recover a DID. [More information](https://identity.foundation/sidetree/spec/#recover)
* Deactivate: Used to deactivate a DID. [More information](https://identity.foundation/sidetree/spec/#recover)

## **Signing**

Sidetree relies on JSON Web signatures(JWS)( [RFC7515](https://tools.ietf.org/html/rfc7515)) for authentication and integrity protections of all DID operations, except with create operations which contain key material and are self certifying. More information on key singing can be found [here](https://identity.foundation/sidetree/spec/#signing).

## Verification

Sidetree operations are only valid when the JWS can be verified with the correct key pair for the type of operation that is invoked(with the exception of the create operation). These operations and associated key pairs keys are:

* [Update:](https://identity.foundation/sidetree/spec/#update) must be signed by a valid Update Key Pair.&#x20;
* [Recovery](https://identity.foundation/sidetree/spec/#recover):  must be signed by a valid Recovery Key Pair.&#x20;
* [Deactivate](https://identity.foundation/sidetree/spec/#deactivate): must be signed by a valid Recovery Key Pair.&#x20;

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zion.fyi/architecture/did/did-operations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
