- The
diffie_hellman/src/main.rsprogram takes in two inputs - Alice's private key and Bob's private key. - To pass in the input, first generate an
input.jsonfile by runninggenerate_input_from_u64()inutils/examples/gen_input.rs - The
input.jsonis of the form{"input": ["hex_1", "hex_2"]}. Exampleinput.jsoncan be seen atdiffie_hellman/input.json - To obtain
hex_1, first change theinputvariable inside thegenerate_input_from_u64()function to Alice's private key - Then do
cargo runfrom inside theutilsdirectory - Then
hex_1will be printed out toStdout - Repeat steps 4-6 to obtain
hex_2with changing theinputvariable to Bob's private key this time - Then place in
hex_1andhex_2into thediffie_hellman/input.jsonfollowing the format in step 3 - Then from inside the
diffie_hellmandirectory, runcargo openvm run --input input.jsonto run the program
diffie_hellman
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||