Commit Graph

2520 Commits

Author SHA1 Message Date
parazyd
1df6c3db7f crypto/constants: Update with latest Orchard constants. 2022-02-07 21:20:23 +01:00
parazyd
74841da137 Fix builds and tests. 2022-02-06 20:51:04 +01:00
parazyd
edb09db16d bin/map: Comment out unavailable module. 2022-02-06 20:38:40 +01:00
Dastan-glitch
43ab9ecc1f Filtering specific targets in logging system 2022-02-06 20:37:04 +01:00
mohab
22b0bd6e66 Merge branch 'master' of https://github.com/darkrenaissance/darkfi 2022-02-06 14:45:56 +02:00
mohab
7b8eb7d16d [Ouroboros] implemented basic blockchain script/research/PoS-blockchain/ouroboros 2022-02-06 14:44:51 +02:00
lunar-mining
3f8768ee69 map: cleanup 2022-02-06 08:58:42 +01:00
lunar-mining
1800aa1447 map: wrapped Model objects in a Mutex 2022-02-06 08:57:37 +01:00
lunar-mining
aa80910d05 map: renamed run_app to render 2022-02-06 08:34:42 +01:00
lunar-mining
cc895b2580 map: made View data structure and cleaned up 2022-02-06 08:14:51 +01:00
lunar-mining
7244fb850a map: clean up 2022-02-05 22:40:41 +01:00
lunar-mining
714552c660 map: fixed rename error on run_app 2022-02-05 22:40:41 +01:00
narodnik
a64820132a cleanup ProtocolRegistry 2022-02-05 22:28:32 +01:00
parazyd
cabbe3c8ea zkas: Unify error functions into an error emitter. 2022-02-05 20:20:15 +01:00
lunar-mining
f63783baae map: moved id_list, info_list, node_info into model.rs 2022-02-05 11:55:24 +01:00
lunar-mining
05a8e04bc8 map: renamed App to Model 2022-02-05 11:55:24 +01:00
narodnik
cd74b6aa0b from now on all subscribers in protocols must be created in the constructor. move subscribers in ProtocolPing to the constructor. 2022-02-05 11:04:19 +01:00
narodnik
7343c0be83 delete old new() functions and rename new2() to new() 2022-02-05 10:51:46 +01:00
narodnik
7a8a10aaac add protocol names 2022-02-05 10:49:12 +01:00
lunar-mining
c51187dead map: renamed listen() to run_rpc() 2022-02-05 10:48:06 +01:00
lunar-mining
30b9f6ff75 Merge branch 'master' of github.com:darkrenaissance/darkfi 2022-02-05 10:47:02 +01:00
lunar-mining
828535a812 map: moved NodeInfo to own crate 2022-02-05 10:45:07 +01:00
lunar-mining
89371962fe map: backtracked and removed Mutex due to async rendering error
ui() needs a mutable reference or Mutex but cannot be async due to
synchronous capture:

   terminal.draw(|f| {
       ui::ui(f, app.clone());
   })?;
2022-02-05 10:40:42 +01:00
narodnik
3b914bfe36 Switch IRCd to using net protocol registry 2022-02-05 10:15:01 +01:00
narodnik
a9a714aa73 net: when registering protocols, use a bitwise selector to specify
sessions it will be activated for.

    registry.register(SESSION_INBOUND | SESSION_OUTBOUND, ProtocolFoo::new)

The constructors accept a channel and p2p instance.
For an example of passing additional arguments, you have to use an async
closure:
    let foo2 = foo.clone();

    //

    registry.register(
        !net::SESSION_SEED,
        move |channel, p2p| {
            let foo = foo2.clone();
            async move {
                ProtocolFoo::new(channel, p2p, foo).await
            }
        }).await;
2022-02-05 09:56:34 +01:00
lunar-mining
220e4c9adc map: wrapped App in a Mutex and initialized App objects in main() 2022-02-05 09:52:41 +01:00
narodnik
f4026bf8a2 remove uneeded 'static declarations 2022-02-05 07:46:40 +01:00
narodnik
6fb1304c00 cargo fmt 2022-02-03 08:26:55 +01:00
narodnik
eb23a3cda5 remove unecessary plurals: protocols -> protocol, sessions -> session, messages -> message 2022-02-03 08:23:15 +01:00
narodnik
d1d184c0ea Add a protocol registry which properly handles creating the protocols in
a suspended sleep state, then activating them once the channel is
operating.
2022-02-03 08:11:42 +01:00
lunar-mining
7c84dcb8f8 map: made NodeInfo seperate crate 2022-02-02 12:00:34 +01:00
lunar-mining
32c44c0439 map: changed node info/id to list across project 2022-02-02 11:53:23 +01:00
lunar-mining
391a22593c map: fixed import errors 2022-02-02 11:50:38 +01:00
lunar-mining
a52f61cb64 map: renamed id/info list files 2022-02-02 11:40:29 +01:00
lunar-mining
23a692378c map: renamed Info/IdPanel to Info/IdList 2022-02-02 11:37:09 +01:00
lunar-mining
533ee4a63c map: renamed NodeInfoView and NodeIdList to InfoPanel and IdPanel 2022-02-02 10:59:19 +01:00
lunar-mining
0f07155950 map: cleaned up start and poll functions 2022-02-02 10:32:14 +01:00
lunar-mining
fc6dad30ad map: wrapped App in Mutex 2022-02-02 09:13:59 +01:00
lunar-mining
a04660c7b3 map: prepared App for non-initialized values 2022-02-02 09:03:20 +01:00
lunar-mining
c32b56d5ad map: removed redudant async function on call in start() 2022-02-02 09:02:16 +01:00
parazyd
73e34b339e Make crypto feature depend on zkas. 2022-01-31 10:57:54 +01:00
parazyd
46985baca5 Fix VM tests. 2022-01-31 10:53:50 +01:00
Dastan-glitch
5ff0b12de3 book: fixing url (#57) 2022-01-31 10:41:02 +01:00
parazyd
fdb11f1fad tests: Implement variable logging in zkas VM examples. 2022-01-31 09:31:45 +01:00
parazyd
fa93009a57 Remove zkvm feature and compile it directly with crypto feature. 2022-01-31 09:31:45 +01:00
aggstam
59ac25a54e finalization logic added 2022-01-30 22:59:11 +02:00
mohab
78f2f3be13 separate ouroboros from streamlet 2022-01-30 21:29:06 +02:00
mohab
0b24171d26 update protocol with vrf 2022-01-29 19:38:45 +02:00
mohab
3bf1cc4a59 added VRF(Verifiable Random Function) 2022-01-29 13:34:22 +02:00
mohab
9ddd8cb4a1 unstage .vscode 2022-01-28 11:11:01 +02:00