computeSecret method

BigInt computeSecret(
  1. Uint8List sText
)

Compute shared secret.

Implementation

BigInt computeSecret(Uint8List sText) {
  this.sText = sText;
  ECPoint s = curve.curve.decodePoint(sText);
  return (s * x).x.toBigInteger();
}