diff --git a/README.md b/README.md index 88884ce..224d484 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,22 @@ cmake --build . --target ecdaa_issuer -- -j 2 ``` ## Usage + +1. Run the issuer binary `ecdaa_issuer`. It loads persisted keys from disk or generates and saves it automatically. +2. Let the member join the issuer's group: +``` +ecdaa_member --join +``` +The resulting keys will be persisted as well. +3. Start the verifier `ecdaa_verifier`. Currently it does not know the issuer's public key. +Connect to the verifier host on port `6592` and place the command `GETPUBLIC `. +The verifier currently does not persist the public key. +4. The member may now send a signed message: +``` +ecdaa_member --send +``` +After submission the verifer immediately checks the signature and responds to the member accordingly. + At this point this project just demonstrates the functionality of ECDAA over the network interface. All session data about memberships are only held in RAM and never persisted. Restarting the Issuer introduces a fresh ECDAA group. diff --git a/daa-test-tpm.c b/daa-test-tpm.c new file mode 100644 index 0000000..2ed9e77 --- /dev/null +++ b/daa-test-tpm.c @@ -0,0 +1,20 @@ +#include "daa-test-tpm.h" + +int test1(); +int test2(); +int test3(); + +int main(int argc, char **argv) { + if(0 != test1()) { + printf("test1 failed\n"); + return 0; + } else { + printf("test1 succeeded\n"); +} + +int test1() { + const char *pub_key_filename = "pub_key.txt"; + const char *handle_filename = "handle.txt"; + + return 0; +} diff --git a/daa-test-tpm.h b/daa-test-tpm.h new file mode 100644 index 0000000..4e07370 --- /dev/null +++ b/daa-test-tpm.h @@ -0,0 +1,13 @@ + +#ifndef ECDAA_TESTTPM_H +#define ECDAA_TESTTPM_H +#include +#include "server.h" +#include "client.h" +#include "common.h" +#include + +#include +#include +#include +#include diff --git a/daa-test.h b/daa-test.h index dad0062..7c71b96 100644 --- a/daa-test.h +++ b/daa-test.h @@ -1,7 +1,6 @@ -#ifndef ECDAA_ISSUER_MEMBER_H -#define ECDAA_ISSUER_MEMBER_H -#include +#ifndef ECDAA_TEST_H +#define ECDAA_TEST_H #include #include "server.h" #include "client.h" diff --git a/member-tpm.h b/member-tpm.h index ffea763..f497280 100644 --- a/member-tpm.h +++ b/member-tpm.h @@ -9,7 +9,6 @@ #include #include #include -#include #include "server.h" #include "client.h" #include "common.h"