1
0
Fork 0
mirror of https://github.com/eosswedenorg/libantelope synced 2026-06-17 12:00:02 +02:00

Change namespace and header guards from libeosio to libantelope

This commit is contained in:
Henrik Hautakoski 2023-04-06 14:23:05 +02:00
parent 0cfd459c71
commit 6824a2f49e
32 changed files with 176 additions and 176 deletions

View file

@ -1,18 +1,18 @@
#include <libeosio/ec.hpp>
#include <libantelope/ec.hpp>
#include <doctest.h>
TEST_CASE("ec::generate") {
libeosio::ec_init();
libantelope::ec_init();
libeosio::ec_pubkey_t result;
libeosio::ec_keypair pair;
CHECK(libeosio::ec_generate_key(&pair) == 0);
libantelope::ec_pubkey_t result;
libantelope::ec_keypair pair;
CHECK(libantelope::ec_generate_key(&pair) == 0);
// Can't test much because... well the private key should be random :)
// But alteast verify that the public key belongs to the private key.
CHECK(libeosio::ec_get_publickey(&pair.secret, &result) == 0);
CHECK(libantelope::ec_get_publickey(&pair.secret, &result) == 0);
CHECK( result == pair.pub );
libeosio::ec_shutdown();
libantelope::ec_shutdown();
}