privateKeyBytesToPublic function

Uint8List privateKeyBytesToPublic(
  1. Uint8List privateKey
)

Generates a public key for the given private key using the ed448 curve which core blockchain uses.

Implementation

Uint8List privateKeyBytesToPublic(Uint8List privateKey) {
  _validateLength(privateKey, _privateKeyLength, 'privateKey');
  final response = ed448Wallet.ed448DerivePublicKey(privateKey);
  return response;
}