1
0
Fork 0
mirror of https://github.com/bitcoin/bips.git synced 2025-03-04 11:08:05 +01:00
Commit graph

3406 commits

Author SHA1 Message Date
James O'Beirne
327025b369 fixup! misc. feedback from AJ and twhit223 2024-01-03 16:11:50 -05:00
James O'Beirne
c2cec65937 fixup! rename n-pushes -> push-count 2024-01-03 15:33:50 -05:00
James O'Beirne
eb3fb727c3 BIP-0345: restrict trigger output to v1 witness
Co-authored-by: Antoine Poinsot <darosior@protonmail.com>
2023-10-09 14:09:01 -04:00
James O'Beirne
014b832e07 BIP-345: add sigops cost of 60 2023-09-29 09:19:15 -04:00
James O'Beirne
4aae726be9 fixup! fix off-by-one and revault-idx malleability
Co-authored-by: sanket1729 <sanket1729@gmail.com>
2023-09-01 10:12:38 -04:00
James O'Beirne
e2ff23b3f0 fiuxp! allow larger trigger/recovery output amounts
Allow trigger/recovery output nValues to exceed the amounts supplied by
constituent vault inputs. This allows future compatibility for e.g.
trigger collateral.
2023-06-28 12:06:35 -04:00
James O'Beirne
cb50446a65 fixup! add <revault-amount> and clarify deferred checks
This change makes the amount being revaulted (if any) explicit to avoid
issues surfaced by AJ Towns (e.g. multiple compatible vault inputs
duplicating triggers and revaults to confuse the old deferred check
logic).

