BapEncryptionSuite
Comprehensive encryption toolkit using Bitcoin Attestation Protocol (BAP) identities for secure communication and data protection
🔧
Live preview would be rendered here
Component: BapEncryptionSuite
Install component
npm$
npm install bigblocks
import { BapEncryptionSuite, useBitcoinAuth } from 'bigblocks';
export default function BasicEncryption() {
const { bapInstance } = useBitcoinAuth();
const handleEncrypted = (result: EncryptedData) => {
console.log('Encrypted:', result);
// Store or transmit encrypted data
};
const handleDecrypted = (result: DecryptedData) => {
console.log('Decrypted:', result);
// Display decrypted content
};
return (
<BapEncryptionSuite
bapInstance={bapInstance}
onEncrypted={handleEncrypted}
onDecrypted={handleDecrypted}
/>
);
}