useGetSharedSecret
Generate a shared secret using Elliptic Curve Diffie-Hellman key exchange with your customers' Comet wallet.
Last updated
Generate a shared secret using Elliptic Curve Diffie-Hellman key exchange with your customers' Comet wallet.
Last updated
const { getSharedSecret } = useGetSharedSecret({ publicKey: '<SOLANA ADDRESS>' });import { useGetSharedSecret } from '@comet-labs/react';
function App() {
const { getSharedSecret } = useGetSharedSecret({ publicKey: 'Dgq5B8i5NJJfPoUgpkFZDzRr84zd1BJrUBntJt1EBvgd' });
return (
<div className="App">
<button onClick={getSharedSecret}>
click for diffie hellman
</button>
</div>
);
}