from static method

Implementation

static Secp256k1PublicKey from(PublicKey key) {
  return Secp256k1PublicKey.fromDer(key.toDer());
}