✓ Do This, Not That
Signal Protocol Implementation Guide
In 15 minutes: Learn how to implement Signal Protocol correctly
Prerequisites: Practical Implementation
🎯 Simple Setup
Use the cryptography library wrapper with proper initialization.
import { CryptographyProvider, useCryptography } from '@positive-intentions/cryptography/ui'
function App() {
return (
<CryptographyProvider>
<SignalProtocolDemo />
</CryptographyProvider>
)
}
function SignalProtocolDemo() {
const crypto = useCryptography()
// Wait for crypto to be ready
if (!crypto.cryptoReady) {
return <div>Loading cryptography...</div>
}
// Now you can use Signal Protocol functions
}