computeSharedSecret static method
Computes the shared secret of Alice and Bob based on two Hexadecimal Strings
Implementation
static BigInt computeSharedSecret(String privateKeyHex, String publicKeyHex) {
return M511
.multiply(parsePublicKey(publicKeyHex), parsePrivateKey(privateKeyHex))
.x;
}