getSharedSecret method
Generates Shared Secret
Implementation
Uint8List getSharedSecret(PublicKey publicKey, [bool isCompressed = true]) {
// ECDH
return Point.fromBytes(publicKey.bytes).mul(_privateKey).toRawBytes(isCompressed);
}
Generates Shared Secret
Uint8List getSharedSecret(PublicKey publicKey, [bool isCompressed = true]) {
// ECDH
return Point.fromBytes(publicKey.bytes).mul(_privateKey).toRawBytes(isCompressed);
}