original_docstring: 
      Return the signature suitable for ed25519verify TEAL opcode
  
      Args:
          private_key (str): private key to sign with
          data (bytes): data to sign
          contract_addr (str): program hash (contract address) to sign for
  
      Return:
          bytes: signature
      
docstring: Return the signature suitable for ed25519verify TEAL opcode
docstring_tokens: Return the signature suitable for ed25519verify TEAL opcode
code: def teal_sign(private_key, data, contract_addr):
      """
      Return the signature suitable for ed25519verify TEAL opcode
  
      Args:
          private_key (str): private key to sign with
          data (bytes): data to sign
          contract_addr (str): program hash (contract address) to sign for
  
      Return:
          bytes: signature
      """
      private_key = base64.b64decode(private_key)
      signing_key = SigningKey(private_key[: constants.key_len_bytes])
  
      to_sign = (
          constants.logic_data_prefix
          + encoding.decode_address(contract_addr)
          + data
      )
      signed = signing_key.sign(to_sign)
      return signed.signature
code_tokens: def teal_sign ( private_key , data , contract_addr ) : private_key = base64 . b64decode ( private_key ) signing_key = SigningKey ( private_key [ : constants . key_len_bytes ] ) to_sign = ( constants . logic_data_prefix + encoding . decode_address ( contract_addr ) + data ) signed = signing_key . sign ( to_sign ) return signed . signature
short_docstring: Return the signature suitable for ed25519verify TEAL opcode
short_docstring_tokens: Return the signature suitable for ed25519verify TEAL opcode
comment: """
      Return the signature suitable for ed25519verify TEAL opcode
  
      Args:
          private_key (str): private key to sign with
          data (bytes): data to sign
          contract_addr (str): program hash (contract address) to sign for
  
      Return:
          bytes: signature
      """