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:
parent
0cfd459c71
commit
6824a2f49e
32 changed files with 176 additions and 176 deletions
|
|
@ -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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue