-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
30 lines (25 loc) · 1.17 KB
/
main.cpp
File metadata and controls
30 lines (25 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "debug/log.h"
#include "object/object.h"
#include "library/pictures/resize.h"
#include "identity/identity.h"
#include "tests/test.h"
#include "api/api.h"
#include <unistd.h>
int main() {
logger.enable();
// struct Object tux = ObjectCreation::create("assets/examples/linux.jpeg", {"Tux", "Logo", "Linux"});
// ObjectCreation::get_exif_descriptors_from_image(std::string(tux.signature));
// struct IdentityObject user = IdentityCreation::create_new_identity("admin");
// IdentityCreation::save_identity_to_file(user);
if(!IdentityCreation::is_genesis_here()) IdentityCreation::save_genesis_identity();
// IdentityFileOperations::read_block(&genesis_user.id[0]);
// struct IdentityObject user = IdentityCreation::create_new_identity("admin");
// IdentityFileOperations::write_new_block_and_update_previous(user);
// The tests functions
#if TEST == ENABLE
logger.infoln("Running tests functions...");
Tests::create_hundred_new_identity();
#endif
API::proclaim_object("assets/examples/linux.jpeg", {"LINUX", "TUX", "LOGO"}, std::string("d3e11ca84985d1614e5195740bc9a3b2d9108246b29654b354fdc3e02fa7f8df"));
return 0;
}