# SDK

DPSN provides Software Development Kits (SDKs) for both publishers and subscribers to simplify interaction with the network. These SDKs encapsulate the complexities of DPSN's decentralized architecture, providing a user-friendly interface for message publishing, subscription, and management.

#### Core Functionalities

* **Message Creation and Publishing:** Publishers can create and publish messages using the SDK, including formatting, encryption (including FHE), and topic selection.
* **Subscription Management:** Subscribers can easily manage their subscriptions, including creating, modifying, and deleting subscriptions.
* **Message Reception and Processing:** Subscribers can receive, process, and decrypt (including FHE decryption) messages using the SDK.
* **Error Handling:** The SDK provides mechanisms for handling network errors, message delivery failures, and other exceptions.
* **Security:** SDKs incorporate security best practices, including key management, authentication, and authorization.
* **Speed vs Accuracy:** DPSN icnorporates unique consensus mechanicms that allows subscribers to take decision according to their speed and messages accuracy expectations.

#### FHE Integration

The SDKs seamlessly integrate with FHE libraries, allowing users to encrypt data before publishing, perform computations on encrypted data, and decrypt results.


---

# 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.dpsn.org/architecture/sdk.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.
