Commit Graph

6857 Commits

Author SHA1 Message Date
parazyd
f6699efea9 event-graph: Flush sled on prune task stop. 2023-09-08 15:59:04 +02:00
ertosns
08ab93f39f [research/mpc] mpc over elliptic curve 2023-09-08 16:42:36 +03:00
narodnik
f3c604acc1 system/condvar: add illustrative comments to explain how async/await works in rust 2023-09-08 13:58:56 +02:00
parazyd
57f0896fb2 event-graph: Improve parent fetching, and improve tests. 2023-09-08 13:55:47 +02:00
x
2abb695856 book: disable content max-width so page contents uses my full screen width 2023-09-08 13:18:15 +02:00
lunar-mining
39d27645b2 script/dnet: get async queue working 2023-09-08 11:19:08 +02:00
parazyd
8a40af693f event-graph: Clean up the tests a little bit, they need to be more serious. 2023-09-07 20:16:39 +02:00
parazyd
382604342e event-graph: Sprinkle some logs around the code. 2023-09-07 19:29:58 +02:00
aggstam
0320a6ce02 contrib/docker: riscv builder added(highly experimental) 2023-09-07 19:07:51 +03:00
parazyd
cf0776caf0 event-graph: Implement DAG pruning background task. 2023-09-07 14:53:43 +02:00
parazyd
c041aea075 event-graph: Add a StoppableTask for DAG pruning. 2023-09-07 14:53:43 +02:00
parazyd
a81f8f096d event-graph: Find and fill the unreferenced tips on EventGraph::new() 2023-09-07 14:53:43 +02:00
parazyd
b184cfb5b8 event-graph: Use u64 instead of the Timestamp wrapper. 2023-09-07 14:53:43 +02:00
lunar-mining
020b3899cc dnet/script: cleanup, create model and subscribe() 2023-09-07 14:05:44 +02:00
parazyd
215855335f event-graph: Implement deterministic genesis event creation with variable rotation time. 2023-09-07 10:23:56 +02:00
Dastan-glitch
cb99fb3302 darkfid2/harness: set inbound_connection to fix hanging test 2023-09-07 04:19:46 +03:00
ertosns
d4895ddd37 [research/mpc] spdz in sage 2023-09-07 02:36:29 +03:00
parazyd
3a1b3c75be serial: Rework encode_payload_test 2023-09-06 17:48:53 +02:00
parazyd
7015af9d7c event-graph: Make DAG sorting more deterministic. 2023-09-06 15:22:13 +02:00
parazyd
5ac3af091c event-graph: Add TODO notes on implementing pruning and syncing. 2023-09-06 14:19:52 +02:00
parazyd
c00e29350b event-graph: Add placeholders for TipReq and TipRep messages 2023-09-06 14:19:52 +02:00
parazyd
e7fb3bd370 event-graph: Move Event to a separate module 2023-09-06 14:19:52 +02:00
parazyd
fab0ba66be event-graph: More proper new event validation. 2023-09-06 14:19:51 +02:00
Bob Summerwill
bc5e756770 Fixed for broken "make install" following recent refactorings (#211)
* Fixed for broken "make install" following recent refactorings.  A mixture of typos and irregular nesting for genev executables.

* Same change required for tau-cli and taud.

* Fixed accidental "echo" prefix which I had been debugging with.  This PR will need squashing, of course.
2023-09-06 10:58:39 +00:00
bobsummerwill
b41462d323 Added sqllite3 dependency for Debian-based systems. This dependency must have been added with recent functionality updates. 2023-09-06 10:57:53 +00:00
y
e23a5e9ee5 fuzz: Add differential fuzzing for BTC VarInt
DarkFi's VarInt struct is meant to be equivalent to the one used by BTC.
Most of the source code is extremeley similar. This commit adds very
basic tests to ensure equivalence between DarkFi's implementation and
the one used by the BTC crate.
The tests included here are quite basic. Future work can expand on
the testing done on the deserialized values.
This harness can also be used as as guide or template for future
differential fuzzing.
2023-09-06 10:57:28 +00:00
greptile
8a806b2cfc fuzz: improve docs for memory settings (#208)
* fuzz: improve docs for memory settings

* wording improvement

* Add instructions for more optimal fuzzing

---------

Co-authored-by: y <y>
2023-09-06 10:56:51 +00:00
y
a6ef7c64d2 chore: fix typo 2023-09-06 10:56:24 +00:00
parazyd
839f15721d event-graph: Alternative DAG WIP 2023-09-06 12:54:37 +02:00
parazyd
68a28200c8 serial: Implement generic fixed-size array encoding and decoding. 2023-09-06 12:54:37 +02:00
x
3615c6338f doc: correct small typo 2023-09-06 05:22:56 +02:00
x
0498c226fe doc: key recovery 2023-09-06 05:11:12 +02:00
x
546e5a3c46 darkirc: fully working docker image 2023-09-05 16:37:38 +02:00
x
291d3e343e darkirc: add partially working docker image (bug with libunwind unresolved) 2023-09-05 15:06:06 +02:00
parazyd
b96a54bb4f net/p2p: Implement broadcast_to() when we want to broadcast to specific peers. 2023-09-05 14:27:18 +02:00
parazyd
167c5bbc42 research/snowball: Implement fetching parent messages if unavailable. 2023-09-05 12:56:24 +02:00
parazyd
59a7b77aff doc/darkirc: Remove advice about installing system-wide. 2023-09-05 12:36:46 +02:00
parazyd
8fabd66160 research/snowball: Implement simulation of Snowball Avalanche consensus. 2023-09-05 12:24:04 +02:00
Dastan-glitch
7266011ec1 replace ircd with darkirc 2023-09-05 07:07:06 +03:00
Dastan-glitch
de294ad28c book: replace ircd with darkirc and update related docs accordingly 2023-09-05 00:31:29 +03:00
greptile
d9d918b884 fuzz: Add honggfuzz (#206)
* fuzz: Add honggfuzz

- Added honggfuzz in fuzz2/ (alongside libfuzzer in fuzz/)
- Created convenience script for fuzzing binary decoder
- Created a script to convert inputs that cause crashes into arrays so
  that they can be used in unit tests

* Create honggfuzz as subdirectory of fuzz/

- Reorg so that honggfuzz is under fuzz/ instead of in a separate
  sibling-level directory fuzz2
- Update fuzz/README.md to make it explicit that it covers libfuzzer

Note: `cargo fuzz`/libfuzzer seems to insist that its folder exists at
`$REPO/fuzz/` so that's the reason for this particular folder structure.

---------

Co-authored-by: y <y>
2023-09-04 16:42:34 +00:00
lunar-mining
f72d131d62 script/dnet: add config file 2023-09-04 17:50:01 +02:00
lunar-mining
c26ccb0f59 script/dnet: load node rpc info from config 2023-09-04 17:50:01 +02:00
lunar-mining
762a2e6946 script/dnet: add logging 2023-09-04 17:50:01 +02:00
x
cf9d87fd9a serial: add docstring explainer for VarInt 2023-09-04 16:57:46 +02:00
parazyd
73a4b23cf3 bin: Config file cleanup 2023-09-04 14:33:25 +02:00
parazyd
99fd53bbee net/acceptor: Implement an inbound connection limit and its semaphore handler. 2023-09-04 14:13:25 +02:00
x
be70993c22 net/channel: correct and reword docstring comment 2023-09-04 13:33:45 +02:00
lunar-mining
fa43710994 script/dnet: create main.py and fix rpc to work with urwid async pattern 2023-09-04 11:36:55 +02:00
lunar-mining
bf3d7e30cf script/ dnet: add rpc module 2023-09-04 11:36:55 +02:00