An Yggdrasil address miner in Go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Timur Demin 694bf9708b
Add a notice on SimpleYggGen-C++
20 hours ago
.drone.yml Use non-Alpine images to avoid unexpected problems with CI 4 days ago
.goreleaser.yml Update goreleaser config for multiple files 4 days ago
LICENSE Initial commit 2 weeks ago
README.md Add a notice on SimpleYggGen-C++ 20 hours ago
crypto.go Make vendoring tunable with build tags 4 days ago
crypto_test.go Add tests and benchmarks for vendored code 4 days ago
go.mod Initial commit 2 weeks ago
go.sum Initial commit 2 weeks ago
main.go Bump v0.1.1 4 days ago

README.md

SimpleYggGen-Go

This program reimplements SimpleYggGen in Go, importing the original Yggdrasil code for generating keys and utilizing multiple CPU threads for mining.

Installation

% go get -u -v git.tdem.in/tdemin/syg_go

History

SimpleYggGen is originally a project by @acetone, who wrote a Bash miner for getting “magic” Yggdrasil addresses following a pattern. The main problem with his implementation was that it ran grep and yggdrasil as separate processes, making mining very slow. Even though @acetone later made a C++ implementation, it still relied on running Yggdrasil as a separate process.

As of now (2020-08-12) @acetone reworked his C++ miner implementation, and SYG-C++ is even more performant than this program (making, like, 15% more iterations within the same time).

Performance

Obviously far superior to the original SimpleYggGen.

With multiple threads it takes SimpleYggGen a month to run through a few million cycles and find keys for 200::c84:77b0:f66d:b47e:64c7 (targeting ::). syg_go has found keys for 206:bcdb::ac47:4e3b:b97e:df4e with the same target in 27 minutes, utilizing 8 threads on AMD Ryzen 1700X.

With 8 threads on Ryzen 1700X while searching for :: this program reaches:

  • 10 000 000 iterations in 2 minutes, 36 seconds
  • 100 000 000 iterations in 25 minutes, 58 seconds
  • 500 000 000 iterations in 2 hours, 10 minutes

This program contains some modded code from Yggdrasil that aims to improve performance. If you prefer to use original Yggdrasil code, set -original flag.

Usage

% syg_go -help
Usage of syg_go:
  -iter uint
        per how many iterations to output status (default 100000)
  -original
        use original Yggdrasil code
  -regex string
        regex to match addresses against (default "::")
  -threads int
        how many threads to use for mining (default 16)
  -version
        display version

License

See LICENSE.