code: function publicKeyVerify(key) {
    if (key.length === 0)
      return false;
  
    switch (key[0]) {
      case 0x02:
      case 0x03:
        return key.length === 33;
      case 0x04:
        if (key.length !== 65)
          return false;
  
        return secp256k1.publicKeyVerify(key);
      default:
        return false;
    }
  }
docs: Verify a public key (no hybrid keys allowed).
  @param {Buffer} key
  @returns {Boolean}