Commit Graph

213 Commits

Author SHA1 Message Date
parazyd
f188c2bb05 chore: Update crate dependencies 2023-11-09 14:20:57 +01:00
parazyd
b61127af9a chore: Update crate dependencies 2023-10-27 09:02:18 +02:00
parazyd
cbe9c64065 chore: Update crate dependencies 2023-08-29 13:08:35 +02:00
parazyd
cee481b0c3 chore: Update crate dependencies 2023-08-23 19:15:03 +02:00
parazyd
44982d320e chore: Update crate dependencies 2023-08-18 10:15:14 +02:00
parazyd
52599c947b bin: Fix compilation for RpcClient dependents. 2023-08-18 10:04:32 +02:00
parazyd
0ba9740b84 chore: Clippy lints 2023-08-17 12:03:11 +02:00
parazyd
1eb00ef9c2 chore: Update crate dependencies 2023-08-12 13:01:32 +02:00
parazyd
c045210763 chore: Update crate dependencies. 2023-07-31 08:05:13 +02:00
parazyd
60595e3002 zk: Handle invalid witnesses gracefully in empty_witnesses(). 2023-07-22 15:42:45 +02:00
parazyd
d34b9cbb03 chore: Update crate dependencies 2023-07-22 13:16:16 +02:00
parazyd
8ac1d17077 Use k param from ZkBinary when building VerifyingKey and ProvingKey. 2023-07-22 12:04:41 +02:00
parazyd
3d5896b89b contract/money: Replace token pedersen commitment with a poseidon hash. 2023-07-22 08:56:04 +02:00
parazyd
29101c4e02 zk: Pass a ZkBinary reference to ZkCircuit::new instead of cloning. 2023-07-20 14:19:52 +02:00
parazyd
8d07dc2258 chore: Update crate dependencies 2023-07-20 12:23:58 +02:00
parazyd
d7c994b679 chore: Update crate dependencies. 2023-07-13 19:22:32 +02:00
parazyd
999fc3890e drk: Use the money contract client API in DAO::Exec 2023-07-13 19:22:32 +02:00
parazyd
bcd98952a7 contract/money: Implement support for dummy inputs. 2023-07-12 11:39:28 +02:00
parazyd
98ef7c834e chore: Update project dependencies. 2023-07-08 20:17:47 +02:00
aggstam
0d00179abd darkfid2: further extend tests foundation | repo: fmt 2023-07-03 16:50:44 +03:00
parazyd
55ee919906 net: Perform full p2p code cleanup and improve certain pieces.
Notable changes:

* Rewritten transport protocols into Dialer and Listener (Nym is TODO)

  This simplifies using the transports a lot, as can be seen for example
  in src/rpc, and generally around the p2p library. It also defines features
  for each transport (all of which are enabled by default). We drop the
  socks client for Tor and Nym and use first-class support with the Arti Tor
  library, and nym-sphinx/nym-websockets (to be used with nym-client).

