-
Notifications
You must be signed in to change notification settings - Fork 171
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
How to run pseudo-airgapped hs-airdrop using Docker #106
Comments
|
Edit: I originally shared the snippet above for visibility, and because I thought it may enable people to check if their key exists within the Looking at the usage from running the tool itself, it looks like you still need to provide
|
For those searching/wondering, the error looks something like this:
See the solution in the original post: #106 (comment) |
If you don't know what bucket corresponds to your key, create executable #!/bin/bash
for i in {000..255}; do
curl -Lo "/root/.hs-tree-data/nonces/$i.bin" \
"https://github.com/handshake-org/hs-tree-data/raw/master/nonces/$i.bin"
done and replace the last line in COPY get_nonce.sh get_nonce.sh
RUN ./get_nonce.sh to download all buckets as a single layer. |
SOURCE: #2 (comment)
by: @benjie
Please feel free to add this as a guide to your website if you would like. I do not require attribution.
Originally posted here: #2 (comment)
DISCLAIMER: THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
First, create this
Dockerfile
in an empty directory:In that directory, run the following commands:
You'll now be running a non-networked container. This is not as secure as it could be if you properly air-gapped, but it's better than nothing. Inside the container you can check there's no network connectivity:
Should give an error - so you know there's no internet. Now run the airdrop command:
(0.010 is the mining fee recommended by namebase.io)
You'll probably get an error about not being able to fetch the nonce; this is likely because bucket 172 above is incorrect for you. Exit the docker bash shell, edit the Dockerfile above to contain the correct bucket number (in BOTH PLACES on that final line), then run again:
Issue the
./bin/hs-airdrop
command again and hopefully this time it will work.The text was updated successfully, but these errors were encountered: