1
0
Fork 0
mirror of https://github.com/eosswedenorg/libantelope synced 2026-06-17 20:10:03 +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,4 +1,4 @@
#include <libeosio/ec.hpp>
#include <libantelope/ec.hpp>
#include <vector>
#include <doctest.h>
@ -6,9 +6,9 @@ TEST_CASE("ec::ecdsa_verify") {
struct testcase {
const char *name;
libeosio::sha256_t dgst;
libeosio::ec_pubkey_t pubkey;
libeosio::ec_signature_t sig;
libantelope::sha256_t dgst;
libantelope::ec_pubkey_t pubkey;
libantelope::ec_signature_t sig;
int expected;
};
@ -176,14 +176,14 @@ TEST_CASE("ec::ecdsa_verify") {
},
};
libeosio::ec_init();
libantelope::ec_init();
for(auto it = tests.begin(); it != tests.end(); it++) {
SUBCASE(it->name) {
CHECK( libeosio::ecdsa_verify(&it->dgst, it->sig, it->pubkey) == it->expected );
CHECK( libantelope::ecdsa_verify(&it->dgst, it->sig, it->pubkey) == it->expected );
}
}
libeosio::ec_shutdown();
libantelope::ec_shutdown();
}