CurvePublicKey

From SQRLauth.net
Jump to: navigation, search

Once we have a CurvePrivateKey, we can compute it's public counterpart.

function CurvePublicKey( curvePrivateKey )
{
  curvePublicKey := 32 bytes
  basepoint := 32 bytes

  set basepoint to a 9 followed by 31 null bytes

  curve25519( curvePublicKey, curvePrivateKey, basepoint);
  return curvePublicKey;
}