Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated cmd line tool and gitignore #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

joey-galaxy
Copy link

@joey-galaxy joey-galaxy commented Sep 23, 2018

I added some features and explained how to use the cmd line utility because it wasn't obvious decode was reading from stdin. Also, I think I found and fixed a bug where the onion router's ReplayLog wasn't being started.

  • command line utility now has a convenient command, new, to generate a new keypair
  • decode command now starts the in-memory ReplayLog
  • added README file to explain how to use this utility
  • gitignore now ignores the binary file cmd/main

Example usage of the new command:

joey@linux $ ./main new
privkey: 9bbc70784a94fbe55cee651b29afcce1db28f144e5f6561f3619babb0dce89bf
pubkey: 020824f6d527ed4d153aeaf21c111056b9f723d25ebcf87bff3a5a0bcf4c9c073c
joey@linux $ ./main generate 020824f6d527ed4d153aeaf21c111056b9f723d25ebcf87bff3a5a0bcf4c9c073c
Node 0 pubkey 020824f6d527ed4d153aeaf21c111056b9f723d25ebcf87bff3a5a0bcf4c9c073c
0002eec7245d6b7d2ccb30380bfbe2a3648cd7a942653f5aa340edcea1f283686619b8f3b66a2ab24ffe55f3acaaafb87b4310ffca3b0d5f9b881992af5336536a80e75e572b055693250aeafe96aea9f4681374c5687236d53f4ac54ec7ad5f23444bea52cca09e4605d00e7dd6ad36a2330c8d8f46ca0988a98781fb2f2ba7b0fece59439e77ba1e7ea9a93a7326988c5cad3e4913e413abe5dec56ccd1c6a834b3f54b5acb199221906e60df2949f89fb38169928f430c40a6eb19d7643c40f385c6af5d50abb7f869cdfbb7e141d79c9bbfd352958ea8ac7bea215fc7387831fa3090eda4dbd06d711b07d619187519e012a8d1685edda819ace1c126d5c166f65321b6738e8ea11f2d2b485daa6707f4dd4a8a4a615e42c66ffac8aa85e796447c9cdaf2b68bbfd9bc3f912958ed202f38d4ae5a45e1ffa5bd00dc573cbb18a1166e84668e675e3c6ecd835b298eb8d5ce9638bb18a3c8be8a855958063fd8e31ac89e371a1810403e5fffe1e3ba362d6054538a79a2969a6ac883eb3f9bd1621c3df2728925b9da51a171a27acc4e7ceb7dcc54516652b8addbe1f78612033d24e209003a69b759c56e274ad6a1402744a9bf18ac07be7aff4897383c8df148eb85aec40356bf78db45425767516c8b6c310ee89cac2c21836bdcfc5a4b053107cd5559e85f03c4bcd8fc3618a6f59276c0fa417041e95fe3d8f1b86ed95bcd3f262d997aaf96978d3b85645475768e7fdec0d972c58f3dfd2634cf189d0da4a2d863f85577ddfcd68325d8606fc4260be98f4315701d82b6730a4c24ac6da35ae1a5d3b6c232b2e75ecd269b1a6245b47d56e0558e59117b0276492288063695c645be2618984d01eb2ec24a235007b210b3f6c30e5466dcdfe984585575e68736c4861ebfdea998dcb4b2fd15237a9d3c5dbffdd59095f1a8b25b8c75166e68e3b00cdcd34f1c764ca106a15256dc399ea0ba80bfbd4514143d8041e2a7c61b1a31d9581b453fc1ae4faba9dd95fbc5b10300bb0e4b807aa37fc7d976947b59a863067123323241dbd3fe077345b041a5a46335c7ac743c4663dc02094be5628ef6f96329a3593cc5607c8b4330cccb29df148647f5a39f750efbf7ea4ccffe6e22e5b48cac8cb379efd5e3ab0a4fe109cc5c9c5326732b9028b4b1ddab9c90dfade423457fc93b562236a98b63fca32a247571e94b9b33bcf5e1540efabc6d6ca197ee4bf4aec55eec8046125897c81e953ffa586438ca1ac19e1e2ef3d9036453bddbf14365dfe6ad36ecde1f4122aff8d50a128430d02f6bcc63d0d51069e6b182501ba0bb3cd4d362e126bb5b2d86988b8ddd8d5d92c182d9d0ea10f348fa973d9eb2333fe9d08f9f0a626f5fb6cb3b5203982756b9fe4b44941d8d42283f23906deae0b4e44af0046fd5293131adff2942b8521212d7f14e24bedba620c8b4566982d3acf302c0cd6a58224d4e6c2e040f780f1cc195f3a76f02c8507280c15085ef226b59e41e6f17be0597310e12c2aacc63aadc19fd471004ded34ed0435b2b218c6246ad9ae45ba4abe3c984d9bba8432a05f516a8b9399c26394581cf29524eca2a208c5e19334457271bbc1ea1ade8ade8c5d40c7cb4e341b7c7f2c9da40b189a150d77930c4db965a778376893ca7874c50b8aa5cbf6cbc5bc8e9e468773c0452ec78fba1e0a4d024b10b1c38ced58af65bd5885f866f47a0a9964803d9d5593366501891738fce25abf449dcd2fb94de36ce22be83cec36df460167bce12a35687ef23fef850f7facd16cfd9a662f086be3208d3975efd339bde9127bc58ec2f4d108a950e6c1c21d62c9196a11441d031d2a299e05e03441576a44cf7a2da6b0b8597b151d0d56055c617aed91cd3a26ab7f0acc574436b5c8ed2c0a2e575a3059a672e904bc5acd7ede7b

* command line tool now has an option to generate a new keypair
* gitignore now ignores the binary file cmd/main
* README file explains usage of the command line utility
* fixed a bug where decode wasn't starting a ReplayLog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant