publicKey method

EDDSAPublicKey publicKey()

Retrieves the public key associated with this private key.

Implementation

EDDSAPublicKey publicKey() {
  if (_publicKey != null) {
    return _publicKey!;
  }
  final publicPoint = generator * _s;
  _publicKey ??= EDDSAPublicKey(generator, publicPoint.toBytes(),
      publicPoint: publicPoint);
  return _publicKey!;
}