Commit Graph

2505 Commits

Author SHA1 Message Date
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
mohab
ec2ddc2a50 ignore .vscode 2022-01-28 11:04:44 +02:00
mohab
e4e5237c2b added proposed block broadcast missing signature 2022-01-27 20:44:51 +02:00
aggstam
7f1a2f4b14 section 3.4 added 2022-01-26 22:50:16 +02:00
parazyd
c486f3ce44 book/zkas/sapling: Include only main Rust code parts. 2022-01-26 12:36:19 +01:00
parazyd
fedd378510 zk/vm: Use a macro to generate a match statement for PoseidonHash length. 2022-01-26 12:09:14 +01:00
parazyd
f30d5ec0c6 crypto/proof: Fix test unit. 2022-01-26 11:58:23 +01:00
parazyd
c65a3845a9 example/halo2: R1CS gate. 2022-01-26 11:26:04 +01:00
parazyd
52355333b3 node/service: Silence clippy warning. 2022-01-26 10:13:24 +01:00
parazyd
f8ab5ef5e3 Move mint and burn Rust examples into proof/ to complement zkas code. 2022-01-26 10:11:13 +01:00
parazyd
287302f4ec make fix 2022-01-26 03:06:29 +01:00
parazyd
7e76a669cc zk/vm: Simplify some enums and properly witness some remaining types. 2022-01-26 02:59:01 +01:00
parazyd
86d9aa81b2 zk/vm: Proper separation for prover and verifier.
The witnesses the prover passes in should be correct, and the witnesses
that the verifier passes in should have the same types, and be None.

We'll see later how this will affect more complex circuits, but we
hope it won't bite us in the ass.
2022-01-26 01:29:10 +01:00
parazyd
ed1ed62936 Format IDEOLOGY.md to 72 columns. 2022-01-26 00:06:13 +01:00
parazyd
9774fda80d Update .gitignore files. 2022-01-25 23:59:57 +01:00
parazyd
7e465e93f9 example/halo2: Remove anonvote.rs 2022-01-25 23:57:59 +01:00