Commit Graph

1482 Commits

Author SHA1 Message Date
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
ghassmo
4229b934a5 error: add NoSocks5UrlFound error 2022-02-26 21:46:08 +04:00
ghassmo
a105813fb1 rpc/jsonrpc: WIP implement support for tor and nym protocols through socks5 2022-02-26 21:40:59 +04:00
ghassmo
d82ecbb6bc bin/darkfid: pass socks_url to send_request function 2022-02-26 20:14:05 +04:00
ghassmo
d6d629d44c rpc/jsonrpc: clean up send_request function 2022-02-26 19:54:42 +04:00
Dastan-glitch
66699fd1d5 migrate net select::futures to use async_std timeout function instead 2022-02-25 21:26:06 -05:00
ghassmo
99238b7f26 bin/drk: use UrlConfig & cargo fmt 2022-02-25 18:52:46 +04:00
ghassmo
c66dddaee3 util/cli: implement UrlConfig for various url configuration in toml
files
2022-02-25 18:26:13 +04:00
ghassmo
35706c16e1 remove cli module & move the cli_config to util 2022-02-24 21:01:25 +04:00
Dastan-glitch
a14355263c splitting config struct in src/cli between aps in bin/ 2022-02-24 13:56:02 +01:00
parazyd
85607c6bbd rpc/jsonrpc: Implement timeouts in send_request().
If the endpoint is connected, but does not reply on a request for a
defined amount of time, the send_request function shall fail with an
Io(TimedOut) error.
2022-02-23 13:44:29 +01:00
ghassmo
e3a68e334b rpc: pass Url object to send_request function instead of &str 2022-02-23 04:09:22 +04:00
aggstam
5396dae4bb script/research/streamlet_rust: Block transactions changed from String to tx::Transaction.
Additional modifications:
  script/research/streamlet_rust: fixed epoch calculation
  Added macros at:
    crypto::{note::EncryptedNote, proof::Proof, MintRevealedValues, SpendRevealedValues},
    tx::{Transaction, TransactionClearInput, TransactionInput, TransactionOutput}
2022-02-23 00:05:10 +02:00
Dastan-glitch
cb888aadbf splitting clap related code on apps in bin/ 2022-02-22 11:29:23 +01:00
lunar-mining
02d561ecf5 map: make node connections multiple and add logging 2022-02-18 10:16:42 +01:00
dasman
7da841e9e7 bin/ircd: fixing ping-pong reply which fixes occasional re-connection (#66) 2022-02-18 09:58:29 +01:00
ghassmo
f6d80e36f8 clean up & remove unused files 2022-02-18 10:57:13 +04:00
aggstam
6045eb1449 rand version update to 0.8.5, fixed broken tests imports, added Clone and PartialEq macros at crypto::schnorr::Signature 2022-02-16 21:32:56 +02:00
parazyd
22fdec7fed Fix compilation errors 2022-02-15 11:33:02 +01:00
parazyd
230ff6fcc6 zk: Add base_sub opcode to VM and arithmetic chip. 2022-02-14 17:36:10 +01:00
lunar-mining
0d0cb05c9a map: created config file and removed duplicate index write 2022-02-14 12:05:45 +01:00
Dastan-glitch
a03f2cdada bin/ircd: update & fix clap app deprication and log configuration 2022-02-12 20:03:22 -05:00
lunar-mining
94b7f97ebd basic daocli and daod hello_world() over rpc 2022-02-12 11:27:00 +01:00
narodnik
fd76bff015 fix breaking changes:
* Cloneable property was removed from Error
* get_info() doesn't exist
* The clap for the logger was overriding the main arg parser for the app itself.
2022-02-12 10:12:21 +01:00
parazyd
4e774c9710 zk/vm: Add BaseAdd and BaseMul from the arithmetic chip. 2022-02-08 14:26:31 +01:00
parazyd
9a58c7b8b3 Fix and enable arithmetic halo2 chip. 2022-02-08 14:00:52 +01:00