Commit Graph

1893 Commits

Author SHA1 Message Date
aggstam
109ef9a517 src/dht: feature created(lib structs moved from research/dhtd) 2022-07-19 22:21:35 +03:00
aggstam
d95e60af42 src: moved blake3 Hash Encodable/Decodable traits from blockchain/mod.rs to util/serial.rs 2022-07-19 19:32:04 +03:00
aggstam
4d8c0a85c0 src/consensus/protocol_tx: atomic operation added to check for seen txs 2022-07-19 16:49:46 +03:00
parazyd
b797fd6b76 zk/gadget/less_than: Use layouter.namespace in test circuit. 2022-07-19 13:47:56 +02:00
parazyd
e539d254f7 zk/gadget/less_than: More test cases for 64bit. 2022-07-19 10:10:01 +02:00
parazyd
34bae7dc02 zk/gadget: Clean up. 2022-07-19 10:10:01 +02:00
parazyd
9cef0dccb2 zk/gadgets/native_range_check: Add TODO note for strict decompose. 2022-07-19 10:10:01 +02:00
parazyd
c35bed54f2 zk/gadget/less_than: Proper 2^m handling. 2022-07-19 10:10:01 +02:00
Janmajaya Mall
4d64237cb3 zk/gadget/less_than: Fixed less_than chip + tests pass 2022-07-19 10:10:01 +02:00
parazyd
605fb90878 zk/tests: Dump circuit layouts into target/ 2022-07-19 10:10:01 +02:00
parazyd
c221458a03 zk/gadget: 128 and 253-bit tests for native range check. 2022-07-19 10:10:00 +02:00
parazyd
ff85880a6d zk/gadget/native_range_check: Fix copy constraint. 2022-07-19 10:10:00 +02:00
parazyd
c192d0a26c zk/gadget/native_range_check: Test copy constraints. 2022-07-19 10:10:00 +02:00
parazyd
8b3c3e2adf zk/gadget: Clean up range_check into native_range_check. 2022-07-19 10:10:00 +02:00
Janmajaya Mall
68a4f1d9f0 zk/gadget/less_than: adds range_check sub-chip (tests still fail) 2022-07-19 10:10:00 +02:00
parazyd
308c2da124 zk/gadget/less_than: Tests and circuit layout. 2022-07-19 10:10:00 +02:00
parazyd
32ece50229 zk/gadget/range_check: Test 64 bits, 128 bits, and 253 bits. 2022-07-19 10:10:00 +02:00
parazyd
8615ff2241 zk/gadget/range_check: Set k=5 and test illegal cases for 64 bits. 2022-07-19 10:10:00 +02:00
parazyd
804ddc755e lib: Temporarily disable wasm-runtime. 2022-07-19 10:10:00 +02:00
Janmajaya Mall
6a4aaa2297 zk/gadget/range_check: Fixed chunk to value mapping of decomposed_chunks 2022-07-19 10:10:00 +02:00
parazyd
16d665cc72 zk/gadget/range_check: More test units and better assertion. 2022-07-19 10:10:00 +02:00
Janmajaya Mall
41a863e713 zk/less_than: added test_a_b_128_bits 2022-07-19 10:09:59 +02:00
Janmajaya Mall
fe5a032c60 zk/range_check: Fixed test_64_bit 2022-07-19 10:09:59 +02:00
parazyd
e0b4cba1f4 zk/range_check: Fix test compilation. 2022-07-19 10:09:59 +02:00
Janmajaya Mall
94d6416eb1 src/zk/gadget: added instruction functions for less_than gadget 2022-07-19 10:09:59 +02:00
Janmajaya Mall
57273be2cd src/zk/gadget: added configure for less_than gadget 2022-07-19 10:09:59 +02:00
Janmajaya Mall
dfc7d71940 added 64 bit test for range_check gadget 2022-07-19 10:09:59 +02:00
Janmajaya Mall
7a4016867a fixed mutability in decompose_value fn 2022-07-19 10:09:59 +02:00
Janmajaya Mall
e51ba71306 added fn in RangeCheckChip 2022-07-19 10:09:59 +02:00
Janmajaya Mall
95f12fde62 added configure for RangeCheckChip 2022-07-19 10:09:59 +02:00
aggstam
b64edcbe41 src/consensus/proto: removed redundant continue 2022-07-19 00:09:27 +03:00
ghassmo
e00bc7d967 minor fix to log messages in tau and net 2022-07-16 17:21:14 +04:00
Dastan-glitch
f98063fa73 Revert "raft: remove redundant code"
This reverts commit b64f3f379d.
2022-07-10 23:54:59 +00:00
Dastan-glitch
b64f3f379d raft: remove redundant code 2022-07-10 23:38:34 +00:00
ghassmo
7abeea28b4 tau: remove old codes 2022-07-10 22:27:34 +03:00
ghassmo
cc823f1a65 util/time: remove the name of day when printing date 2022-07-10 22:25:54 +03:00
ghassmo
4203adc403 raft: increase sync attempts 2022-07-10 21:28:14 +03:00
ghassmo
eb101f22e2 bin/tau: catching errors and exit signals 2022-07-10 16:20:39 +03:00
ghassmo
6675cc2262 raft: more robust syncing process 2022-07-10 01:40:22 +03:00
lunar-mining
2a7ece72b0 net: improve some documentation and correct errors 2022-07-09 12:47:20 +02:00
lunar-mining
578e5dc612 net: change timer to 15 mins, name SESSION_OUTBOUND explicitly, add todos 2022-07-09 12:47:20 +02:00
lunar-mining
ac5c97cb76 net: if it's an outbound session + has an external_addr, then:
* start another process in the jobsman
* loop send our addr
* sleep for 20 min
2022-07-09 12:47:19 +02:00
lunar-mining
2f6909ab6a net: create session() function that returns an Arc pointer to session 2022-07-09 12:47:19 +02:00
lunar-mining
967f9ec770 net: channel hosts a pointer to Session
solved a bug which warned Session could not be made into an object.

