hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::bindings::ModelCrypto Class Reference

#include "model_crypto.hpp"

Collaboration diagram for shared_model::bindings::ModelCrypto:
Collaboration graph

Public Member Functions

crypto::Keypair generateKeypair ()
 
crypto::Keypair fromPrivateKey (const std::string &private_key)
 
crypto::Keypair convertFromExisting (const std::string &public_key, const std::string &private_key)
 

Detailed Description

Class for crypto operations for SWIG

Member Function Documentation

crypto::Keypair shared_model::bindings::ModelCrypto::convertFromExisting ( const std::string public_key,
const std::string private_key 
)

Retrieves Keypair object (ed25519) from existing keypair.

Parameters
public_key- ed25519 hex-encoded public key
private_key- ed25519 hex-encoded private key
Returns
keypair from provided keys

Here is the call graph for this function:

crypto::Keypair shared_model::bindings::ModelCrypto::fromPrivateKey ( const std::string private_key)

Creates keypair (ed25519) from provided private key

Parameters
private_key- ed25519 hex-encoded private key with length 64
Returns
created keypair

Here is the call graph for this function:

crypto::Keypair shared_model::bindings::ModelCrypto::generateKeypair ( )

Generates new keypair (ed25519)

Returns
generated keypair

Here is the call graph for this function:


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