Releases: btcsuite/btcd
v0.25.0
What's Changed
- psbt: decode keytype as compact size by @guggero in #2206
- Enable the RpcClient to send requests to Bitcoin Core over a Unix socket. by @robertmin1 in #2168
- Fix the btcctl uptime command by @cec489 in #2203
- remove
errorreturn value forSignCompactby @zhiqiangxu in #2211 - ffldb: close block files by @kcalvinalvin in #2208
- chore: fix some comments for struct field by @linghuying in #2214
- mod+rpcserver: bump to latest version of btcec by @guggero in #2218
- blockchain: copy utxo status bytes to avoid UB by @Crypt-iQ in #2225
- Updated btcd dependency of btcutil to address CVE-2024-34478 by @AlexsandroRyan in #2235
- wire: check TXID length before creating outpoint by @jharveyb in #2233
- bugfix: check if both begin and end are numbers in
UnmarshalJSONby @brunoerg in #2242 - rpcclient: signet support by @wydengyre in #2230
- btcjson: turn warnings into StringOrArray type by @guggero in #2245
- Formatting code with gofmt by @huochexizhan in #2255
- chore: fix some comments by @lencap in #2228
- Fix typos by @omahs in #2220
- fix: correct the typos [skip ci] by @threewebcode in #2093
- Correct link to redirect to btcutil docs by @sanrinconr in #1873
- delete minor unreachable code caused by t.Fatal by @Abirdcfly in #1875
- rpcclient: add timeout to http request. by @ziggie1984 in #2256
- Add support for wtxidrelay message. by @marcopeereboom in #2272
- main: add flag to write execution traces by @kcalvinalvin in #2223
- wire, peer: fix broken ibd by @kcalvinalvin in #2281
- Fix non-root hosts failing on resolving DNS by @same-id in #2269
- rpctest: make sure to
WaitForShutdownby @yyforyongyu in #2277 - rpcclient: safe read and write to batch by @ynewmann in #2273
- main: add prune documentation to sample-btcd.conf by @kcalvinalvin in #2299
- typo-Update register_test.go by @romashka-btc in #2291
- wire: add bitcoin network magic for default SigNet by @starius in #2276
- psbt: add support for PSBT_GLOBAL_XPUB type by @guggero in #2296
- deps: bump go version by @gosunuts in #2316
- refactor: using slices.Contains to simplify the code by @finaltrip in #2317
- chore: update license by @davidcardenasus in #2303
- github: upgrade the CI by @yyforyongyu in #2331
- multi:use t.TempDir replace os.MkdirTemp to simplify test temp dir manager by @petersssong in #2334
- multi: remove deprecated io/ioutil by @argentpapa in #2336
- docs: update guidelines and links by @yyforyongyu in #2333
- multi: implement testnet4 and add support for soft forks that are always active by @Roasbeef in #2339
- netsync: don't ask for blocks from peers on the same block height by @kcalvinalvin in #2304
- multi: deprecation goacc by @petersssong in #2340
- docs: update contribution link by @quantix9 in #2348
- refactor: use map.Copy for cleaner map handling by @xinhangzhou in #2343
- psbt: check path minimum length by @guggero in #2352
- database: shut the program down immediately if we run out of disk space by @kcalvinalvin in #2358
- multi: introduce v2transport and implement BIP324 by @Crypt-iQ in #2260
- psbt: overflow checks when computing Taproot BIP32 derivation min size by @ffranr in #2374
- v2transport: update to btcec v2.3.5, reduce module deps by @Roasbeef in #2381
- v2transport: fix module path by @Roasbeef in #2383
- build: remove replace directives left over after BIP 324 PRs by @Roasbeef in #2384
- txscript: add more detail to invalid tapscript merkle proof error by @Roasbeef in #2284
- Minor refactor to improve code health by @yyforyongyu in #2389
- rpcclient: clarify GetBlockCount description by @starius in #2322
- Print a readable error before os.Exit(1) in btcctl by @bshramin in #2393
- CI: add gemini assist for code reviews by @mohamedawnallah in #2395
- p2p: remove alert msg by @brunoerg in #2396
- txscript: add new ScriptTemplate DSL for writing Scripts by @Roasbeef in #2216
- psbt: upgrade dependencies and fix unit test by @Aharonee in #2375
- wire: optimize parsing for CFCheckpkt message, reduce allocs by 96% by @Roasbeef in #2398
- .gemini: add
styleguide.mdby @mohamedawnallah in #2399 - Align hash function count with bloom filter capacity by @gijswijs in #2397
- btcjson: add stubs for SubmitPackage by @bhandras in #2366
- rpcclient: add bitcoind version dependent error matching by @guggero in #2405
- feat: fix ci / makefile by @gosunuts in #2320
- Dockerfile: update go base image by @gosunuts in #2409
- Makefile+workflows: fallback to
GOPATH/binon non-existentGOBINby @mohamedawnallah in #2410 - build: bump version to v0.25.0-beta.rc1 by @Roasbeef in #2430
- musig2: add WithExternalCombinedNonce option to Sign by @sputn1ck in #2443
- build: bump version to v0.25 by @Roasbeef in #2447
New Contributors
- @robertmin1 made their first contribution in #2168
- @cec489 made their first contribution in #2203
- @linghuying made their first contribution in #2214
- @AlexsandroRyan made their first contribution in #2235
- @jharveyb made their first contribution in #2233
- @brunoerg made their first contribution in #2242
- @huochexizhan made their first contribution in #2255
- @lencap made their first contribution in #2228
- @omahs made their first contribution in #2220
- @sanrinconr made their first contribution in #1873
- @Abirdcfly made their first contribution in #1875
- @same-id made their first contribution in #2269
- @ynewmann made their first contribution in #2273
- @romashka-btc made their first contribution in #2291
- @starius made their first contribution in #2276
- @gosunuts made their first contribution in #2316
- @finaltrip made their first contribution in #2317
- @petersssong made their first contribution in #2334
- @argentpapa made their first contribution in #2336
- @quantix9 made their first contribution in #2348
- @xinhangzhou made their first contribution in #2343
- @bshramin made their first contribution in #2393
- @mohamedawnallah made their first contribution in #2395
- @Aharonee made their first contribution in #2375
- @gijswijs made their first contribution in #2397
Full Changelog: v0.24.2...v0.25.0
v0.25.0-beta.rc1
What's Changed
- psbt: decode keytype as compact size by @guggero in #2206
- Enable the RpcClient to send requests to Bitcoin Core over a Unix socket. by @robertmin1 in #2168
- Fix the btcctl uptime command by @cec489 in #2203
- remove
errorreturn value forSignCompactby @zhiqiangxu in #2211 - ffldb: close block files by @kcalvinalvin in #2208
- chore: fix some comments for struct field by @linghuying in #2214
- mod+rpcserver: bump to latest version of btcec by @guggero in #2218
- blockchain: copy utxo status bytes to avoid UB by @Crypt-iQ in #2225
- Updated btcd dependency of btcutil to address CVE-2024-34478 by @AlexsandroRyan in #2235
- wire: check TXID length before creating outpoint by @jharveyb in #2233
- bugfix: check if both begin and end are numbers in
UnmarshalJSONby @brunoerg in #2242 - rpcclient: signet support by @wydengyre in #2230
- btcjson: turn warnings into StringOrArray type by @guggero in #2245
- Formatting code with gofmt by @huochexizhan in #2255
- chore: fix some comments by @lencap in #2228
- Fix typos by @omahs in #2220
- fix: correct the typos [skip ci] by @threewebcode in #2093
- Correct link to redirect to btcutil docs by @sanrinconr in #1873
- delete minor unreachable code caused by t.Fatal by @Abirdcfly in #1875
- rpcclient: add timeout to http request. by @ziggie1984 in #2256
- Add support for wtxidrelay message. by @marcopeereboom in #2272
- main: add flag to write execution traces by @kcalvinalvin in #2223
- wire, peer: fix broken ibd by @kcalvinalvin in #2281
- Fix non-root hosts failing on resolving DNS by @same-id in #2269
- rpctest: make sure to
WaitForShutdownby @yyforyongyu in #2277 - rpcclient: safe read and write to batch by @ynewmann in #2273
- main: add prune documentation to sample-btcd.conf by @kcalvinalvin in #2299
- typo-Update register_test.go by @romashka-btc in #2291
- wire: add bitcoin network magic for default SigNet by @starius in #2276
- psbt: add support for PSBT_GLOBAL_XPUB type by @guggero in #2296
- deps: bump go version by @gosunuts in #2316
- refactor: using slices.Contains to simplify the code by @finaltrip in #2317
- chore: update license by @davidcardenasus in #2303
- github: upgrade the CI by @yyforyongyu in #2331
- multi:use t.TempDir replace os.MkdirTemp to simplify test temp dir manager by @petersssong in #2334
- multi: remove deprecated io/ioutil by @argentpapa in #2336
- docs: update guidelines and links by @yyforyongyu in #2333
- multi: implement testnet4 and add support for soft forks that are always active by @Roasbeef in #2339
- netsync: don't ask for blocks from peers on the same block height by @kcalvinalvin in #2304
- multi: deprecation goacc by @petersssong in #2340
- docs: update contribution link by @quantix9 in #2348
- refactor: use map.Copy for cleaner map handling by @xinhangzhou in #2343
- psbt: check path minimum length by @guggero in #2352
- database: shut the program down immediately if we run out of disk space by @kcalvinalvin in #2358
- multi: introduce v2transport and implement BIP324 by @Crypt-iQ in #2260
- psbt: overflow checks when computing Taproot BIP32 derivation min size by @ffranr in #2374
- v2transport: update to btcec v2.3.5, reduce module deps by @Roasbeef in #2381
- v2transport: fix module path by @Roasbeef in #2383
- build: remove replace directives left over after BIP 324 PRs by @Roasbeef in #2384
- txscript: add more detail to invalid tapscript merkle proof error by @Roasbeef in #2284
- Minor refactor to improve code health by @yyforyongyu in #2389
- rpcclient: clarify GetBlockCount description by @starius in #2322
- Print a readable error before os.Exit(1) in btcctl by @bshramin in #2393
- CI: add gemini assist for code reviews by @mohamedawnallah in #2395
- p2p: remove alert msg by @brunoerg in #2396
- txscript: add new ScriptTemplate DSL for writing Scripts by @Roasbeef in #2216
- psbt: upgrade dependencies and fix unit test by @Aharonee in #2375
- wire: optimize parsing for CFCheckpkt message, reduce allocs by 96% by @Roasbeef in #2398
- .gemini: add
styleguide.mdby @mohamedawnallah in #2399 - Align hash function count with bloom filter capacity by @gijswijs in #2397
- btcjson: add stubs for SubmitPackage by @bhandras in #2366
- rpcclient: add bitcoind version dependent error matching by @guggero in #2405
- feat: fix ci / makefile by @gosunuts in #2320
- Dockerfile: update go base image by @gosunuts in #2409
- Makefile+workflows: fallback to
GOPATH/binon non-existentGOBINby @mohamedawnallah in #2410
New Contributors
- @robertmin1 made their first contribution in #2168
- @cec489 made their first contribution in #2203
- @linghuying made their first contribution in #2214
- @AlexsandroRyan made their first contribution in #2235
- @jharveyb made their first contribution in #2233
- @brunoerg made their first contribution in #2242
- @huochexizhan made their first contribution in #2255
- @lencap made their first contribution in #2228
- @omahs made their first contribution in #2220
- @sanrinconr made their first contribution in #1873
- @Abirdcfly made their first contribution in #1875
- @same-id made their first contribution in #2269
- @ynewmann made their first contribution in #2273
- @romashka-btc made their first contribution in #2291
- @starius made their first contribution in #2276
- @gosunuts made their first contribution in #2316
- @finaltrip made their first contribution in #2317
- @petersssong made their first contribution in #2334
- @argentpapa made their first contribution in #2336
- @quantix9 made their first contribution in #2348
- @xinhangzhou made their first contribution in #2343
- @bshramin made their first contribution in #2393
- @mohamedawnallah made their first contribution in #2395
- @Aharonee made their first contribution in #2375
- @gijswijs made their first contribution in #2397
Full Changelog: v0.24.2...v0.25.0-beta.rc1
v0.24.2
This release includes important bug fixes related to subtle interactions related to re-orgs and the UTXO set cache. These fixed are considered security critical.
This release also includes implementations of invalidateblock and reconsiderblock which can be useful in helping nodes that were afflicted by the aforementioned bugs to recover without needing to resync the entire chain.
WIth this release, btcd now also implements the testmempoolaccept RPC which can be useful to check a transaction candidate for validity from a policy and conflict perspective before broadcasting. Along the way, we've added some additional policy checks that exist in other Bitcoin full node implementations.
This release also contains fixes to some parsing issues discovered via fuzz testing.
Finally, as mentioned above release includes important security fixes, with full details to be disclosed in 90 days.
What's Changed
- Fix some typos by @Thabokani in #2085
- Fix some typos by @vuittont60 in #2098
- support
testmempoolacceptfor bothbitcoindandbtcdby @yyforyongyu in #2053 - rpcclient: make sure batch requests are GCed by @yyforyongyu in #2105
- refactor: add
make helpto display the usage for project Makefile by @Halimao in #2107 - blockchain: set the lastflushtime when setting the lastflushhash by @kcalvinalvin in #2089
- Added 'include_unsafe' option to FundRawTransaction by @nikicat in #2119
- netsync: don't update mempool/fee estimator unless we're synced up by @kcalvinalvin in #2108
- feat: Expose newFutureError for developer friendliness by @devlzcode in #2112
- Add
gettxspendingprevoutforbtcdand fix version check by @yyforyongyu in #2125 - addrmgr: fix intermittent addrmanager_internal_test bug by @kcalvinalvin in #2131
- blockchain: don't rely on BlockHeightByHash for prune height calculations by @kcalvinalvin in #2122
- fix ioutil deprecated function by @theedtron in #2133
- blockchain: fix inconsistent utxocache and database on reorg by @kcalvinalvin in #2123
- blockchain: fix a bug where a duplicate entry is possible in the mapslice by @kcalvinalvin in #2134
- blockchain: always relock chainLock for subscription callbacks by @kcalvinalvin in #2128
- rpcclient: add detailed error types by @yyforyongyu in #2138
- Add check for maximum signature length in ecdsa.ParseDERSignature by @SulaimanAminuBarkindo in #2135
- build: bump version to v0.24.2-beta.rc1 by @Roasbeef in #2136
- wire: add method TxID to MsgTx by @ffranr in #2055
- fix typos by @mattn in #2100
- chore: remove trailing continue by @zhiqiangxu in #2091
- Convert
witnessToHexinto a methodToHexStringsonTxWitnessby @ffranr in #1991 - chore: fix some comments by @xiaoxiangxianzi in #2146
- btcclient+btcjson: defaultMaxFeeRate to BTC/kvB by @YusukeShimizu in #2142
- chore: fix typos by @xiaoxianBoy in #2150
- Add new serialized pubkey type by @ffranr in #2156
- blockchain: Add IsAncestor method to blockNode by @kcalvinalvin in #2153
- fix some comment by @zhiqiangxu in #2080
- chore: fix function names in comment by @goodfirm in #2163
- Update developer_resources.md by @youngxhui in #2158
- docs: fix config documentation for
AgentWhitelistby @youngjoon-lee in #2140 - release: add darwin-arm64 to target binaries by @kcalvinalvin in #2173
- chaincfg: update dnsseeds by @kcalvinalvin in #2174
- chore: fix some typos in comments by @oftenoccur in #2164
- chore: fix some function names by @MarkDaveny in #2180
- Update standardness rules congruent to Bitcoin Core by @ProofOfKeags in #2178
- blockchain, main: add and fix logs by @kcalvinalvin in #2182
- blockchain, fullblocktests, workmath, testhelper: add InvalidateBlock() method to BlockChain by @kcalvinalvin in #2155
- Added DecodeNoLimitGeneric to bech32.go by @MarcoEzekiel in #2186
- refactor: set strconv.ParseFloat bitsize to 64 by @lilasxie in #2062
- rpcclient/zmq: typo by @yosuzzy in #2184
- chore: fix some comments by @VitalikButerinEth in #2191
- Fix struct names by @coderwander in #2169
- blockchain: Add ReconsiderBlock() by @Crypt-iQ in #2196
- main, rpcclient, integration: add rpccalls for invalidate and reconsiderblock by @Crypt-iQ in #2197
- build: bump version to v0.24.2-beta by @Roasbeef in #2201
- rpcclient: update error str to match both versions by @yyforyongyu in #2205
New Contributors
- @Thabokani made their first contribution in #2085
- @vuittont60 made their first contribution in #2098
- @Halimao made their first contribution in #2107
- @nikicat made their first contribution in #2119
- @devlzcode made their first contribution in #2112
- @theedtron made their first contribution in #2133
- @SulaimanAminuBarkindo made their first contribution in #2135
- @mattn made their first contribution in #2100
- @zhiqiangxu made their first contribution in #2091
- @xiaoxiangxianzi made their first contribution in #2146
- @YusukeShimizu made their first contribution in #2142
- @xiaoxianBoy made their first contribution in #2150
- @goodfirm made their first contribution in #2163
- @youngxhui made their first contribution in #2158
- @youngjoon-lee made their first contribution in #2140
- @oftenoccur made their first contribution in #2164
- @MarkDaveny made their first contribution in #2180
- @ProofOfKeags made their first contribution in #2178
- @MarcoEzekiel made their first contribution in #2186
- @lilasxie made their first contribution in #2062
- @yosuzzy made their first contribution in #2184
- @VitalikButerinEth made their first contribution in #2191
- @coderwander made their first contribution in #2169
Full Changelog: v0.24.0...v0.24.2
v0.24.2-beta.rc1
What's Changed
- Fix some typos by @Thabokani in #2085
- Fix some typos by @vuittont60 in #2098
- support
testmempoolacceptfor bothbitcoindandbtcdby @yyforyongyu in #2053 - rpcclient: make sure batch requests are GCed by @yyforyongyu in #2105
- refactor: add
make helpto display the usage for project Makefile by @Halimao in #2107 - blockchain: set the lastflushtime when setting the lastflushhash by @kcalvinalvin in #2089
- Added 'include_unsafe' option to FundRawTransaction by @nikicat in #2119
- netsync: don't update mempool/fee estimator unless we're synced up by @kcalvinalvin in #2108
- feat: Expose newFutureError for developer friendliness by @devlzcode in #2112
- Add
gettxspendingprevoutforbtcdand fix version check by @yyforyongyu in #2125 - addrmgr: fix intermittent addrmanager_internal_test bug by @kcalvinalvin in #2131
- blockchain: don't rely on BlockHeightByHash for prune height calculations by @kcalvinalvin in #2122
- fix ioutil deprecated function by @theedtron in #2133
- blockchain: fix inconsistent utxocache and database on reorg by @kcalvinalvin in #2123
- blockchain: fix a bug where a duplicate entry is possible in the mapslice by @kcalvinalvin in #2134
- blockchain: always relock chainLock for subscription callbacks by @kcalvinalvin in #2128
- rpcclient: add detailed error types by @yyforyongyu in #2138
- Add check for maximum signature length in ecdsa.ParseDERSignature by @SulaimanAminuBarkindo in #2135
- build: bump version to v0.24.2-beta.rc1 by @Roasbeef in #2136
New Contributors
- @Thabokani made their first contribution in #2085
- @vuittont60 made their first contribution in #2098
- @Halimao made their first contribution in #2107
- @nikicat made their first contribution in #2119
- @devlzcode made their first contribution in #2112
- @theedtron made their first contribution in #2133
- @SulaimanAminuBarkindo made their first contribution in #2135
Full Changelog: v0.24.0...v0.24.2-beta.rc1
btcd v0.24.0
This release is a major release that includes several general bug fixes, security bug fixes (please update!), and also a series of performance improvements that dramatically reduce the time for initial block download from ~45 hours+ to around 6 hours! With this release,btcd now also supports BIP 155 and has gained support for pruning (--prune=MiB).
Verifying the Release
In order to verify the release, you'll need to have gpg or gpg2 installed on your system. Once you've obtained a copy (and hopefully verified that as well), you'll first need to import the keys that have signed this release if you haven't done so already:
curl https://raw.githubusercontent.com/lightningnetwork/lnd/master/scripts/keys/roasbeef.asc | gpg --import
Once you have the required PGP keys, you can verify the release (assuming manifest-roasbeef-v0.24.0.sig and manifest-v0.24.0.txt are in the current directory) with:
gpg --verify manifest-roasbeef-v0.24.0.sig manifest-v0.24.0.txt
You should see the following if the verification was successful:
gpg: Signature made Sat Dec 30 17:11:22 2023 PST
gpg: using RSA key 60A1FA7DA5BFF08BDCBBE7903BBD59E99B280306
gpg: Good signature from "Olaoluwa Osuntokun <laolu32@gmail.com>" [ultimate]
That will verify the signature of the manifest file, which ensures integrity and authenticity of the archive you've downloaded locally containing the binaries. Next, depending on your operating system, you should then re-compute the sha256 hash of the archive with shasum -a 256 <filename>, compare it with the corresponding one in the manifest file, and ensure they match exactly.
What's Changed
- Musig2: Update to 1.0.0.rc2 by @sputn1ck in #1913
- btcec/schnorr/musig2: fix BenchmarkPartialVerify by @Roasbeef in #1920
- base58: fix decoding issue by @guggero in #1923
- Update Docker documentation towards building your own image by @guiand888 in #1925
- chainhash: JSON marshal hash as string by @ffranr in #1932
- Update Dockerfile to Alpine 3.16 by @guiand888 in #1924
- Fix memory leak in connmanager by @hxw in #1576
- Update mining.md by @jagottsicher in #1938
- Sighash taproot keyspend bug fix by @Roasbeef in #1941
- btcutil/psbt: export helper functions, fix/add encoding of unknown fields by @guggero in #1942
- docs: Update Go version as per the Readme. by @hristog in #1944
- txscript: Fix typo in IsUnspendable() comment by @kcalvinalvin in #1945
- txscript: allow script builder capacity to be specified by @guggero in #1954
- Export MakeScritpNum, AsSmallInt, and IsSmallInt by @martonp in #1956
- chainhash: JSON Unmarshal hash from appropriate string. by @LindenWang01 in #1952
- psbt: add verification method for utxo data by @ziggie1984 in #1964
- txscript: fix typos by @hieblmi in #1957
- chaincfg: Update checkpoints by @kcalvinalvin in #1968
- btcd: Add memory profiling flag by @kcalvinalvin in #1953
- blockchain: Use slices when fetching utxos by @kcalvinalvin in #1972
- main: Update README.md's minimum go version by @kcalvinalvin in #1977
- Add wire.Outpoint parser from string by @GeorgeTsagk in #1879
- multi: Run gofmt on the entire repository by @kcalvinalvin in #1981
- blockchain+chaincfg: disable retargeting for regtest by @guggero in #1985
- multi: remove repetitive the by @cuishuang in #1998
- blockchain: refactor and export header validation checks by @Crypt-iQ in #1931
- btcutil: format BTC amounts with trailing zeroes by @C-Otto in #1996
- musig2: fix early nonce gen option by @sputn1ck in #2003
- fix: missing sighashtype when finalizing taproot keyspend signature by @0xEclair in #2006
- Add address field (rpc client & server) by @lindlof in #1969
- schnorr: correct rfc reference in docs by @wydengyre in #2016
- blockchain, integration, mining, main: Rolling merkle root calculation by @kcalvinalvin in #1979
- schnorr: bip-340 compliant verification by @wydengyre in #2018
- txscript/engine: add execution StepCallback by @halseth in #1980
- schnorr: bip-340 compliant signing by @wydengyre in #2022
- main, wire, blockchain, indexers, ffldb: Add pruning by @kcalvinalvin in #1971
- chainhash: add support to legacy-marshaled hashes by @Beerosagos in #2025
- rpcclient: catch shutdown signal when sending RPC requests by @yyforyongyu in #2028
- integration: add test to check prune status by @kcalvinalvin in #2043
- fix: typos in sighash.go by @kevinheavey in #2047
- Update LICENSE by @davidcardenasus in #2045
- blockchain: export CheckSerializedHeight by @Crypt-iQ in #2051
- fix: default forward port by @0xEclair in #2038
- Added tests for FutureGetBestBlockHashResult.Receive by @ClaytonNorthey92 in #2048
- Added test for client.GetChainTxStatsAsync() in rpcclient. by @ClaytonNorthey92 in #2049
- added tests for GetBestBlockHashAsync by @ClaytonNorthey92 in #2057
- blockchain, btcjson: Implement getchaintips rpc call by @kcalvinalvin in #1918
- Fix typos by @xiaolou86 in #2064
- Fix typos on signature.go by @EvanTedesco in #2065
- schnorr: simplify some signing math by @wydengyre in #2042
- Correct comments in singature.go by @jcvernaleo in #2067
- blockchain: Add ancestor optimization to finding Ancestor by @kcalvinalvin in #1688
- Update petertodd seed DNS to .net by @petertodd in #2069
- wire, netsync: change isSyncCandidate behavior by @kcalvinalvin in #2035
- make: add install and release-install goals by @guggero in #1890
- chainhash, wire, btcutil, main: Memory efficient txhash by @kcalvinalvin in #1978
- blockchain, cmd, netsync, main: Add utxocache by @kcalvinalvin in #1955
- btcutil: update to chaincfg/chainhash/v1.1.0 by @Roasbeef in #2072
- fix: enhance code comments by @threewebcode in #2074
- multi: update main package and btcutil to chainhash/v1.1.0, use optimized dsha256 by @Roasbeef in #2075
- doc: correct comments by @bodhi-crypo in #2076
- rpctest: integration test harness fixes by @guggero in #2071
- btcutil: reuse serialized tx during TxHash by @Roasbeef in #2081
- wire: only borrow/return binaryFreeList buffers at the message level by @Roasbeef in #2073
- build: create btcd v0.24 release branch by @Roasbeef in #2082
New Contributors
- @guiand888 made their first contribution in #1925
- @hxw made their first contribution in #1576
- @jagottsicher made their first contribution in #1938
- @hristog made their first contribution in #1944
- @martonp made their first contribution in #1956
- @LindenWang01 made their first contribution in #1952
- @ziggie1984 made their first contribution in #1964
- @hieblmi made their first contribution in #1957
- @GeorgeTsagk made their first contribution in #1879
- @cuishuang made their first contribution in #1998
- @C-Otto made their first contribution in #1996
- @0xEclair made their first contribution in #2006
- @wydengyre made their first contribution in #2016
- @Beerosagos made their first contribution in #2025
- @kevinheavey made their first contribution in #2047
- ...
btcd v0.23.3
Verifying the Release
In order to verify the release, you'll need to have gpg or gpg2 installed on your system. Once you've obtained a copy (and hopefully verified that as well), you'll first need to import the keys that have signed this release if you haven't done so already:
curl https://raw.githubusercontent.com/lightningnetwork/lnd/master/scripts/keys/guggero.asc | gpg --import
Once you have the required PGP keys, you can verify the release (assuming manifest-guggero-v0.23.3.sig and manifest-v0.23.3.txt are in the current directory) with:
gpg --verify manifest-guggero-v0.23.3.sig manifest-v0.23.3.txt
You should see the following if the verification was successful:
gpg: Signature made Di 01 Nov 2022 14:00:20 CET
gpg: using RSA key F4FC70F07310028424EFC20A8E4256593F177720
gpg: Good signature from "Oliver Gugger <gugger@gmail.com>" [ultimate]
That will verify the signature of the manifest file, which ensures integrity and authenticity of the archive you've downloaded locally containing the binaries. Next, depending on your operating system, you should then re-compute the sha256 hash of the archive with shasum -a 256 <filename>, compare it with the corresponding one in the manifest file, and ensure they match exactly.
What's Changed
- Fixed ban bug that doesn't print numTxns by @l0k18 in #1900
- btcec/schnorr/musig2: update to musig 1.0.0 by @Roasbeef in #1894
- wire: increase max witness items per input by @ellemouton in #1907
- build: bump version to v0.23.3 by @guggero in #1908
New Contributors
Full Changelog: v0.23.2...v0.23.3
btcd v0.23.2
What's Changed
- MuSig2: Catch up to 0.4.0 by @sputn1ck in #1865
- Bump btcd version in btcutil package by @darioush in #1866
- doc: fix Tor hidden service setup link by @shyba in #1883
- build: bump golang base image version to 1.17 by @tochicool in #1882
- wire: remove erroneous witness size check in wire parsing by @Roasbeef in #1896
- build: bump version to v0.23.2 by @Roasbeef in #1898
New Contributors
- @sputn1ck made their first contribution in #1865
- @darioush made their first contribution in #1866
- @shyba made their first contribution in #1883
- @tochicool made their first contribution in #1882
Full Changelog: v0.23.1...v0.23.2
btcd v0.22.2
What's Changed
- [release-v0.22.1] multi: Switch to chaincfg/chainhash module. by @davecgh in #1851
- release: create release branch for v0.22.2 to backport block parsing issue by @Roasbeef in #1901
Full Changelog: v0.22.1...v0.22.2
btcd v0.23.1-beta
What's Changed
- btcjson: Update WalletCreateFundedPsbtOpts.FeeRate type by @gnasr in #1729
- rpcserverhelp: Remove extra period for gettxout--synopsis by @kcalvinalvin in #1733
- mempool: export isDust for use in other projects by @Crypt-iQ in #1739
- Switch irc to libera.chat by @jcvernaleo in #1725
- rpcclient: Export symbols needed for custom commands by @JeremyRand in #1457
- btcec: check if recovered pk is at point of infinity by @MariusVanDerWijden in #1750
- mempool: introduce GetDustThreshold to export dust limit calculation by @Crypt-iQ in #1742
- build: bump min Go version to 1.16.8 add Go 1.17.1 by @Roasbeef in #1753
- Upgraded the docker version to 1.16 by @naveensrinivasan in #1755
- peer+server: add new config option to optionally disable stall detection by @Roasbeef in #1752
- addrmgr: make KnownAddress methods thread-safe by @chappjc in #1763
- comment improvement by @pyh4 in #1762
- Included permissions for GitHub action by @naveensrinivasan in #1756
- connmgr: Fix stale comment in TestRemovePendingConnection by @sloorush in #1749
- rpcclient: Add retry with backoffs to HTTP POST requests by @3nprob in #1743
- txscript: backport tokenizer from dcrd by @Roasbeef in #1769
- go.mod, go.sum: Update goleveldb by @kcalvinalvin in #1770
- reduce redundant memory allocation - resolves #1699 by @ziollek in #1759
- rpcclient+rpcserver+integration: GetNetworkHashPS3 must be float64 by @mattbajorek in #1778
- multi: move the btcutil repo into btcd as a sub-module by @Roasbeef in #1785
- btcutil: update modules to replace to top-level btcd repo by @Roasbeef in #1788
- chaincfg+blockchain: abstract/refactor BIP 9 version bits implementation to work w/ BIP 8 block heights by @Roasbeef in #1700
- btcec: create new btcec/v2 module that type aliases into the dcrec module by @Roasbeef in #1773
- btcec/v2: create new schnorr package for BIP-340, move existing ecdsa implementation into new ecdsa package by @Roasbeef in #1777
- build: update to btcec v2.1.0 by @Roasbeef in #1801
- build: retract bogus tags from btcd fork by @Roasbeef in #1805
- mempool/estimatefee: Fix negative index bug by @kcalvinalvin in #1813
- Replace github.com/btcsuite/goleveldb imports with github.com/syndtr/goleveldb by @anupcshan in #1780
- Remove circular dependency issue between
btcec/v2and main package by @guggero in #1823 - Fixes coveralls coverage report by @vpereira01 in #1814
- Update LICENSE by @MarnixCroes in #1809
- build: update to btcec/v2.1.1 and chaincfg/chainhash/v1.00 by @Roasbeef in #1824
- multi: implement BIP 341 and 342 a.k.a complete taproot and tapscript consensus verification logic by @Roasbeef in #1787
- build: update to btcec/v2.1.3 and chaincfg/chainhash v1.0.1 by @Roasbeef in #1831
- blockchain: demote BIP 9 log statements by @Roasbeef in #1832
- psbt: allow empty bip32 derivation path by @guggero in #1834
- Revert "reduce redundant memory allocatio - resolves #1699" by @Crypt-iQ in #1804
- Default to JSONRPC 1.0 if the rpcVersion empty by @jsfour in #1837
- btcjson: Update fields in GetNetworkInfoResult by @dekokun in #1800
- harden daemon on OpenBSD by @timkuijsten in #1815
- rpctest: ensure rpclisten is set to an available port by @arshbot in #1806
- btcjson: add addresstype arg to getnewaddress by @chappjc in #1776
- chaincfg: use lower custom activation threshold for regtest+simnet by @Roasbeef in #1838
- rpcclient: add getzmqnotifications RPC by @torkelrogstad in #1810
- btcd: don't override explicitly set GOGC by @anupcshan in #1782
- Adds GH workflow to build docker images on version tags by @vpereira01 in #1830
- multi: implement BIP-155 addrv2 support by @Crypt-iQ in #1812
- psbt: always use non witness serialization format by @guggero in #1842
- btcec/schnorr/musig2: add new musig2 implementation based on musig2 draft BIP by @Roasbeef in #1820
- fuzz: add ParsePubKey fuzzer by @odeke-em in #1854
- psbt: add support for new Taproot fields by @guggero in #1847
- rpcclient: fix crash in http retry handler by @bhandras in #1856
- mempool: export checkStandardness func by @ellemouton in #1840
- build: bump version to v0.23 by @Roasbeef in #1860
- rpcclient: add getnewaddresstype and revert breaking change by @chappjc in #1844
- rpcclient: fix missing return by @bhandras in #1862
- build: bump version to v0.23.1 by @Roasbeef in #1863
New Contributors
- @gnasr made their first contribution in #1729
- @MariusVanDerWijden made their first contribution in #1750
- @naveensrinivasan made their first contribution in #1755
- @chappjc made their first contribution in #1763
- @pyh4 made their first contribution in #1762
- @sloorush made their first contribution in #1749
- @3nprob made their first contribution in #1743
- @ziollek made their first contribution in #1759
- @mattbajorek made their first contribution in #1778
- @anupcshan made their first contribution in #1780
- @vpereira01 made their first contribution in #1814
- @MarnixCroes made their first contribution in #1809
- @jsfour made their first contribution in #1837
- @dekokun made their first contribution in #1800
- @timkuijsten made their first contribution in #1815
- @arshbot made their first contribution in #1806
- @odeke-em made their first contribution in #1854
- @bhandras made their first contribution in #1856
- @ellemouton made their first contribution in #1840
Full Changelog: v0.22.0-beta...v0.23.1
btcd v0.22.0-beta
This release of btcd is primarily to act as a catchup for the various changes that have accumulated.
Verifying the Release
In order to verify the release, you'll need to have gpg or gpg2 installed on your system. Once you've obtained a copy (and hopefully verified that as well), you'll first need to import the keys that have signed this release if you haven't done so already:
Once you have the required PGP keys, you can verify the release (assuming manifest-v0.22.0-beta.txt and manifest-v0.22.0-beta.txt.sig are in the current directory) with:
gpg --verify manifest-v0.22.0-beta.txt.sig
You should see the following if the verification was successful:
gpg: assuming signed data in 'manifest-v0.22.0-beta.txt'
gpg: Signature made Tue 08 Jun 2021 10:07:53 AM EDT
gpg: using DSA key 0DB39EAF526568682088EEDFB15210D35378BD54
gpg: Good signature from "John C. Vernaleo <john@netpurgatory.com>" [ultimate]
That will verify the signature of the manifest file, which ensures integrity and authenticity of the archive you've downloaded locally containing the binaries. Next, depending on your operating system, you should then re-compute the sha256 hash of the archive with shasum -a 256 <filename>, compare it with the corresponding one in the manifest file, and ensure they match exactly.
Verifying the Release Binaries
As of this release, our release binaries are fully reproducible thanks to go1.13! Third parties are now able to verify that the release binaries were produced properly without having to trust the release manager(s). See our reproducible builds guide for how this can be achieved. The release binaries are compiled with go1.16.5, which is required by verifiers to arrive at the same ones.
Finally, you can also verify the tag itself with the following command:
git verify-tag v0.22.0-beta
You should see something along the lines of this in the case of a valid tag:
gpg: Signature made Tue 08 Jun 2021 09:42:52 AM EDT
gpg: using DSA key 0DB39EAF526568682088EEDFB15210D35378BD54
gpg: Good signature from "John C. Vernaleo <john@netpurgatory.com>" [ultimate]
Building the Contained Release
Users are able to rebuild the target release themselves without having to fetch any of the dependencies. In order to do so, assuming that vendor.tar.gz and btcd-source-v0.22.0-beta.tar.gz are in the current directory, follow these steps:
tar -xvzf vendor.tar.gz
tar -xvzf btcd-source-v0.22.0.tar.gz
GO111MODULE=on go install -v -mod=vendor
GO111MODULE=on go install -v -mod=vendor ./cmd/btcctl
The -mod=vendor flag tells the go build command that it doesn't need to fetch the dependencies, and instead, they're all enclosed in the local vendor directory.
Additionally, it's also possible to use the enclosed release.sh script to bundle a release for a specific system like so:
BTCBUILDSYS="linux-arm64 darwin-amd64" ./build/release/release.sh
Release Notes
Protocol and network-related changes:
-
Added support for witness tx and block in
notfoundmsg. (#1625) -
Added support for receiving
sendaddrv2messages from a peer. (#1670) -
Fixed bug in
peerpackage causing last block height to go backwards. (#1606) -
Added chain parameters for connecting to the public Signet network. (#1692, #1718)
Also added
--signetcommand line flag tobtcctlandbtcdutilities.
Crypto changes:
- Fixed bug causing panic due to bad R and S signature components in
btcec.RecoverCompact. (#1691) - Set the name (
secp256k1) in the CurveParams of the S256 curve. (#1565)
Notable developer-related package changes:
-
Improve gc for
txscript.IsUnspendablemethod. (#1615)Significantly reduced allocations, which should bring a performance gain during sync.
-
Used
RLock/RUnlockwhen possible in theaddrmgrpackage. (#1697) -
Removed unknown block version warning in the
blockchainpackage, due to false positives triggered by AsicBoost. (#1463) -
Added proper types for flag field and improve docs, for
msgtxin thewirepackage. (#1632) -
Added
chaincfg.RegisterHDKeyIDfunction to populate HD key ID pairs. (#1617) -
Fixed flaky hash cache test due to resetting RNG. (#1689)
-
Added new method
mining.AddWitnessCommitmentto add the witness commitment as anOP_RETURNoutput within the coinbase transaction. (#1716)
RPC changes:
-
Implemented Batch JSON-RPC in
rpcclientand server. (#1583)Please refer to
rpcclient/examples/bitcoincorehttpbulk/README.mdfor examples. -
Implemented
rpcclientmethod to invokegetdescriptorinfoJSON-RPC command. (#1578) -
Updated the
rpcserverhandler forvalidateaddressJSON-RPC command to have parity with the bitcoind 0.20.0 interface. (#1613) -
Implemented
rpcclientmethod to invokegetblockfilterJSON-RPC command. (#1579) -
Implemented
signmessagewithprivkeyJSON-RPC command in rpcserver. (#1585) -
Implemented
rpcclientmethod to invokeimportmultiJSON-RPC command. (#1579) -
Implemented
watchOnlyargument inrpcclientmethod to invokelisttransactionsJSON-RPC command. (#1628) -
Updated
btcjson.ListTransactionsResultfor compatibility with Bitcoin Core 0.20.0. (#1626)Two new fields
BlockHeightandLabelwere added as optional, to keep backwards compatibility. -
Implemented nullable optional JSON-RPC parameters. (#1594)
Fixed command marshalling dropping params that follow params with
nilvalue. -
Implemented
rpcclientand server method to invokegetnodeaddressesJSON-RPC command. (#1590) -
Implemented
rpcclientmethods to invoke PSBT JSON-RPC commands. (#1596)The
walletcreatefundedpsbtandwalletprocesspsbtcommands were implemented. -
Implemented
rpcclientmethod to invokelistsinceblockwith theinclude_watchonlyparameter enabled. (#1451) -
Implemented
rpcclientmethod to invokederiveaddressesJSON-RPC command. (#1631) -
Implemented
rpcclientmethod to invokegetblocktemplateJSON-RPC command. (#1629)The corresponding
btcjsonstructs were also updated to reflect changes in Bitcoin Core. -
Implemented
rpcclientmethod to invokegetaddressinfoJSON-RPC command. (#1633) -
Implemented
rpcclientmethod to invokegetwalletinfoJSON-RPC command. (#1638) -
Fixed error message in rpcserver when an unknown RPC command is encountered. (#1695)
-
Fixed error message returned by
estimatefeewhen the number of blocks exceeds the max depth. (#1678) -
Updated
btcjson.GetBlockChainInfoResultto include new fields in Bitcoin Core. (#1676)Two new fields
InitialBlockDownloadandSizeOnDiskwere added. -
Added
ExtraHeadersinrpcclient.ConnConfigstruct. (#1669)It's useful when the RPC provider needs customized headers, for example, the
X-Auth-Tokenheader. -
Fixed bitcoind compatibility issue with the
sendrawtransactionJSON-RPC command. (#1659) -
Added new JSON-RPC errors to
btcjsonpackage, and documented them. (#1648) -
Implemented
rpcclientmethod to invokecreatewalletJSON-RPC command. (#1650)This is also the first
rpcclientmethod that uses the functional options pattern, which will be used more and more in future. -
Implemented
rpcclientmethods to invokebackupwallet,dumpwallet,loadwalletandunloadwalletJSON-RPC commands. (#1645) -
Fixed unmarshalling error in
getmininginfoJSON-RPC command, for valid integers in scientific notation. (#1644) -
Implemented
rpcclientmethod to invokegettxoutsetinfoJSON-RPC command. (#1641) -
Implemented
rpcclientmethod to invokesignrawtransactionwithwalletJSON-RPC command. (#1642) -
Added
txidtogetblocktemplateresponse of rpcserver. (#1639) -
Fixed monetary unit used in
createrawtransactionJSON-RPC command in rpcserver. (#1614) -
Added
rawtxfield tobtcjson.GetBlockVerboseTxResultto provide backwards compatibility with older versions of Bitcoin Core. (#1677)
Misc changes:
- Updated
btcutildependency. (#1704) - Updated documentation links to use https://pkg.go.dev instead of http://godoc.org. (#1693)
- Added Dockerfile to build and run btcd on Docker. (#1465)
- Reworked documentation and published on https://btcd.readthedocs.io. (#1468)
- Added support for Go 1.15. (#1619)
- Added Go 1.14 as the minimum supported version of Golang. (#1621)
- Removed unnecessary
GOMAXPROCSfunction calls. (#1627) - Enabled Go Race detector and code coverage on GitHub Actions. (#1601)
Changelog
The full list of changes since v0.21.0-beta can be found here:
Contributors (Alphabetical Order)
10gic
Andrew Tugarinov
Anirudha Bose
Appelberg-s
Armando Ochoa
Aurèle Oulès
Calvin Kim
Christian Lehmann
Conner Fromknecht
Dan Cline
David Mazary
Elliott Minns
Federico Bond
Friedger Müffke
Gustavo Chain
Hanjun Kim
Henry Fisher
Iskander Sharipov
Jake Sylvestre
Johan T. Halseth
John C. Vernaleo
Liran Sharir
Mikael Lindlof
Olaoluwa Osuntokun
Oliver Gugger
Rjected
Steven Kreuzer
Torkel Rogstad
Tristyn
Victor Lavaud
Vinayak Borkar
Wilmer Paulino
Yaacov Akiba Slama
ebiiim
ipriver
wakiyamap
yyforyongyu