process mnemonic offline by using: github.com/rbee3u/dpass
93
# total 5 pieces, at least 3 pieces to recover
docker run -it --rm --name dpenc -v $(pwd):/data --network none kumakichi/dpass:alpine-3.18.3 enc 'address energy smoke enough obscure famous image ski nominee fruit special orange artefact dust venture print similar suggest lava ritual deposit jewel protect train' 5 3
docker run -it --rm --name dpdec -v $(pwd):/data --network none kumakichi/dpass:alpine-3.18.3 dec wallet-cold-5-3-0.txt wallet-cold-5-3-3.txt wallet-cold-5-3-4.txt
docker run -it --rm --name dpsh -v $(pwd):/data --network none kumakichi/dpass:alpine-3.18.3 sh
FROM golang:1.21.0-alpine3.18 as build
WORKDIR /app
RUN GOBIN=$(pwd) go install -ldflags="-s -w" github.com/rbee3u/dpass/cmd/dpass@latest
RUN GOBIN=$(pwd) go install -ldflags="-s -w" github.com/rbee3u/dpass/cmd/dcoin@latest
FROM alpine:3.18.3
COPY --from=build /app/dpass /usr/local/bin/dpass
COPY --from=build /app/dcoin /usr/local/bin/dcoin
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
#!/bin/sh
if [ $# -lt 1 ]; then
echo "Usage: $0 enc/dec args"
exit
fi
cmd="$1"
if [ "$cmd" = "enc" ]; then
echo -ne "$2" | dpass encrypt | dpass split -o /data/wallet-cold -n $3 -m $4
cd /data
echo "files generated, total $3 pieces, need at least $4 pieces to recover"
ls *.txt
elif [ "$cmd" = "dec" ]; then
shift
cd /data
cat "$@" | dpass combine | dpass decrypt
elif [ "$cmd" = "sh" ]; then
/bin/sh
else
echo "invalid command"
exit 1
fi
Content type
Image
Digest
sha256:713c120d3…
Size
6.6 MB
Last updated
about 3 years ago
docker pull kumakichi/dpass:alpine-3.18.3