* Outbound session healing

  The outbound session will now poll and try to fill all the requested
  slots more efficiently, and if needed, will activate peer discovery to
  find more peers if we can't connect to any known ones. Also if we're
  unable to connect to any, we shall drop them from our set.

  Additionally, transport mixing is enabled by default, so when we're
  allowing transport mixing, and we use Tor, we will also be able to connect
  to other transports that Tor can connect to (e.g. tcp://).

* Unix socket transport dropped

  We haven't been using this, and it seems we're not going down this path,
  so the code has been obsoleted and removed.

* TLS session verification

  We fully verify server and client TLS certificates upon connection so
  we're able to perform TLS1.3 with forward secrecy.

* lilith pruning

  lilith now periodically prunes known peers from its sets if it's unable
  to connect to them.
2023-06-29 13:13:15 +02:00
aggstam
bca5527c7b drk: removed coin_blind from hashes 2023-06-19 21:38:20 +03:00
parazyd
33c286f19f contract/dao: Introduce money state snapshotting.
This prevents double-voting in the sense of minting new coins _after_
a proposal was created, meaning only the coins that have existed prior
to creating a certain proposal are able to vote on it.

This is done by marking down the latest Merkle root in the Money state
and attaching it to the proposal's metadata. Then this root is used for
verifying inclusion proofs when voting.
2023-06-14 14:41:24 +02:00
parazyd
b36861fa1d contract/dao: Refactor contract code to match other native contracts. 2023-06-13 14:23:33 +02:00
parazyd
0feda5f8e5 contract/dao: Use AeadEncryptedNote from darkfi-sdk. 2023-06-12 15:03:24 +02:00
parazyd
48ce9fd7c5 chore: Update crate dependencies 2023-06-12 14:31:20 +02:00
parazyd
f085bc7e8d drk: Use bridgetree instead of incrementalmerkletree. 2023-06-12 14:31:19 +02:00
parazyd
0d6f9600bb drk: Clippy lint 2023-06-06 16:05:47 +02:00
parazyd
bfc99c79ea chore: Update crate dependencies. 2023-06-06 14:06:36 +02:00
parazyd
88865e2663 drk: Replace "play" with "rodio".
Fun police go away.

This removes the deps on pkgconfig and libmpg123, and should ease the
build process for non GNU/Linux operating systems.
2023-06-06 14:06:36 +02:00
parazyd
09eb0e1147 sdk: Implement a macro for bs58 => pallas::Base and use it where applicable. 2023-06-06 13:16:36 +02:00
parazyd
85e548e709 drk: Clippy lint 2023-06-05 17:01:21 +02:00
parazyd
f73856ecac drk: Store bs58 encoded transaction history in the wallet 2023-06-01 15:57:54 +02:00
parazyd
e3bf302717 drk: Temporarily disable history_record. 2023-05-30 15:47:49 +02:00
parazyd
1a540c67e0 Derive TokenID with a derivation prefix. 2023-05-30 09:34:38 +02:00
x
d1a4405a95 drk: show votes for a proposal 2023-05-29 10:32:14 +02:00
x
fd63d2f3c8 drk: add alias for dao list subcmd 2023-05-29 10:08:43 +02:00
x
348e3a8a1e drk: dao_name is TEXT instead of BLOB 2023-05-29 09:54:41 +02:00
x
ff84ce5fe0 drk: add DAO aliases 2023-05-29 09:08:10 +02:00
parazyd
bd45042ef3 contract/money: Prepend "Token" to Money::{Mint,Freeze} namespace.
Mint and Freeze are too ambiguous.
2023-05-24 12:04:07 +02:00
parazyd
3cb6051fa2 chore: Update dependency versions 2023-05-11 10:08:51 +02:00
parazyd
bd6a6bfaf2 zkas: Rename "stack" to "heap".
"stack" is a misnomer, and the behavior of the zkVM is more heap-like
than stack-like when doing an analogy with general computing.
2023-05-10 14:35:51 +02:00
parazyd
0a1fe88665 faucetd: Implement airdrop spam protection using a VDF. 2023-05-09 13:06:59 +02:00
parazyd
9b31940dfe chore: Update project dependencies 2023-05-09 10:42:35 +02:00
parazyd
b4cdbea08c Update project dependencies. 2023-04-16 17:36:59 +02:00
aggstam
a3e0417c7a drk: broadcasted transactions history handling added 2023-03-21 22:47:19 +02:00
aggstam
d8554a19e1 drk/explorer/FetchTx: printing options added 2023-03-21 16:57:37 +02:00
aggstam
cd6dc23598 drk-darkfid: added subscribe to listen for erroneous transactions 2023-03-21 16:24:05 +02:00
aggstam
230c1b1dd1 drk/alias: exit on erroneous alias size 2023-03-07 23:28:50 +02:00
parazyd
691d98d296 bin: Apply linter suggestions. 2023-03-07 12:29:51 +01:00