zl程序教程

您现在的位置是:首页 >  其它

当前栏目

Filecoin Specification

specification
2023-09-14 09:16:04 时间

1,Filecoin 规格

$ git clone https://github.com/filecoin-project/specs.git filecoin-specs
$ ls
filecoin-specs
$ ls -lh
total 0
drwxr-xr-x  17 y50  staff   544B 12  5 11:19 filecoin-specs
$ du -sh filecoin-specs/
 19M	filecoin-specs/
$ make deps-basic
bin/install-deps-basic.sh -y
which hugo: not found
> brew install hugo
Updating Homebrew...

Submodule path 'hugo/themes/book': checked out '74422e68968594f7f910aab25ebbf54dcf0181b2'
Submodule path 'orient': checked out '7ea99e706599a93a960ba0e898d39b88f9d5184a'
which hugo: /usr/local/bin/hugo
which go: /usr/local/bin/go
  • 编译报错
$ make build

libraries/filcrypto/filproofs/feistel.go:4:2: module golang.org/x/crypto/blake2b: Get https://proxy.golang.org/golang.org/x/crypto/blake2b/@v/list: dial tcp 216.58.200.49:443: i/o timeout
make: *** [build-code] Error 1
  • 设置代理,重新编译
$ export GO111MODULE=on
$ export GOPROXY=https://goproxy.io

$ make build
Total in 2108 ms
mkdir -p build/website
rm -rf build/website/*
mv hugo/public/* build/website
TODO: add generate-code to this target
  • 运行服务,web访问
$ make serve

Web Server is available at //localhost:1313/ (bind address 127.0.0.1)

在这里插入图片描述

  • 'make website' and refresh to update 更新内容
$ make website

2,制作图表

  • 下载速度很慢,需要设置终端代理
$ make deps-diag
bin/install-deps-diagrams.sh -y
which dot: not found
> brew install graphviz
Updating Homebrew...

audited 161 packages in 1.853s

1 package is looking for funding
  run `npm fund` for details

found 0 vulnerabilities
$ make diagrams
make: Nothing to be done for `diagrams'.
$ make deps-orient
git submodule update --init --recursive
bin/install-deps-orient.sh -y
WARNING: bin/install-deps-orient.sh is work in progress.
         This warning will be removed once it is done.
which wget: /usr/local/bin/wget
which emacs: /usr/bin/emacs
which emacs: /usr/bin/emacs
error: emacs version 26.3 or greater required. you have 22.1.1
recommended install from you package manager
make: *** [deps-orient] Error 1
  • 升级emacs
$ brew cask install emacs
$ make deps-orient

> installing emacs deps from bin/emacs-init-build.el
Importing package-keyring.gpg...
Importing package-keyring.gpg...done

参考:

  1. filecoin-project/specs
  2. Filecoin 规格 web