tomFlowee
1ab4d88993
Split version.h
...
Version.h held mostly stuff for protocol.h, which is a hub-specific file.
The only thing that we actually use is the PROTOCOL_VERSION in our code
and as such that one moved to the interfaces dir.
2022-07-06 22:50:53 +02:00
tomFlowee
05bbba3cb3
Rename class CKey -> PrivateKey
2022-07-06 22:12:33 +02:00
tomFlowee
cca8a885bc
Fix coding style issues
...
Follow the coding styleguide and make the methods lowercase on CKey
2022-05-11 13:46:15 +02:00
tomFlowee
6ff0e7c0de
[Refactor] FastBlock -> Block
2021-11-02 10:18:24 +01:00
tomFlowee
f9a0050220
Update TransactionBuilder / signature type handling
...
The choice between Schnorr and ECDSA signatures is now per input instead
of once choice for the entire transaction.
2021-05-04 16:57:55 +02:00
tomFlowee
76fde4a94c
Make the test go back to ECDSA style signatures.
2021-04-19 17:07:02 +02:00
tomFlowee
fcb648916d
Make pubkey follow coding styleguide
2021-04-19 14:48:18 +02:00
tomFlowee
235df9c5f0
Add loading of DSProof from a constbuffer.
2021-01-20 21:35:20 +01:00
tomFlowee
3fe98afce9
Minor cleanup
...
This removes some unused includes from common headers and dead code
from some C++ files.
2021-01-05 22:05:25 +01:00
TomZ
54329bf9e4
Add new DSP test to check for stupid usage :)
2020-09-30 10:27:51 +02:00
TomZ
14a938d54c
Add speed test
...
To make sure that a pair of really large transactions being used
to create a DSP doesn't cause a blocking thread, this runs a
benchmark on a pair of transactions with 300 inputs each, causing
45k comparisons to be made.
On my laptop this results in 0.6 msecs for this creation of the DSP.
2020-09-29 20:35:41 +02:00
TomZ
fdaa6e4a81
Import some improvements from Calin.
...
* API docs
* Fix possible race condition in addOrphan()
* Reject proofs that violate simple constraints
* clear up possible confusing API (first/double spender getters).
2020-09-29 17:33:20 +02:00
TomZ
9429baf3dc
Increase Tx init version
...
We don't actually use any new features, but users of our libraries might,
so just default to the new version.
2020-06-19 16:39:59 +02:00
TomZ
6e6f43a0d4
Remember peerID in DSP-orphanage
...
So when we adopt one proof, and it turns out to be faulty, we can
punish the peer.
2020-01-12 18:06:23 +01:00
TomZ
d6a2488b5c
Cleanup some DSP issues
...
remove the need for 'flags' as this code block doesn't use the
current flags at all.
Also validate proofs that were restored from orphan cache.
2020-01-12 17:10:29 +01:00
TomZ
09a251c1df
Fix test stability.
2019-10-15 19:23:57 +02:00
TomZ
40f2e67db8
Fix removing of proof after tx removal
...
Including new unit test.
2019-09-04 14:12:38 +02:00
TomZ
1dbb23224c
Add unit tests for double spend proof
2019-09-02 23:59:52 +02:00