# 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.
