Repository navigation
Conversation
|
cc BIP authors @andrewtoth, @achow101, @josibake for feedback |
bip-0375/deps/dleq.py was a copy of bip-0374/reference.py and could go out of sync. Replace the copy with a loader so the validator always uses the current BIP-374 reference.py.
7a95e2a to
503119d
Compare
|
Rebased following merge of #2286. |
|
tACK 503119d |
|
I suggest also dropping At 503119d that copy is no longer used. |
After the dleq.py loader, the local secp256k1lab copy is unused. Point test_runner.py at bip-0374/secp256k1lab/src (with existence check), remove the README entry, and delete the vendored tree. Tests still pass. Suggested by fametrano in bitcoin#2309. Co-authored-by: Ferdinando Ametrano <ferdinando@ametrano.net>
|
@fametrano good suggestion; done. |
|
Per an offline suggestion from @macgyver13, added a note in 374 to indicate 375 is downstream and should be tested before any functional changes to 374's |
fametrano
left a comment
There was a problem hiding this comment.
ACK 8f9b1f3
The removed bip-0375/deps/secp256k1lab is the same git tree as bip-0374/secp256k1lab on master (f9ecfa0a), and deps/dleq.py already got BIP 374's copy through bip-0374/reference.py, so pointing test_runner.py there leaves the validator on the same code. Nothing else in the repository refers to the removed copy, and the note added to BIP 374 describes the dependency as it now is. On this head all 43 BIP 375 tests pass.
|
As jonatack described above, I suggested the note in BIP-374 after reconsidering the responsibility this change places on its authors. @theStack @RubenSomsen @andrewtoth, are you OK with BIP-374 asking contributors to run BIP-375's tests before functional changes to If so, I support 8f9b1f3. |
bip-0375/deps/dleq.pycopied thedleq_*functions frombip-0374/reference.py, depends on it, and could go out of sync (#2262, #2304). Replace it with a loader so the validator always uses the currentbip-0374/reference.py.After that change, the local
bip-0375/deps/secp256k1labcopy is unused. Drop the vendored tree, remove its README entry, and pointtest_runner.pyatbip-0374/secp256k1lab/srcwith an existence check.This leaves a single source of truth for both the DLEQ functions and the shared secp256k1lab dependency.
Added a note in BIP 374 to indicate 375 is downstream and should be tested before any functional changes to 374's
reference.pyor its secp256k1lab subtree.To run the tests: