Olaoluwa Osuntokun
977712a094
Merge pull request #1924 from guiand888/patch-1
...
Update Dockerfile to Alpine 3.16
2023-01-05 18:02:47 -08:00
Oliver Gugger
718d268a8c
Merge pull request #1932 from ffranr/chainhash_json
...
chainhash: JSON marshal hash as string
2022-12-05 15:09:06 +01:00
ffranr
1d6e578c21
chainhash: JSON marshal hash as string
2022-12-02 19:30:41 +00:00
Guillaume A
52b6eb46f1
Update Docker documentation towards building your own image
...
As DockerHub image non existant, update the documentation for Compose to build your own image instead.
2022-11-21 11:33:53 -05:00
Guillaume A
6c93f9f9f2
Update Dockerfile to Alpine 3.16
...
Alpine 3.12 is EOL and contains multiple vulnerabilites.
Deploying on Alpine 3.16 works fine.
2022-11-20 12:47:34 +08:00
Oliver Gugger
02c854e943
Merge pull request #1923 from guggero/base58-fix
...
base58: fix decoding issue
2022-11-18 22:39:47 +01:00
Oliver Gugger
866b3dc0a3
base58: fix decoding issue
2022-11-18 20:55:50 +01:00
Olaoluwa Osuntokun
4350859a7b
Merge pull request #1920 from Roasbeef/musig2-benchmark-fix
...
btcec/schnorr/musig2: fix BenchmarkPartialVerify
2022-11-09 16:51:36 -08:00
Olaoluwa Osuntokun
55e40f4536
btcec/schnorr/musig2: fix BenchmarkPartialVerify
...
In this commit, we fix the `BenchmarkPartialVerify` test. When we moved
to musig 1.0, we stopped requiring the input as an x-only key. So we
need to remove the round trip serialization to force the key to be
x-only.
2022-11-09 12:50:18 -08:00
Olaoluwa Osuntokun
31ecaff6fd
Merge pull request #1913 from sputn1ck/musig2_update
...
Musig2: Update to 1.0.0.rc2
2022-11-09 12:33:20 -08:00
Olaoluwa Osuntokun
108fcf7747
Merge pull request #1919 from Roasbeef/sign-mutate
...
btcec/schnorr: use private key copy for BIP-340 signatures
2022-11-09 12:24:32 -08:00
Olaoluwa Osuntokun
a8244f587c
btcec/schnorr: use private key copy for BIP-340 signatures
...
This is a fix similar to https://github.com/btcsuite/btcd/pull/1905 .
We'll always make a copy of the key in the local scope before passing it
around elsewhere. Depending on the parity of the public key, the private
key itself might need to be negated.
A similar test is added here that fails without the patch to the
signature.go file.
2022-11-09 11:30:15 -08:00
Oliver Gugger
14bb56f77b
Merge pull request #1905 from Roasbeef/taptweak-mutation
...
txscript: modify TweakTaprootPrivKey to operate on private key copy
2022-11-08 22:25:00 +01:00
Oliver Gugger
63835cbe0b
Merge pull request #1916 from ffranr/add_gettxfee
...
btcutil/psbt: add method Packet.GetTxFee
2022-11-07 17:58:00 +01:00
Robyn
586729ca07
btcutil/psbt: add method Packet.GetTxFee
...
This commit adds a GetTxFee method to the psbt.Packet structure. The method returns the PSBT's fee.
2022-11-04 14:49:51 +00:00
sputn1ck
d99a169663
btcec/schnorr/musig2: add pubkey check to Sign
...
This commit adds a check that the public key of the private key
that is passed to the Sign function is included in the slice of public
keys.
Reference ea47d52e2d
2022-11-03 23:02:12 +01:00
sputn1ck
c5b3ed699f
btcec/schnorr/musig2: add public key to secnonce
...
This commit adds the public key to the sec nonce and ensures that we're
signing with the right key.
Reference: 0e3cfaa526
2022-11-03 23:02:06 +01:00
sputn1ck
f6279eabbe
btcec/schnorr/musig2: add pk option to NonceGen
...
This commit adds the pk option to NonceGen and makes it mandatory.
Reference: a89f8578e1
2022-11-03 23:01:41 +01:00
Oliver Gugger
1d767de1c7
Merge pull request #1908 from guggero/v0-23-3-branch
...
build: bump version to v0.23.3
2022-11-01 13:12:08 +01:00
Oliver Gugger
4f0ae90c88
build: bump version to v0.23.3
2022-11-01 13:02:18 +01:00
Oliver Gugger
acb731389d
Merge pull request #1907 from ellemouton/bumpWithnessItemPerInputMax
...
wire: increase max witness items per input
2022-11-01 13:00:55 +01:00
Elle Mouton
6a03eb372b
wire: increase max witness items per input
2022-11-01 13:43:52 +02:00
Olaoluwa Osuntokun
fc47c31b45
txscript: modify TweakTaprootPrivKey to operate on private key copy
...
In this commit, we fix an inadvertent mutation bug that would at times
cause the private key passed into the tweak function to actually be
*modified* in place.
We fix this by accepting the value instead of a pointer. The actual
private key struct itself contains no pointer fields, so this is
effectively a deep copy via dereference.
We also add a new unit test that fails w/o this change, to show that the
private key was indeed being modified.
2022-10-27 16:19:56 -07:00
Olaoluwa Osuntokun
2cc19083f2
Merge pull request #1894 from Roasbeef/musig2-1-0
...
btcec/schnorr/musig2: update to musig 1.0.0
2022-10-25 16:52:33 -07:00
Olaoluwa Osuntokun
eef9fbc5c9
btcec/schnorr/musig2: always pass in priv key for early nonce gen
...
This helps mitigate an issue discovered in musig2 under certain
scenarios:
https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2022-October/021000.html .
2022-10-25 16:34:17 -07:00
Olaoluwa Osuntokun
323871ff16
btcec/musig2: remove old canned test vector code
2022-10-20 17:58:04 -07:00
Olaoluwa Osuntokun
5d895bbea5
btcec/schnorr/musig2: add sig combine test vectors
2022-10-20 17:58:00 -07:00
Olaoluwa Osuntokun
ca28a98425
btcec/schnorr/musig2: add sig verify+sign test vectors
2022-10-20 17:57:57 -07:00
Olaoluwa Osuntokun
cc12483f0a
btcec/schnorr/musig2: add key tweak sign test vectors
2022-10-20 17:57:55 -07:00
Olaoluwa Osuntokun
4e55273815
btcec/schnorr/musig2: update key agg test vectors to musig2 1.0.0
2022-10-20 17:57:52 -07:00
Olaoluwa Osuntokun
3d9f4484df
btcec/schnorr/musig: update nonce test vectors to musig2 1.0.0
2022-10-20 17:57:50 -07:00
Olaoluwa Osuntokun
1567f20055
btcec/schnorr/musig2: update to musig 1.0.0
...
The major change in musig 1.0.0 is that plain public keys are used as
input to key aggregation.
2022-10-20 17:57:46 -07:00
Olaoluwa Osuntokun
a34e777916
btcec/schnorr/musig2: update musig2 impl to version 0.7.0
...
The two _concrete_ changes between version 0.4.0 (where we are before
this commit), and version 0.7.0 are:
1. Variable length messages are now allowed, this comes with a new 8
byte prefix for the messages.
* Our implementation was already using a `[]byte` for the
message/hash, so no extra API changes are needed here.
2. The serialization for a blank message and a normal message (for
nonce gen) is now distinct. A single byte is added (either 0 or 1)
to indicate if a message was passed into nonce generation.
2022-10-20 17:57:42 -07:00
David Vennik
e563459b72
Fixed ban bug that doesn't print numTxns
...
(cherry picked from commit 11c8d11a26d14a64fe6e412313624b6bfc5b4e2c)
2022-10-10 10:34:58 -04:00
Olaoluwa Osuntokun
6b5418d585
Merge pull request #1898 from Roasbeef/v0-23-2-branch
...
build: bump version to v0.23.2
2022-10-09 18:35:58 -07:00
Olaoluwa Osuntokun
1a4af39ab0
build: bump version to v0.23.2
...
This includes the recent fix to the wire witness wire parsing bug.
2022-10-09 18:23:11 -07:00
Olaoluwa Osuntokun
d0aa7473a6
Merge pull request #1896 from Roasbeef/witness-wire-hot-fix
...
wire: remove erroneous witness size check in wire parsing
2022-10-09 18:21:33 -07:00
Olaoluwa Osuntokun
f523d4ccaa
wire: remove erroneous witness size check in wire parsing
...
In this commit, we fix a bug that would cause nodes to be unable to
parse a given block from the wire. The block would be properly accepted
if fed in via other mechanisms.
The issue here is that the old checks for the maximum witness size,
circa segwit v0 where placed in the wire package _as well_ as the tx
engine. This check should only be in the engine, since it's properly
gated by other related scrip validation flags.
The fix itself is simple: limit witnesses only based on the maximum
block size in bytes, or ~4MB.
2022-10-09 18:09:02 -07:00
Tochi Obudulu
38ee9a41c8
build: bump golang base image version to 1.17
...
Image fails to build on 1.16
2022-09-13 09:06:06 -04:00
Victor Shyba
ef4a8d310b
doc: fix Tor hidden service setup link
2022-09-13 09:04:55 -04:00
Olaoluwa Osuntokun
0f49e10006
Merge pull request #1866 from darioush/bump-btcutils-versions
...
Bump btcd version in btcutil package
2022-08-10 17:21:39 -07:00
Olaoluwa Osuntokun
da4b534ed9
Merge pull request #1865 from sputn1ck/musig2_0.3.0
...
MuSig2: Catch up to 0.4.0
2022-08-10 17:20:47 -07:00
sputn1ck
06ce9608aa
btcec/schnorr/musig2: add infinity testvectors
...
This commit adds the testvectors from
20ba03106d
2022-08-09 06:44:42 +02:00
sputn1ck
44eb8c64f8
btcec/schnorr/musig2: Allow infinity nonces
...
This commit updates the musig2 module to allow
infinity nonces, as per Musig2 0.4.0.
2022-08-09 06:44:25 +02:00
sputn1ck
4b2fe9f83e
btcec/schnorr/musig2: Add CombineSig testvectors
...
This commit adds the testvectors from
cdc3520c07
2022-08-04 11:55:19 +02:00
sputn1ck
5e960074ea
btcec/schnorr/musig2: Add PartialSigVerify testvectors
...
Adds testvectors from
ebb6a7454b
and
6788ee5412
2022-08-04 11:51:02 +02:00
sputn1ck
85356e8174
btcec/schnorr/musig2: Throw error on invalid partial sig
2022-08-04 11:49:29 +02:00
sputn1ck
53f47d65f1
btcec/schnorr/musig2: Add Sign test vectors
...
This commit adds the testvectors from
4c06f31daf
to the testcases
2022-08-04 11:49:17 +02:00
sputn1ck
8b59e7aa6b
btcec/schnorr/musig2: Add AggregateNonce testvectors
...
This commit adds the testvectors from
0ec2aefdaa
to the testcases
2022-08-04 11:46:52 +02:00
sputn1ck
1b85a60b6d
btcec/schnorr/musig2: Add AggregateKeys testvectors
...
This commit adds the testvectors from
20f60b0f37
to the testcases
2022-08-04 11:44:25 +02:00