Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (31 sloc) 1.55 KB

Bootstrapping Codechain

Install Go

See https://golang.org/doc/install.

Download cctreehash.go

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:

Review the code of cctreehash.go

If you can, this is optional.

Download Codechain bootstrap

From https://frankbraun.org/codechain-bootstrap.tar.gz and execute:

$ tar -xvf 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:

Use the bootstrapped Codechain to install the most current Codechain version

$ 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.

You can’t perform that action at this time.