this project is a simple example of how blockchain
works. in this case using the gRPC
call procedure is because gRPC
uses HTTP 2.0
, which makes the data exchange process faster than using the API call
procedure in general.
- run
go mod tidy
first to get needed package. go run server/main.go
: to running server.- And on the client side , type
go run client/main.go --add
to add some blocks of hash - And type
go run client/main.go --list
to get block of hash .
- https://golang.org - The Go programming language
- gRPC - A high-performance, open source universal RPC framework
- Protocol Buffer - Protocol buffers are a language-neutral, platform-neutral extensible mechanism for serializing structured data.
- Go - Protobuf - Go support for Google's protocol buffers