@piplabs/cdr-sdk) provides a TypeScript client for interacting with Story’s Confidential Data Rails system. It handles threshold encryption, vault management, and on-chain access control.
Step-by-Step Guide
Learn CDR through a series of tutorials with the CDR SDK Integration Guide.
CDRClient
The main entry point. Provides access to three sub-clients:Sub-Clients
Observer
Read-only queries for vault data, fees, and DKG state.
Uploader
Encrypt data and write it to CDR vaults.
Consumer
Request decryption and recover encrypted data.
Crypto Utilities
Crypto
Low-level TDH2 and ECIES cryptographic primitives.

