4 #ifndef DJINNI_GENERATED_SECP256K1_HPP 5 #define DJINNI_GENERATED_SECP256K1_HPP 10 #ifndef LIBCORE_EXPORT 12 #include <libcore_export.h> 14 #define LIBCORE_EXPORT 18 namespace ledger {
namespace core {
namespace api {
29 static std::shared_ptr<Secp256k1> createInstance();
37 virtual std::vector<uint8_t> computePubKey(
const std::vector<uint8_t> & privKey,
bool compress) = 0;
44 virtual std::vector<uint8_t> computeUncompressedPubKey(
const std::vector<uint8_t> & pubKey) = 0;
52 virtual std::vector<uint8_t> sign(
const std::vector<uint8_t> & privKey,
const std::vector<uint8_t> & data) = 0;
61 virtual bool verify(
const std::vector<uint8_t> & data,
const std::vector<uint8_t> & signature,
const std::vector<uint8_t> & pubKey) = 0;
63 static std::shared_ptr<Secp256k1> newInstance();
67 #endif //DJINNI_GENERATED_SECP256K1_HPP Definition: Account.cpp:8
Definition: Secp256k1.hpp:21