TL;DR
cargo build
(should generate the compiled protobuf in exampls/protos. Note the build.rs file is only for compiling the proto files in example folder.)- Start the server:
cargo run --package chaum_pedersen_auth --example server
- Start the client:
cargo run --package chaum_pedersen_auth --example client
- Take a look at Example folder which implemeted a client and a server that use gRPC as protocol.
- Bob's Asset: Private key:
$x, k$ - Alice's Asset: Random key
$c$ - Shared Asset: generator
$\alpha , \beta$ .
Bob send
- Bob calculation:
$s = k - cx$ - Alice Verification:
$\alpha^s (\alpha^x)^c \mod q$ ,$\beta^s (\beta^x)^c\mod q$
- Put the following crates to Cargo workspace: