Skip to content

Commit 44445ad

Browse files
committed
Small changes
- changed logger - added block-hash endpoint - included commit for gzip
1 parent 49af950 commit 44445ad

File tree

7 files changed

+152
-79
lines changed

7 files changed

+152
-79
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The installation process is still very manual. Will be improved based on feedbac
1313

1414
- Endpoints were expanded and have a slightly different syntax now [see endpoints](#endpoints)
1515

16-
### Requirements
16+
## Requirements
1717

1818
- RPC access to a bitcoin full node
1919
- unpruned because we need the prevouts for every transaction in the block with a taproot output
@@ -45,10 +45,6 @@ You still have to set up a config file in any case as the rpc users can't and **
4545

4646
You can now also decide which index you want to run. This setting can be set in the config file (blindbit.toml).
4747

48-
## Known Errors
49-
50-
No known issues.
51-
5248
## Todos
5349

5450
- [ ] Add flags to control setup
@@ -88,6 +84,7 @@ No known issues.
8884
```text
8985
GET("/info") // returns basic information about the oracle instance
9086
GET("/block-height") // returns the height of the indexing server
87+
GET("/block-hash/:blockheight") // returns the block-hash for a certain block-height
9188
GET("/tweaks/:blockheight?dustLimit=<sat_amount>") // returns tweak data (cut-through); optional parameter dustLimit can be omitted; filtering happens per request, so virtually any amount can be specified
9289
GET("/tweak-index/:blockheight?dustLimit=<sat_amount>") // returns the full tweak index (no cut-through); optional parameter dustLimit can be omitted; filtering happens per request, so virtually any amount can be specified
9390
GET("/spent-index/:blockheight") // returns the spent outpoints index (see https://github.com/setavenger/BIP0352-light-client-specification?tab=readme-ov-file#spent-utxos)

go.mod

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
module SilentPaymentAppBackend
22

3-
go 1.21.0
4-
5-
toolchain go1.24.0
3+
go 1.22.4
64

75
require (
86
github.com/btcsuite/btcd/btcec/v2 v2.3.3
97
github.com/btcsuite/btcd/btcutil v1.1.5
108
github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0
119
github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d
1210
github.com/gin-contrib/cors v1.7.2
11+
github.com/gin-contrib/gzip v1.2.2
1312
github.com/gin-gonic/gin v1.10.0
13+
github.com/rs/zerolog v1.33.0
14+
github.com/setavenger/go-bip352 v0.1.6
1415
github.com/shopspring/decimal v1.3.1
1516
github.com/spf13/viper v1.18.2
1617
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
@@ -24,12 +25,10 @@ require (
2425
github.com/bytedance/sonic v1.12.7 // indirect
2526
github.com/bytedance/sonic/loader v0.2.2 // indirect
2627
github.com/cloudwego/base64x v0.1.4 // indirect
27-
github.com/cloudwego/iasm v0.2.0 // indirect
2828
github.com/decred/dcrd/crypto/blake256 v1.0.0 // indirect
2929
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
3030
github.com/fsnotify/fsnotify v1.7.0 // indirect
3131
github.com/gabriel-vasile/mimetype v1.4.8 // indirect
32-
github.com/gin-contrib/gzip v1.2.2 // indirect
3332
github.com/gin-contrib/sse v1.0.0 // indirect
3433
github.com/go-playground/locales v0.14.1 // indirect
3534
github.com/go-playground/universal-translator v0.18.1 // indirect
@@ -42,14 +41,14 @@ require (
4241
github.com/klauspost/cpuid/v2 v2.2.9 // indirect
4342
github.com/leodido/go-urn v1.4.0 // indirect
4443
github.com/magiconair/properties v1.8.7 // indirect
44+
github.com/mattn/go-colorable v0.1.13 // indirect
4545
github.com/mattn/go-isatty v0.0.20 // indirect
4646
github.com/mitchellh/mapstructure v1.5.0 // indirect
4747
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
4848
github.com/modern-go/reflect2 v1.0.2 // indirect
4949
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
5050
github.com/sagikazarmark/locafero v0.4.0 // indirect
5151
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
52-
github.com/setavenger/go-bip352 v0.1.6 // indirect
5352
github.com/sourcegraph/conc v0.3.0 // indirect
5453
github.com/spf13/afero v1.11.0 // indirect
5554
github.com/spf13/cast v1.6.0 // indirect

0 commit comments

Comments
 (0)