ECPair.fromPublicKey constructor
ECPair.fromPublicKey(
- Uint8List publicKey, {
- NetworkType? network,
- bool? compressed,
Implementation
factory ECPair.fromPublicKey(Uint8List publicKey, {NetworkType? network, bool? compressed}) {
if (!ecc.isPoint(publicKey)) {
throw new ArgumentError('Point is not on the curve');
}
return new ECPair(null, publicKey, network: network, compressed: compressed);
}