#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::SignatureByteRangeView signature, const Blob &orig, shared_model::interface::types::PublicKeyByteRangeView public_key) |
| static Seed | generateSeed () |
| static Seed | generateSeed (const std::string &passphrase) |
| static Keypair | generateKeypair () |
| static Keypair | generateKeypair (const Seed &seed) |
| static Keypair | generateKeypair (const PrivateKey &key) |
Static Public Attributes | |
| static constexpr size_t | kHashLength = 256 / 8 |
| static constexpr size_t | kPublicKeyLength = 256 / 8 |
| static constexpr size_t | kPrivateKeyLength = 256 / 8 |
| static constexpr size_t | kSignatureLength = 512 / 8 |
| static constexpr size_t | kSeedLength = 256 / 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 |
Generates new keypair from a provided private key
| key | - private key for the new keypair |

|
static |
|
static |
Generates new seed from a provided passphrase
| passphrase | - passphrase to generate seed from |

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


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

|
static |
|
static |
|
static |
|
static |
|
static |