loadPublicKey static method

Secp256k1Ge? loadPublicKey(
  1. List<int> pub
)

Implementation

static Secp256k1Ge? loadPublicKey(List<int> pub) {
  final ge = Secp256k1Ge();
  if (Secp256k1.secp256k1EckeyPubkeyParse(ge, pub)) {
    Secp256k1GeStorage storage = Secp256k1GeStorage();
    Secp256k1.secp256k1GeToStorage(storage, ge);
    final r = Secp256k1Ge();
    Secp256k1.secp256k1GeFromStorage(r, storage);
    return r;
  }
  return null;
}