decompressPublicKey function
Given a byte array computes its expanded version and returns it as a byte array, including the leading 04
Implementation
Uint8List decompressPublicKey(Uint8List compressedPubKey) {
return Uint8List.view(
params.curve.decodePoint(compressedPubKey)!.getEncoded(false).buffer,
);
}