#include "crypto_provider.hpp"

Static Public Member Functions | |
| static std::string | sign (const Blob &blob, const Keypair &keypair) |
| static bool | verify (shared_model::interface::types::ByteRange signed_data, shared_model::interface::types::ByteRange source, shared_model::interface::types::ByteRange public_key) |
| static Keypair | generateKeypair () |
| static Keypair | generateKeypair (const Seed &seed) |
Static Public Attributes | |
| static constexpr size_t | kHashLength = 256 / 8 |
| static constexpr size_t | kPublicKeyLength = 256 / 8 |
| static constexpr size_t | kPrivateKeyLength = 512 / 8 |
| static constexpr size_t | kSignatureLength = 512 / 8 |
Wrapper class for signing-related stuff.
|
static |
Generates new keypair with a default seed

|
static |
Generates new keypair from a provided seed
| seed | - provided seed |

|
static |
Signs the message.
| blob | - blob to sign |
| keypair | - keypair |

|
static |
Verifies signature.
| signedData | - data to verify |
| orig | - original message |
| publicKey | - public key |
|
static |
|
static |
|
static |
|
static |