See https://golang.org/doc/install.
From https://frankbraun.org/cctreehash.go and verify its SHA-256:
$ sha256sum cctreehash.go
6a911b51cc047eea7d7b10c75cf1f50a98dea2a39e12ef3414d2f00f31a263f9 cctreehash.go
Sources of the cctreehash.go
SHA-256 hash:
- PGP signed statements by developers:
- Frank Braun: https://frankbraun.org/#codechain-bootstrap-statement
- Jonathan 'smuggler' Logan: https://opaque.link/post/ccbootstrap/
If you can, this is optional.
From https://frankbraun.org/codechain-bootstrap.tar.gz and execute:
$ tar -xzf codechain-bootstrap.tar.gz
$ cd codechain-bootstrap
$ go run ../cctreehash.go
7552080c78c26b8a2699c0ac4398028b907b673958f8ba26e01da2ac499b1acb
The tree hash computed by cctreehash.go
must match the published one.
This makes sure you have the correct Codechain bootstrap source.
Sources of the codechain-bootrap
tree hash:
- PGP signed statements by developers:
- Frank Braun: https://frankbraun.org/#codechain-bootstrap-statement
- Jonathan 'smuggler' Logan: https://opaque.link/post/ccbootstrap/
$ go run cmd/secpkg/secpkg.go install .secpkg
Afterwards codechain
and secpkg
are installed in
~/.config/secpkg/local/bin
. You should add that directory to your
$PATH
variable and delete the codechain-bootstrap
directory.