Pseudocode is also provided for the deferred checks, and their inline
validation description has been changed to be more faithful to the
implementation - we make mention of queueing deferred checks, and then
later describe the algorithm used to aggregate and perform them.
2023-06-28 12:03:58 -04:00
James O'Beirne
7112f308b3 minor wording updates 2023-04-17 09:40:57 -04:00
Greg Sanders
0b0674c546 few fixups 2023-03-28 15:08:03 -04:00
Greg Sanders
29345a10f0 Be explicit about tapleaf version forwarding 2023-03-28 12:42:48 -04:00
Greg Sanders
8bf5b869e5 remove vestigial reference in applications section 2023-03-28 12:39:03 -04:00
Greg Sanders
8bad703ed8 why n-pushes 2023-03-28 12:33:37 -04:00
Greg Sanders
e08f6ad4df few word changes 2023-03-28 12:13:45 -04:00
James O'Beirne
a6452eaf1a fixup! add TLUV references 2023-03-27 09:57:13 -04:00
James O'Beirne
a0b433471d fixup! rename vaults BIP 2023-03-27 09:57:13 -04:00
James O'Beirne
47a25d1540 fixup! FLUification
Adds AJ and Greg as co-authors
2023-03-27 09:56:57 -04:00
James O'Beirne
915ede327a fixup! add Kalle reference 2023-03-23 13:24:17 -04:00
James O'Beirne
997e4f4f0e Update bip-vaults.mediawiki
Co-authored-by: kallewoof <kalle.alm@gmail.com>
2023-03-23 13:24:17 -04:00
Jameson Lopp
f30fb52bbb date fix
copypasta FTW
2023-03-23 13:24:17 -04:00
James O'Beirne
6dc766d937 vaults: add Corey Haddad reference 2023-03-23 13:24:17 -04:00
James O'Beirne
4f03aaea2c vaults: add backwards compatibility 2023-03-23 13:24:17 -04:00
Jameson Lopp
24241ee26b
typos / gramma cleanup 2023-02-22 07:27:03 -06:00
James O'Beirne
6ff8efd3d1 vaults: blank deployment 2023-02-21 16:08:23 -05:00
James O'Beirne
0204c9a1f9 vaults: make recovery output structure a matter of policy
Since constraints on unauthorized recovery transaction structure exist
only to avoid pinning, make them a matter of policy and not consensus.
2023-02-21 11:59:36 -05:00
James O'Beirne
58cbc4e9b1 vaults: various feedback
Thanks to Vojtěch Strnad for most of this.
2023-02-21 11:59:31 -05:00
James O'Beirne
c589490f98 vaults: make recovery transaction explicit
Instead of implicitly detecting whether or not an OP_VAULT/OP_UNVAULT
spend is a recovery spend by scanning outputs for matching
scriptPubKeys, explicitly indicate recoveries by requiring a witness
stack element that is either -1 in the case of no recovery OR
corresponds to an output index that is the recovery output.
2023-02-15 13:56:22 -05:00
James O'Beirne
9124f2940e fixup! image clarifications 2023-02-14 13:10:03 -05:00
James O'Beirne
476aea3107 fixup! typos and clarification
from feedback by Gleb and Joost.
2023-02-14 12:50:05 -05:00
James O'Beirne
b30e37c8a2 Add OP_VAULT BIP 2023-02-13 18:58:59 -05:00
kallewoof
1a632a3875
Merge pull request #1405 from sipa/202301_bip324_update
BIP324 reference code / test vector improvements
2023-02-03 12:59:37 +09:00
kallewoof
f277d42e0d
Merge pull request #1407 from instagibbs/patch-17
BIP174: s/uiht/uint/s
2023-01-18 10:48:23 +09:00
Gregory Sanders
7e0c47e1f6
uiht 2023-01-17 14:14:54 -05:00
craigraw
41490b74f7
Wallet Labels Export Format (#1383)
* initial commit

* fix formatting

* add importing section

* clarify csv preference

* tabs to spaces

* add rationale and references, require that rfc4180 is followed

* fix reference links

* show reference links as list

* use self describing json lines format instead of csv

* add bip number and accommodate 65 byte pubkeys

* fix comments uri
2023-01-17 08:40:46 +09:00
Pieter Wuille
cc177ab7bc BIP324 updates
Includes:
* Simpler (but equivalent) ElligatorSwift encoding function & spec
* Improved test vectors
* Test vector generation code
* Code for converting test vectors for libsecp256k1 code.
* Code for running test vectors against SwiftEC paper authors' code.
* Miscellaneous reference code improvements (style, comments).
2023-01-11 17:39:56 -05:00
kallewoof
2361582f0b
Merge pull request #1378 from dhruv/bip324
Add BIP324: v2 P2P Transport Protocol
2023-01-05 08:44:56 +09:00
kallewoof
00902d17d9
Merge pull request #1350 from jonasnick/bip-0341-signingfix
BIP 341: allow taproot_sign_key with no script tree
2023-01-05 08:43:37 +09:00
dhruv
32af2c9dc2 Add BIP324 2023-01-04 08:46:46 -08:00
Jonas Nick
3d243d8a49
BIP 341: allow taproot_sign_key with no script tree
In contrast to taproot_output_script, taproot_sign_key was not able to deal with
a script_tree that is None. This commit fixes taproot_sign_key such that it can
sign for such outputs.

This commit avoids changing the behavior of the functions except
taproot_sign_key at the cost of having some code duplication. Alternatively, one
could let taproot_tree_helper deal with a None script_tree directly.
2023-01-04 14:31:44 +00:00
kallewoof
79bb53dde5
Merge pull request #1379 from DariusParvin/bip341-aux_rand
BIP341: add aux_rand argument to taproot_sign_key
2023-01-04 10:55:06 +09:00
kallewoof
c6725580c5
Merge pull request #1386 from jonasnick/fix-taproot-tweak-pubkey
BIP 341: Fix taproot_tweak_pubkey
2023-01-04 10:33:15 +09:00
Darius Parvin
e24f685971 BIP341: add bip340_aux_rand argument to taproot_sign_key 2022-11-03 21:25:39 -07:00
Luke Dashjr
15c8203eb3
Merge pull request #1376 from vasild/bip330_sendtxrcncl_smplfctn
BIP330: drop redundant booleans from the sendtxrcncl message
2022-10-28 13:04:33 +00:00
Jonas Nick
be340277fc
BIP 341: Fix taproot_tweak_pubkey
`lift_x` returns `None` if the input integer is not an X coordinate on the curve
to indicate failure. `point_add`, on the other hand, interprets `None` as the
point at infinity. Therefore, without this commit, if the internal `pubkey` is
not a valid X coordinate, the function will not fail, which contradicts the
specification in the "Script validation rules section". Instead, it sets `Q` to
`t*G`.
2022-10-24 20:33:05 +00:00
Vasil Dimov
8b107a0af6
BIP330: drop redundant booleans from the sendtxrcncl message
The reconciliation protocol assumes using one role consistently. Since
it is irrelevant which one is which, we can imply that the initiator of
the P2P connection will assume the role of reconciliation initiator.

This protocol simplification will seep into the implementation.
2022-10-06 13:56:53 +02:00
Luke Dashjr
6545b81022
Merge pull request #1351 from russeree/bip12-Implementation-url-fix
bip-0011/12 - fixed broken implementation url
2022-09-30 23:56:57 +00:00
Luke Dashjr
9d1f7954d8
Merge pull request #724 from jeffrade/BIP70_url_fix
[Trivial] BIP-70 Fixing sipa's gist proposal url
2022-09-30 23:56:15 +00:00
russeree
61d6631e5b Update BIP 11/12 OP_EVAL implementation commit url 2022-09-29 16:57:40 -07:00
Luke Dashjr
e76137c32d
Merge pull request #1370 from naumenkogs/bip_0330_updates
Changes/clarifications to bip-330.
2022-09-29 22:58:21 +00:00
Luke Dashjr
194ee7320b
Merge pull request #1369 from DariusParvin/bip341
BIP 341: add missing conversions between bytes and int
2022-09-29 22:57:27 +00:00
Luke Dashjr
40aef27767
Merge pull request #1367 from ajtowns/202209-sighash-vs-342
BIP118: simplify explanation of signature message
2022-09-29 22:41:13 +00:00