original_docstring: 
      Check the proof validity in Keybase via the `sig/proof_valid` endpoint.
      Returns a boolean `proof_valid` indicating if the signature is valid for
      the given domain/kb_username/username/sig_hash combination.
  
      Before storing a signature `proof_valid=True` must hold.
      
docstring: Check the proof validity in Keybase via the `sig/proof_valid` endpoint.
  Returns a boolean `proof_valid` indicating if the signature is valid for
  the given domain/kb_username/username/sig_hash combination.
  
  Before storing a signature `proof_valid=True` must hold.
docstring_tokens: Check the proof validity in Keybase via the ` sig / proof_valid ` endpoint . Returns a boolean ` proof_valid ` indicating if the signature is valid for the given domain / kb_username / username / sig_hash combination . Before storing a signature ` proof_valid = True ` must hold .
code: def is_proof_valid(username, sig_hash, kb_username):
      """
      Check the proof validity in Keybase via the `sig/proof_valid` endpoint.
      Returns a boolean `proof_valid` indicating if the signature is valid for
      the given domain/kb_username/username/sig_hash combination.
  
      Before storing a signature `proof_valid=True` must hold.
      """
  
      domain = get_domain()
      endpoint = "https://keybase.io/_/api/1.0/sig/proof_valid.json"
      try:
          r = requests.get(endpoint, params={
              'domain': domain,
              'username': username,
              'kb_username': kb_username,
              'sig_hash': sig_hash,
          })
          if r.status_code != 200:
              print("Invalid response:", r)
              return False
          r_json = r.json()
          return r_json.get('proof_valid', False)
      except Exception:
          return False
code_tokens: def is_proof_valid ( username , sig_hash , kb_username ) : domain = get_domain ( ) endpoint = "https://keybase.io/_/api/1.0/sig/proof_valid.json" try : r = requests . get ( endpoint , params = { 'domain' : domain , 'username' : username , 'kb_username' : kb_username , 'sig_hash' : sig_hash , } ) if r . status_code != 200 : print ( "Invalid response:" , r ) return False r_json = r . json ( ) return r_json . get ( 'proof_valid' , False ) except Exception : return False
short_docstring: Check the proof validity in Keybase via the `sig/proof_valid` endpoint.
short_docstring_tokens: Check the proof validity in Keybase via the ` sig / proof_valid ` endpoint .
comment: """
      Check the proof validity in Keybase via the `sig/proof_valid` endpoint.
      Returns a boolean `proof_valid` indicating if the signature is valid for
      the given domain/kb_username/username/sig_hash combination.
  
      Before storing a signature `proof_valid=True` must hold.
      """