use of com.github.rosklyar.crypto.PublicKey in project nem-library by rosklyar.
the class Ed25519KeyGenerator method derivePublicKey.
@Override
public PublicKey derivePublicKey(final PrivateKey privateKey) {
final Ed25519EncodedFieldElement a = Ed25519Utils.prepareForScalarMultiply(privateKey);
final Ed25519GroupElement pubKey = BASE_POINT.scalarMultiply(a);
return new PublicKey(pubKey.encode().getRaw());
}
Aggregations