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

#include "crypto_provider.hpp"

Collaboration diagram for shared_model::crypto::CryptoProviderEd25519Sha3:
Collaboration graph

Static Public Member Functions

static Signed sign (const Blob &blob, const Keypair &keypair)
 
static bool verify (const Signed &signedData, const Blob &orig, const PublicKey &publicKey)
 
static Seed generateSeed ()
 
static Seed generateSeed (const std::string &passphrase)
 
static Keypair generateKeypair ()
 
static Keypair generateKeypair (const Seed &seed)
 

Static Public Attributes

static const size_t kHashLength = 256 / 8
 
static const size_t kPublicKeyLength = 256 / 8
 
static const size_t kPrivateKeyLength = 512 / 8
 
static const size_t kSignatureLength = 512 / 8
 
static const size_t kSeedLength = 256 / 8
 

Detailed Description

Wrapper class for signing-related stuff.

Member Function Documentation

Keypair shared_model::crypto::CryptoProviderEd25519Sha3::generateKeypair ( )
static

Generates new keypair with a default seed

Returns
Keypair generated

Here is the call graph for this function:

Here is the caller graph for this function:

Keypair shared_model::crypto::CryptoProviderEd25519Sha3::generateKeypair ( const Seed seed)
static

Generates new keypair from a provided seed

Parameters
seed- provided seed
Returns
generated keypair

Here is the call graph for this function:

Seed shared_model::crypto::CryptoProviderEd25519Sha3::generateSeed ( )
static

Generates new seed

Returns
Seed generated

Here is the call graph for this function:

Here is the caller graph for this function:

Seed shared_model::crypto::CryptoProviderEd25519Sha3::generateSeed ( const std::string passphrase)
static

Generates new seed from a provided passphrase

Parameters
passphrase- passphrase to generate seed from
Returns
Seed generated

Here is the call graph for this function:

Signed shared_model::crypto::CryptoProviderEd25519Sha3::sign ( const Blob blob,
const Keypair keypair 
)
static

Signs the message.

Parameters
blob- blob to sign
keypair- keypair
Returns
Signed object with signed data

Here is the call graph for this function:

Here is the caller graph for this function:

bool shared_model::crypto::CryptoProviderEd25519Sha3::verify ( const Signed signedData,
const Blob orig,
const PublicKey publicKey 
)
static

Verifies signature.

Parameters
signedData- data to verify
orig- original message
publicKey- public key
Returns
true if verify was OK or false otherwise

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

const size_t shared_model::crypto::CryptoProviderEd25519Sha3::kHashLength = 256 / 8
static
const size_t shared_model::crypto::CryptoProviderEd25519Sha3::kPrivateKeyLength = 512 / 8
static
const size_t shared_model::crypto::CryptoProviderEd25519Sha3::kPublicKeyLength = 256 / 8
static
const size_t shared_model::crypto::CryptoProviderEd25519Sha3::kSeedLength = 256 / 8
static
const size_t shared_model::crypto::CryptoProviderEd25519Sha3::kSignatureLength = 512 / 8
static

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