File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 9
9
[ ![ Sponsor] ( https://img.shields.io/badge/sponsor-BitcoinSchema-181717.svg?logo=github&style=flat&v=3 )] ( https://github.com/sponsors/BitcoinSchema )
10
10
[ ![ Donate] ( https://img.shields.io/badge/donate-bitcoin-ff9900.svg?logo=bitcoin&style=flat&v=3 )] ( https://gobitcoinsv.com/#sponsor?utm_source=github&utm_medium=sponsor-link&utm_campaign=go-boost&utm_term=go-boost&utm_content=go-boost )
11
11
<br >
12
+ <br >
12
13
13
14
## Installation
14
15
15
16
** go-boost** requires a [ supported release of Go] ( https://golang.org/doc/devel/release.html#policy ) .
16
17
``` shell script
17
18
go get -u github.com/bitcoinschema/go-boost
18
19
```
20
+ <br >
19
21
20
22
## Documentation
21
23
View the generated [ documentation] ( https://pkg.go.dev/github.com/bitcoinschema/go-boost )
@@ -29,8 +31,8 @@ It takes a BOB formatted transaction and produces an easy-to-use BOOST struct wi
29
31
30
32
``` go
31
33
type Boost struct {
32
- Redeem BoostRedeem ` json:"redeem" bson:"redeem"`
33
- Spend BoostSpend ` json:"spend" bson:"spend"`
34
+ Redeem Redeem ` json:"redeem" bson:"redeem"`
35
+ Spend Spend ` json:"spend" bson:"spend"`
34
36
}
35
37
```
36
38
<br >
@@ -64,7 +66,7 @@ var b *boost.Boost
64
66
b, err = boostNewFromTape(&bobData.In[0].Tape[0])
65
67
```
66
68
67
- ### V1 Contract Spend Example
69
+ V1 Contract Spend Example
68
70
``` go
69
71
// Get BOB data from string
70
72
bobData , err := bob.NewFromRawTxString (boostTx)
@@ -91,7 +93,7 @@ boost.BoostSpend Result:
91
93
}
92
94
```
93
95
94
- More examples can be found in tests.
96
+ _More examples can be found in tests._
95
97
96
98
<br>
97
99
You can’t perform that action at this time.
0 commit comments