Skip to content

Commit

Permalink
Merge branch 'v2' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 authored Jan 28, 2022
2 parents ba2e4b1 + b7d7c76 commit e6bb7fd
Show file tree
Hide file tree
Showing 30 changed files with 91 additions and 56 deletions.
32 changes: 32 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,35 @@ updates:
labels:
- "chore"
open-pull-requests-limit: 10

# Maintain dependencies for the core library (deprecated V1)
- package-ecosystem: "gomod"
target-branch: "v1"
directory: "/"
schedule:
interval: "weekly"
time: "10:00"
timezone: "UTC"
reviewers:
- "mrz1836"
assignees:
- "mrz1836"
labels:
- "chore"
open-pull-requests-limit: 10

# Maintain dependencies for GitHub Actions (deprecated V1)
- package-ecosystem: "github-actions"
target-branch: "v1"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
reviewers:
- "mrz1836"
assignees:
- "mrz1836"
labels:
- "chore"
open-pull-requests-limit: 10

6 changes: 0 additions & 6 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ pull_request_rules:
conditions:
- -draft
- author~=^dependabot(|-preview)\[bot\]$
- check-success='test (1.15.x, ubuntu-latest)'
- check-success='test (1.16.x, ubuntu-latest)'
- check-success='test (1.17.x, ubuntu-latest)'
- check-success='Analyze (go)'
- title~=^Bump [^\s]+ from ([\d]+)\..+ to \1\.
Expand All @@ -22,8 +20,6 @@ pull_request_rules:
- name: Alert on major version detection
conditions:
- author~=^dependabot(|-preview)\[bot\]$
- check-success='test (1.15.x, ubuntu-latest)'
- check-success='test (1.16.x, ubuntu-latest)'
- check-success='test (1.17.x, ubuntu-latest)'
- check-success='Analyze (go)'
- -title~=^Bump [^\s]+ from ([\d]+)\..+ to \1\.
Expand All @@ -38,8 +34,6 @@ pull_request_rules:
- name: Automatic Merge ⬇️ on Approval ✔
conditions:
- "#approved-reviews-by>=1"
- check-success='test (1.15.x, ubuntu-latest)'
- check-success='test (1.16.x, ubuntu-latest)'
- check-success='test (1.17.x, ubuntu-latest)'
- check-success='Analyze (go)'
- label!=work-in-progress
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
test:
strategy:
matrix:
go-version: [ 1.15.x, 1.16.x, 1.17.x ]
go-version: [ 1.17.x ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
Expand Down
37 changes: 21 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# go-bitcoin
> A library for working with Bitcoin (BSV) transactions, addresses, keys, encryption, and more.
[![Release](https://img.shields.io/github/release-pre/BitcoinSchema/go-bitcoin.svg?logo=github&style=flat&v=4)](https://github.com/BitcoinSchema/go-bitcoin/releases)
[![Build Status](https://img.shields.io/github/workflow/status/BitcoinSchema/go-bitcoin/run-go-tests?logo=github&v=3)](https://github.com/BitcoinSchema/go-bitcoin/actions)
[![Report](https://goreportcard.com/badge/github.com/BitcoinSchema/go-bitcoin?style=flat&v=4)](https://goreportcard.com/report/github.com/BitcoinSchema/go-bitcoin)
[![codecov](https://codecov.io/gh/BitcoinSchema/go-bitcoin/branch/master/graph/badge.svg?v=4)](https://codecov.io/gh/BitcoinSchema/go-bitcoin)
[![Go](https://img.shields.io/github/go-mod/go-version/BitcoinSchema/go-bitcoin?v=4)](https://golang.org/)
[![Release](https://img.shields.io/github/release-pre/BitcoinSchema/go-bitcoin.svg?logo=github&style=flat&v=2)](https://github.com/BitcoinSchema/go-bitcoin/releases)
[![Build Status](https://img.shields.io/github/workflow/status/BitcoinSchema/go-bitcoin/run-go-tests?logo=github&v=2)](https://github.com/BitcoinSchema/go-bitcoin/actions)
[![Report](https://goreportcard.com/badge/github.com/BitcoinSchema/go-bitcoin?style=flat&v=2)](https://goreportcard.com/report/github.com/BitcoinSchema/go-bitcoin)
[![codecov](https://codecov.io/gh/BitcoinSchema/go-bitcoin/branch/master/graph/badge.svg?v=2)](https://codecov.io/gh/BitcoinSchema/go-bitcoin)
[![Go](https://img.shields.io/github/go-mod/go-version/BitcoinSchema/go-bitcoin?v=2)](https://golang.org/)
<br>
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/BitcoinSchema/go-bitcoin)
[![Mergify Status](https://img.shields.io/endpoint.svg?url=https://gh.mergify.io/badges/BitcoinSchema/go-bitcoin&style=flat&v=4)](https://mergify.io)
[![Sponsor](https://img.shields.io/badge/sponsor-BitcoinSchema-181717.svg?logo=github&style=flat&v=4)](https://github.com/sponsors/BitcoinSchema)
[![Donate](https://img.shields.io/badge/donate-bitcoin-ff9900.svg?logo=bitcoin&style=flat&v=4)](https://gobitcoinsv.com/#sponsor?utm_source=github&utm_medium=sponsor-link&utm_campaign=go-bitcoin&utm_term=go-bitcoin&utm_content=go-bitcoin)
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod&v=2)](https://gitpod.io/#https://github.com/BitcoinSchema/go-bitcoin)
[![Mergify Status](https://img.shields.io/endpoint.svg?url=https://gh.mergify.io/badges/BitcoinSchema/go-bitcoin&style=flat&v=2)](https://mergify.io)
[![Sponsor](https://img.shields.io/badge/sponsor-BitcoinSchema-181717.svg?logo=github&style=flat&v=2)](https://github.com/sponsors/BitcoinSchema)
[![Donate](https://img.shields.io/badge/donate-bitcoin-ff9900.svg?logo=bitcoin&style=flat&v=2)](https://gobitcoinsv.com/#sponsor?utm_source=github&utm_medium=sponsor-link&utm_campaign=go-bitcoin&utm_term=go-bitcoin&utm_content=go-bitcoin)

<br/>

Expand All @@ -33,7 +33,12 @@
**go-bitcoin** requires a [supported release of Go](https://golang.org/doc/devel/release.html#policy).

```shell script
go get -u github.com/bitcoinschema/go-bitcoin
go get -u github.com/bitcoinschema/go-bitcoin/v2
```

> If you want to install the **deprecated V1**:
```shell script
go get -u github.com/bitcoinschema/go-bitcoin@v1
```

<br/>
Expand All @@ -42,7 +47,7 @@ go get -u github.com/bitcoinschema/go-bitcoin

View the generated [documentation](https://pkg.go.dev/github.com/bitcoinschema/go-bitcoin)

[![GoDoc](https://godoc.org/github.com/bitcoinschema/go-bitcoin?status.svg&style=flat)](https://pkg.go.dev/github.com/bitcoinschema/go-bitcoin)
[![GoDoc](https://godoc.org/github.com/bitcoinschema/go-bitcoin/?status.svg&style=flat)](https://pkg.go.dev/github.com/bitcoinschema/go-bitcoin)

### Features

Expand Down Expand Up @@ -156,7 +161,7 @@ vet Run the Go vet application

## Examples & Tests
All unit tests and [examples](examples) run via [Github Actions](https://github.com/BitcoinSchema/go-bitcoin/actions) and
uses [Go version 1.15.x](https://golang.org/doc/go1.15). View the [configuration file](.github/workflows/run-tests.yml).
uses [Go version 1.17.x](https://golang.org/doc/go1.17). View the [configuration file](.github/workflows/run-tests.yml).

Run all tests (including integration tests)

Expand Down Expand Up @@ -196,9 +201,9 @@ Checkout all the [examples](examples)!

## Maintainers

| [<img src="https://github.com/rohenaz.png" height="50" alt="MrZ" />](https://github.com/rohenaz) | [<img src="https://github.com/mrz1836.png" height="50" alt="MrZ" />](https://github.com/mrz1836) |
| :----------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------: |
| [Satchmo](https://github.com/rohenaz) | [MrZ](https://github.com/mrz1836) |
| [<img src="https://github.com/mrz1836.png" height="50" alt="MrZ" />](https://github.com/mrz1836) | [<img src="https://github.com/rohenaz.png" height="50" alt="MrZ" />](https://github.com/rohenaz) |
|:------------------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------------:|
| [MrZ](https://github.com/mrz1836) | [Satchmo](https://github.com/rohenaz) |

<br/>

Expand All @@ -219,4 +224,4 @@ or by making a [**bitcoin donation**](https://gobitcoinsv.com/#sponsor?utm_sourc

## License

[![License](https://img.shields.io/github/license/BitcoinSchema/go-bitcoin.svg?style=flat&v=4)](LICENSE)
[![License](https://img.shields.io/github/license/BitcoinSchema/go-bitcoin.svg?style=flat&v=2)](LICENSE)
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/address_from_wif/address_from_wif.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/calculate_fee_for_tx/calculate_fee_for_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/create_pubkey/create_pubkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/create_tx/create_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
"github.com/libsv/go-bt"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/create_tx_using_wif/create_tx_using_wif.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/create_tx_with_change/create_tx_with_change.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
)

func main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/encrypt_shared_keys/encrypt_shared_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/hex"
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
"github.com/bitcoinsv/bsvd/bsvec"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/hex"
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/generate_hd_key/generate_hd_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
)

func main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
"github.com/bitcoinsv/bsvutil"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/get_addresses_for_path/get_addresses_for_path.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
)

func main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/get_hd_key_from_xpub/get_hd_key_from_xpub.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
)

func main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/hex"
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
"github.com/bitcoinsv/bsvd/bsvec"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/hex"
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
"github.com/bitcoinsv/bsvd/bsvec"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/private_key_to_wif/private_key_to_wif.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/script_from_address/script_from_address.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/sign_message/sign_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/tx_from_hex/tx_from_hex.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/verify_signature/verify_signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/verify_signature_der/verify_signature_der.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"crypto/sha256"
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/wif_to_private_key/wif_to_private_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"github.com/bitcoinschema/go-bitcoin"
"github.com/bitcoinschema/go-bitcoin/v2"
)

func main() {
Expand Down
13 changes: 6 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
module github.com/bitcoinschema/go-bitcoin
module github.com/bitcoinschema/go-bitcoin/v2

go 1.15
go 1.17

require (
github.com/bitcoinsv/bsvd v0.0.0-20190609155523-4c29707f7173
github.com/bitcoinsv/bsvlog v0.0.0-20181216181007-cb81b076bf2e // indirect
github.com/bitcoinsv/bsvutil v0.0.0-20181216182056-1d77cf353ea9
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/libsv/go-bt v1.0.4
github.com/stretchr/testify v1.7.0
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3 // indirect
github.com/libsv/go-bk v0.1.5 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
golang.org/x/crypto v0.0.0-20211209193657-4570a0811e8b // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
)
Loading

0 comments on commit e6bb7fd

Please sign in to comment.