public function

PublicKey public(
  1. PrivateKey privateKey
)

public returns the PublicKey corresponding to PrivateKey.

Implementation

PublicKey public(PrivateKey privateKey) {
  var publicKey = privateKey.bytes.sublist(32, 32 + PublicKeySize);
  return PublicKey(publicKey);
}