Commit Graph

1507 Commits

Author SHA1 Message Date
narodnik
d519c46159 add todo task for net 2022-03-28 23:18:47 +02:00
parazyd
f940f653b2 General clippy cleanups. 2022-03-28 21:03:17 +02:00
mohab
9ab936d960 [script/research/crypsinous] update docs 2022-03-28 19:59:41 +02:00
parazyd
4d8557155c transport/tls: Clean up and rotate certificates every instantiation. 2022-03-28 19:59:41 +02:00
parazyd
fb2d3a1033 net/transport: Implement listeners for TCP and TLS + integration tests. 2022-03-28 19:59:41 +02:00
aggstam
bcf0975d82 jsonrpc: quick results handling 2022-03-28 19:59:40 +02:00
parazyd
6be5dd0777 transport/tls: Remove unused root_store. 2022-03-28 19:59:40 +02:00
parazyd
41ecea27a7 net/transport: Implement TLS client protocol. 2022-03-28 19:59:40 +02:00
parazyd
c417ff9d64 net: Initial transport abstraction concept.
So far, only outbound TCP connections.
2022-03-28 19:59:40 +02:00
ghassmo
4baa8dbe0d util/derive-internal: minor changes 2022-03-28 19:59:40 +02:00
ghassmo
74414f12ab util/serial: impl Decodable/Encodable for PathBuf 2022-03-28 19:59:39 +02:00
aggstam
5d94a1406e src/consensus: updated structures with new serialization derives. 2022-03-28 19:59:39 +02:00
ghassmo
7cecc88a3d util/derive: allow to skip fields with attributes 2022-03-28 19:59:39 +02:00
parazyd
9abf62c980 Miscellaneous cleanups. 2022-03-28 19:59:39 +02:00
aggstam
169f16f34b merged branches 2022-03-28 19:59:38 +02:00
aggstam
5a00ea2c51 validatord: p2p impl for all consensus messages implemented, consensus structures added at src/consensus, WIP: consensus network 2022-03-28 19:59:38 +02:00
parazyd
4b1cb59784 util/derive: Update proc-macro-crate to latest version. 2022-03-28 19:59:38 +02:00
parazyd
44fdddb018 Update some version dependencies for derive crates. 2022-03-28 19:59:38 +02:00
parazyd
bf622aad39 util/serial: Implement derive macros also for unnamed fields. 2022-03-28 19:59:38 +02:00
parazyd
444531cc3d util/serial: Implement SerialEncodable/SerialDecodable derive macros. 2022-03-28 19:59:38 +02:00
parazyd
3447c87dd8 zkas, vm: Implement greater_than opcode for scalar comparison. 2022-03-28 19:59:36 +02:00
parazyd
73d7b4f19b zkas/parser: Use a macro to parse function calls to reduce repetitive code. 2022-03-28 19:59:36 +02:00
parazyd
2de7656f8c zk: Implement GreaterThan chip used for scalar comparison. 2022-03-28 19:59:36 +02:00
parazyd
8ca8406aec zk: Implement EvenBits chip for bit decomposition. 2022-03-28 19:59:36 +02:00
parazyd
5f0c0b05d8 zk: Clean up unused code from arith_chip. 2022-03-28 19:59:36 +02:00
parazyd
87b1cb49ad zk/vm: Implement function for making empty witnesses from ZkBinary.
This is useful for verifiers to enforce behaviour and avoid mismanaging
the witnesses that need to be input into the circuit when verifying
a proof.

Note that the prover still has to manage this by themself. There
might be some way to generalise this, but in practice, when creating
a ZK proof, the prover should always be aware of what witnesses they
should be inputting, so this can be represented procedurally in the
code without the need of an abstraction.
2022-03-19 01:07:49 +01:00
ghassmo
937e06ec4f Replace HashMap with FxHashMap 2022-03-18 23:19:13 +04:00
parazyd
660c6184ca taud: Abstract getting config file to a util function. 2022-03-18 18:26:08 +01:00
parazyd
6aff6643af zkas: Use fxhash as the IndexMap hasher. 2022-03-18 17:44:58 +01:00
parazyd
a44ce744c5 rpc: Implement From for json-rpc enums.
Now instead of wrapping JsonResponse, JsonError, and JsonNotification,
we can just use into().
2022-03-18 11:05:19 +01:00
aggstam
a933d84b66 crypto/keypair.rs: added serde feature guard 2022-03-17 15:10:51 +02:00
aggstam
4c14419fc2 crypto/keypair.rs, schnorr.rs: added serde Serialization/Deserialization 2022-03-17 14:40:28 +02:00
parazyd
36fa2e020c net: Minor cleanups for idiomatic naming. 2022-03-17 13:35:18 +01:00
parazyd
e7d968dfd7 Clean up proof and testdata directories and move into tests dir. 2022-03-17 10:22:48 +01:00
parazyd
92a4410e31 Miscellaneous fixes and 'make fix'. 2022-03-16 22:30:54 +01:00
parazyd
deab6241dd runtime: Implement initial webassembly runtime prototype for smart contracts. 2022-03-16 22:30:53 +01:00
ghassmo
d66d56f268 rpc/jsonrpc: proper way to convert Url to SocketAddr 2022-03-09 20:11:15 +04:00
aggstam
eb2342d424 script/research/streamlet_rust: Block signature encoding modified 2022-03-09 15:22:44 +02:00
ghassmo
bcd4dcc2ee src/net: use to_string from Display trait for OutboundState and P2pState enums 2022-03-08 21:27:30 +04:00
ghassmo
573b858e67 rpc/jsonrpc: minor change 2022-03-08 21:24:16 +04:00
ghassmo
f41ca32e76 src/net: remove warning msg 2022-03-08 20:08:46 +04:00
ghassmo
860b2cf324 move sql to script dir 2022-03-08 19:55:25 +04:00
narodnik
cb1bd6af9c netcode add get_info for inbound session as well 2022-03-07 18:51:33 +01:00
narodnik
d7251ab2dd bugfix: dont remove address when connection is opened for outbound 2022-03-07 18:07:35 +01:00
narodnik
f143e10200 correct typo 2022-03-07 17:53:13 +01:00
narodnik
e3857fd211 add get_info() hooks throughout net code (incomplete) used for introspecting state while p2p network is live. 2022-03-07 15:47:07 +01:00
narodnik
198061daa2 add get_info() hook for p2p and sessions 2022-03-06 21:57:56 +01:00
ghassmo
aad2caa3df clean up & remove warning messages 2022-02-27 00:51:35 +04:00
ghassmo
59261f0d43 rpc/jsonrpc: finish the implementation for supporting tor and nym protocols on client side 2022-02-26 23:24:05 +04:00
ghassmo
7067f6314c rpc/jsonrpc: handle errors properly inside send_request function 2022-02-26 22:05:31 +04:00