6 #ifndef IROHA_CRYPTO_HPP 7 #define IROHA_CRYPTO_HPP 10 #include <string_view> 41 bool verify(
const uint8_t *msg,
43 shared_model::interface::types::PublicKeyByteRangeView public_key,
44 shared_model::interface::types::SignatureByteRangeView signature);
46 bool verify(std::string_view msg,
47 shared_model::interface::types::PublicKeyByteRangeView public_key,
48 shared_model::interface::types::SignatureByteRangeView signature);
76 #endif // IROHA_CRYPTO_HPP bool verify(const uint8_t *msg, size_t msgsize, PublicKeyByteRangeView public_key, SignatureByteRangeView signature)
Definition: ed25519_impl.cpp:40
blob_t< 32 > create_seed()
Definition: ed25519_impl.cpp:68
blob_t< 32 > pubkey_t
Definition: keypair.hpp:14
sig_t sign(const uint8_t *msg, size_t msgsize, const pubkey_t &pub, const privkey_t &priv)
Definition: ed25519_impl.cpp:19
blob_t< 64 > sig_t
Definition: keypair.hpp:13
Definition: block_query.hpp:15
blob_t< 32 > privkey_t
Definition: keypair.hpp:15
keypair_t create_keypair(blob_t< 32 > seed)
Definition: ed25519_impl.cpp:86