Commit Graph

1471 Commits

Author SHA1 Message Date
aggstam
b4d28da805 ircd: dropped 2023-06-29 15:29:25 +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
parazyd
d070b7792b wallet: Replace sqlx with rusqlite. 2023-06-29 13:06:54 +02:00
parazyd
1699d8e8d6 lilith: Clean up and implement periodic hosts purging.
The purging is done by attempting connections and removing the host
from the set if lilith is unable to connect and/or perform the handshake.
2023-06-29 13:06:54 +02:00
Dastan-glitch
64abd7db65 bin/tau: show info on one id instead of listing it 2023-06-27 05:28:31 +03:00
Dastan-glitch
8363c4c891 bin/tau: update cli help message 2023-06-27 05:11:05 +03:00
Dastan-glitch
d08c45045d bin/tau: change assign usage from key:value to @value 2023-06-27 04:48:14 +03:00
Dastan-glitch
64f3978280 bin/darkirc: minor test script rename contact 2023-06-27 04:24:02 +03:00
Dastan-glitch
743789de0c bin/ircd: [bots] port as int 2023-06-24 04:40:38 +03:00
aggstam
dd45787d8d chore: clippy 2023-06-23 16:19:25 +03:00
lunar-mining
d38e27d4f0 dnetview: deserialize log to RingBuffer
Parse the incoming log as a RingBuffer and stop dnetview from
crashing. This is a partial intergration of the /net upgrade: f3659261dc

There is a bug where message logs are showing as empty.
2023-06-23 00:57:27 +02:00
Dastan-glitch
e106c49390 bin/darkirc: log actual messages as debug instead of info 2023-06-21 16:39:40 +03:00
Dastan-glitch
2a529942f6 bin/tau: fix month task path 2023-06-21 15:42:12 +03:00
parazyd
9a9d78df1d darkirc: Make padding more efficient and add test unit. 2023-06-20 08:08:42 +02:00
Dastan-glitch
af306673f3 bin/darkirc: pad/unpad nickname and target on encrypt/decrypt 2023-06-20 02:33:45 +03:00
aggstam
bca5527c7b drk: removed coin_blind from hashes 2023-06-19 21:38:20 +03:00
freerangedev
d4a7ce140f zkrunner: Rename pubins 2023-06-16 18:53:22 +00:00
freerangedev
9092a58dad zkrunner: yapf formatting 2023-06-16 18:53:22 +00:00
freerangedev
9912167686 zkrunner: API and style refactoring 2023-06-16 18:53:22 +00:00
freerangedev
ccff4b250f zkrunner: Add previous work 2023-06-16 18:53:22 +00:00
Dastan-glitch
f60d259039 bin/darkirc: add contacts in tmux test script to test DMs 2023-06-14 22:59:53 +03:00
Dastan-glitch
6df3b5d339 bin/darkirc: remove unused commented code 2023-06-14 22:58:56 +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
Dastan-glitch
6c3c761fdd bin/darkirc: support no-history capability 2023-06-14 04:46:56 +03:00
parazyd
b36861fa1d contract/dao: Refactor contract code to match other native contracts. 2023-06-13 14:23:33 +02:00
Dastan-glitch
86d4080061 bin/darkirc: resetting root every 24hrs at 00:00AM UTC 2023-06-13 04:03:13 +03:00
parazyd
0feda5f8e5 contract/dao: Use AeadEncryptedNote from darkfi-sdk. 2023-06-12 15:03:24 +02:00
parazyd
2edd5d0220 faucetd: Use the wrapped MerkleTree type where applicable 2023-06-12 14:31:20 +02:00
parazyd
c2a308ccb6 ircd: Clippy lint 2023-06-12 14:31:20 +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
Dastan-glitch
bfa6fd9bd9 bin/darkirc: test script use seed and private channel 2023-06-05 02:04:37 +03:00
Dastan-glitch
1be4c6f4c3 bin/darkirc: test script with tcp 2023-06-04 03:55:49 +03:00
Dastan-glitch
490e6a03a5 bin/ircd: update script/ README.md 2023-06-03 03:45:27 +03:00
Dastan-glitch
535bf4e85c bin/ircd: add tau notifier bot 2023-06-03 03:35:40 +03:00
Dastan-glitch
9a2ed787b4 bin/tau: organise deps 2023-06-02 04:45:37 +03:00
Dastan-glitch
952ec658e6 bin/tau: fix multiple events to be piped 2023-06-02 04:44:17 +03: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
17ed4ea5cb darkfid/rpc_tx: Use provided hash() function for hashing transaction. 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