项目作者: libsv

项目描述 :
The go-to Bitcoin Block Chain (BC) GoLang library.
高级语言: Go
项目地址: git://github.com/libsv/go-bc.git
创建时间: 2021-02-17T13:47:12Z
项目社区:https://github.com/libsv/go-bc

开源协议:ISC License

下载


go-bc

The go-to Bitcoin Block Chain (BC) GoLang library

Release
Build Status
Report
codecov
Go
Sponsor
Donate


Table of Contents


Installation

go-bc requires a supported release of Go.

```shell script
go get -u github.com/libsv/go-bc

  1. <br/>
  2. ## Documentation
  3. View the generated [documentation](https://pkg.go.dev/github.com/libsv/go-bc)
  4. [![GoDoc](https://godoc.org/github.com/libsv/go-bc?status.svg&style=flat)](https://pkg.go.dev/github.com/libsv/go-bc)
  5. For more information around the technical aspects of Bitcoin, please see the updated [Bitcoin Wiki](https://wiki.bitcoinsv.io/index.php/Main_Page)
  6. <br/>
  7. ### Features
  8. - Block header building
  9. - Coinbase transaction building (cb1 + cb2 in stratum protocol)
  10. - Bitcoin block hash difficulty and hashrate functions
  11. - Merkle proof/root/branch functions
  12. <details>
  13. <summary><strong><code>Library Deployment</code></strong></summary>
  14. <br/>
  15. [goreleaser](https://github.com/goreleaser/goreleaser) for easy binary or library deployment to Github and can be installed via: `brew install goreleaser`.
  16. The [.goreleaser.yml](.goreleaser.yml) file is used to configure [goreleaser](https://github.com/goreleaser/goreleaser).
  17. Use `make release-snap` to create a snapshot version of the release, and finally `make release` to ship to production.
  18. </details>
  19. <details>
  20. <summary><strong><code>Makefile Commands</code></strong></summary>
  21. <br/>
  22. View all `makefile` commands
  23. ```shell script
  24. make help

List of all current commands:

  1. all Runs multiple commands
  2. clean Remove previous builds and any test cache data
  3. clean-mods Remove all the Go mod cache
  4. coverage Shows the test coverage
  5. godocs Sync the latest tag with GoDocs
  6. help Show this help message
  7. install Install the application
  8. install-go Install the application (Using Native Go)
  9. lint Run the golangci-lint application (install if not found)
  10. release Full production release (creates release in Github)
  11. release Runs common.release then runs godocs
  12. release-snap Test the full release (build binaries)
  13. release-test Full production test release (everything except deploy)
  14. replace-version Replaces the version in HTML/JS (pre-deploy)
  15. tag Generate a new tag and push (tag version=0.0.0)
  16. tag-remove Remove a tag if found (tag-remove version=0.0.0)
  17. tag-update Update an existing tag to current commit (tag-update version=0.0.0)
  18. test Runs vet, lint and ALL tests
  19. test-ci Runs all tests via CI (exports coverage)
  20. test-ci-no-race Runs all tests via CI (no race) (exports coverage)
  21. test-ci-short Runs unit tests via CI (exports coverage)
  22. test-short Runs vet, lint and tests (excludes integration tests)
  23. uninstall Uninstall the application (and remove files)
  24. update-linter Update the golangci-lint package (macOS only)
  25. vet Run the Go vet application


Examples & Tests

All unit tests and examples run via Github Actions and
uses Go version 1.15.x. View the configuration file.

Run all tests (including integration tests)

```shell script
make test

  1. Run tests (excluding integration tests)
  2. ```shell script
  3. make test-short


Benchmarks

Run the Go benchmarks:

shell script make bench


Code Standards

Read more about this Go project’s code standards.


Usage

View the examples


Maintainers

JW
JW


Contributors

JW SO LM
JW SO LM


Contributing

View the contributing guidelines and please follow the code of conduct.

How can I help?

All kinds of contributions are welcome :raised_hands:!
The most basic way to show your support is to star :star2: the project, or to raise issues :speech_balloon:.
You can also support this project by becoming a sponsor on GitHub :clap:
or by making a bitcoin donation to ensure this journey continues indefinitely! :rocket:


License

License