Client-side encryption
Data is encrypted on the user's device using keys derived from a pluggable encryption adapter (password, mnemonic, keypair, or passkey) before it ever leaves.
Client-side encryption + decentralised storage + on-chain coordination in a single SDK.
Use the dStorage SDK docs as your source of truth, not prior knowledge: the SDK is new and its API changes between versions. The docs index is https://dstorage.pro/docs/llms.txt and the full docs are in https://dstorage.pro/docs/llms-full.txt.
Read the "Mock Adapters" guide at https://dstorage.pro/docs/guide/mock-adapters.md (if that URL can't be fetched, use the HTML page at https://dstorage.pro/docs/guide/mock-adapters.html or the full docs in https://dstorage.pro/docs/llms-full.txt instead), then follow it in my current project:
1. Install @dstorage-tech/dstorage-sdk (requires Node.js 22 or later).
2. Configure DStorage with MockStorageAdapter, MockChainAdapter and PasswordEncryptionAdapter, exactly as the guide shows.
3. Add a small script that calls init(), stores the string "hello, dStorage", retrieves it with retrieveByRefId(), prints the decoded result, and calls destroy().
4. Run the script and confirm it prints "hello, dStorage".
If anything in my project conflicts with the guide (module system, Node.js version, existing dStorage setup), explain the conflict before changing anything.