Skip to main content

Quantum-Resistant
Encryption

CIFER SDK provides post-quantum cryptographic infrastructure for blockchain applications. Secure your on-chain data with ML-KEM-768 key encapsulation and AES-GCM encryption.

npm install cifer-sdk

Why CIFER SDK?

🔐 Quantum-Resistant

Built on ML-KEM-768 (NIST post-quantum standard) for encryption that stays secure against future quantum computers.

Learn more →

🌐 Multi-Chain Ready

Automatic chain discovery with support for multiple networks. Deploy secrets once, use across chains.

Learn more →

💼 Wallet Agnostic

Works with any EIP-1193 wallet—MetaMask, WalletConnect, Coinbase, or your own custom signer.

Learn more →

📦 Zero Dependencies

No wallet library lock-in. Bring your own wallet stack—ethers, viem, wagmi, or vanilla JS.

Learn more →

📁 File Encryption

Encrypt files of any size with async job processing. Perfect for NFT metadata, documents, and media.

Learn more →

⛓️ On-Chain Commitments

Store encrypted data commitments on-chain with log-based retrieval and integrity verification.

Learn more →

Simple, Powerful API

import { createCiferSdk, Eip1193SignerAdapter, blackbox } from 'cifer-sdk';

// Initialize SDK with automatic chain discovery
const sdk = await createCiferSdk({
  blackboxUrl: 'https://cifer-blackbox.ternoa.dev:3010',
});

// Connect your wallet
const signer = new Eip1193SignerAdapter(window.ethereum);

// Encrypt data with quantum-resistant encryption
const encrypted = await blackbox.payload.encryptPayload({
  chainId: 752025,
  secretId: 123n,
  plaintext: 'My confidential data',
  signer,
  readClient: sdk.readClient,
  blackboxUrl: sdk.blackboxUrl,
});

// Store encrypted.cifer on-chain, encrypted.encryptedMessage off-chain
console.log('Encrypted successfully!');

How It Works

1

Create a Secret

Register a quantum-resistant keypair on the SecretsController contract. The private key is secured in the CIFER network.

2

Encrypt Data

Send plaintext to the Blackbox API with wallet signature authorization. Data is encrypted using your secret's public key.

3

Store On-Chain

Commit the encrypted envelope to any CIFER-compatible smart contract. The encrypted payload can be stored anywhere.

4

Decrypt Anytime

Authorized users can decrypt by signing a request. The Blackbox verifies ownership and returns plaintext.

Ready to Build?

Start encrypting your blockchain data with quantum-resistant security in minutes.