YPC  0.2.0
Public Member Functions | Public Attributes | Protected Attributes | List of all members
crypto_pack_wrapper Class Reference

Public Member Functions

 crypto_pack_wrapper (crypto_pack_type cpt)
 
py::bytes gen_ecc_private_key ()
 
py::bytes gen_ecc_public_key_from_private_key (const py::bytes &private_key)
 
py::bytes hash_256 (const py::bytes &msg)
 
py::bytes encrypt (const py::bytes &msg, const py::bytes &public_key, uint32_t prefix)
 
py::bytes decrypt (const py::bytes &msg, const py::bytes &private_key, uint32_t prefix)
 
py::bytes sign (const py::bytes &msg, const py::bytes &private_key)
 
bool verify_sig (const py::bytes &sig, const py::bytes &msg, const py::bytes &public_key)
 

Public Attributes

std::unique_ptr< ypc::terminus::crypto_packm_crypto
 

Protected Attributes

crypto_pack_type m_type
 

The documentation for this class was generated from the following file: