derivePublicKeyFromBytes function

Uint8List derivePublicKeyFromBytes(
  1. Uint8List privateKey,
  2. bool compressed
)

Generates a public key for the given private key. @param privateKey is a Uint8List @param compressed The output public key is compressed or not.

Implementation

Uint8List derivePublicKeyFromBytes(Uint8List privateKey, bool compressed) {
  return derivePublicKey(bytesToInt(privateKey), compressed);
}