|
Electroneum
|

Go to the source code of this file.
Functions | |
| std::string | message ("Message requiring signing") |
| std::string | unusedMessage ("Unused message") |
| TEST (ed25519_signature, CreateKeyPair) | |
| TEST (DelegatedPOW, SignMessage) | |
| TEST (DelegatedPOW, VerifySignature) | |
Variables | |
| std::vector< std::string > | keypair = crypto::create_ed25519_keypair() |
| std::string | privateKey = boost::algorithm::unhex(keypair[0]) |
| std::string | publicKey = boost::algorithm::unhex(keypair[1]) |
| std::string | validSignature = crypto::sign_message(message, privateKey) |
| std::string | invalidSignature = crypto::sign_message(message, keypair[0]) |
| std::string | blankInvalidSignature = crypto::sign_message(message, "") |
| std::string message | ( | "Message requiring signing" | ) |
| TEST | ( | DelegatedPOW | , |
| SignMessage | ) |
Definition at line 25 of file delegated_pow.cpp.
| TEST | ( | DelegatedPOW | , |
| VerifySignature | ) |
Definition at line 32 of file delegated_pow.cpp.

| TEST | ( | ed25519_signature | , |
| CreateKeyPair | ) |
Definition at line 16 of file delegated_pow.cpp.
| std::string unusedMessage | ( | "Unused message" | ) |

| std::string blankInvalidSignature = crypto::sign_message(message, "") |
Definition at line 14 of file delegated_pow.cpp.
| std::string invalidSignature = crypto::sign_message(message, keypair[0]) |
Definition at line 13 of file delegated_pow.cpp.
| std::vector<std::string> keypair = crypto::create_ed25519_keypair() |
Definition at line 7 of file delegated_pow.cpp.
| std::string privateKey = boost::algorithm::unhex(keypair[0]) |
Definition at line 8 of file delegated_pow.cpp.
| std::string publicKey = boost::algorithm::unhex(keypair[1]) |
Definition at line 9 of file delegated_pow.cpp.
| std::string validSignature = crypto::sign_message(message, privateKey) |
Definition at line 12 of file delegated_pow.cpp.