documented here: https://github.com/rust-lang/rust/issues/51443
and here: https://stackoverflow.com/questions/72838225/rust-trait-warning-method-references-the-self-type-in-its-where-clause
2022-07-09 12:47:19 +02:00
lunar-mining
ab2a5af40b net: error[E0038]: Weak pointer to parent trait from child
Provokes the following error:

 error[E0038]: the trait `Session` cannot be made into an object
  --> src/net/channel.rs:72:14
   |
72 |     session: SessionWeakPtr,
   |              ^^^^^^^^^^^^^^ `Session` cannot be made into an object
   |
note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
  --> src/net/session/mod.rs:79:14
   |
76 | pub trait Session: Sync {
   |           ------- this trait cannot be made into an object...
...
79 |     async fn register_channel(
   |              ^^^^^^^^^^^^^^^^ ...because associated function `register_channel` has no `self` parameter
help: consider turning `register_channel` into a method by giving it a `&self` argument
   |
79 |     async fn register_channel(&self,
   |                               ++++++
help: alternatively, consider constraining `register_channel` so it does not apply to trait objects
   |
82 |         executor: Arc<Executor<'_, Self: Sized>>,
   |                                  +++++++++++++
-----------------------
2022-07-09 12:47:19 +02:00
parazyd
0063271679 Update project dependencies. 2022-07-03 15:26:35 +02:00
parazyd
b436d659ba ircd: Implement IRC TLS listener. 2022-07-03 14:29:30 +02:00
ghassmo
9fdc11bd70 raft: add sent messages to seen_msgs vector 2022-07-02 18:16:22 +03:00
lunar-mining
b2734bf42b net: comment out unimplemented code 2022-07-01 11:01:22 +02:00
lunar-mining
af68236b8a net: rename selector_id() to type_id() 2022-07-01 10:59:29 +02:00