From c0e9e12a275768e33b8248bd22035bd5f7445873 Mon Sep 17 00:00:00 2001 From: Ryan Sears Date: Mon, 17 Apr 2023 01:32:08 -0400 Subject: [PATCH] Add docs and expose vouchers from container with `make participate` --- .gitignore | 1 + Makefile | 4 ++-- README.md | 8 +++++++- main.go | 1 + 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 3520d3e..8e0dfad 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea/ +vouchers/ ceremony-client quil_voucher.hex \ No newline at end of file diff --git a/Makefile b/Makefile index 9081699..519f4fa 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,8 @@ build-docker: bash: docker run --rm -it $(IMAGE_TAG) bash -participate: - docker run --rm -it $(IMAGE_TAG) ./ceremony-client "quill-voucher-$(shell date +'%y.%m.%d-%H:%M:%S')" +participate: build-docker + docker run --rm -it -v $(PWD)/vouchers:/vouchers $(IMAGE_TAG) ./ceremony-client "/vouchers/quill-voucher-$(shell date +'%m.%d.%y-%H:%M:%S').hex" dev: docker run --rm -it -v $(PWD):$(PWD) --workdir $(PWD) $(IMAGE_TAG) bash \ No newline at end of file diff --git a/README.md b/README.md index 1c7288b..499eae4 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ # ceremonyclient -KZG Ceremony client for Quilibrium. Run with `go run ./... ` or omit the filename to write to quil_voucher.hex. +KZG Ceremony client for Quilibrium. + +# Running + +Run with `go run ./... ` or omit the filename to write to quil_voucher.hex. + +If you have docker installed you can participate in the ceremony by simply running `make participate`. Your voucher will be written to `vouchers/`. \ No newline at end of file diff --git a/main.go b/main.go index ba835cb..ae89517 100644 --- a/main.go +++ b/main.go @@ -41,6 +41,7 @@ func WaitForSequencerToBeReady() { state = GetSequencerState() } + fmt.Println() fmt.Println("Sequencer is ready for contributions!") }