x
39499ac2d7
dao: cleanup by introducing the CoinParams -> Coin, Dao -> DaoBulla, and Proposal -> ProposalBulla paradigm. use consistently throughout the builders.
2023-12-18 12:23:34 +00:00
Dastan-glitch
7529e4a655
src/event_graph: use dag_get() method
2023-12-18 05:20:57 +03:00
Dastan-glitch
54108b7513
bin/genev: update tmux test script
2023-12-18 05:18:39 +03:00
Dastan-glitch
a6aa24920e
bin/genev: update event_graph synced flag when we skip sync
2023-12-18 05:17:58 +03:00
aggstam
d52ac5975c
script/research/dark-forest: use wrapper struct for DarkLeaf in DarkTree so flattened vector don't contain node's index
2023-12-15 15:26:55 +02:00
x
2cb4de0c7b
amend DEP0001, add optional ext_send_addr and specify conditions.
2023-12-15 13:02:51 +00:00
aggstam
9c0eccba63
script/research/dark-forest: tree flattening to vector of leafs added, along with vector integrity check function
2023-12-14 16:27:37 +02:00
aggstam
9bcc383b8e
script/research/dark-forest: min capacity logic added, to double bound the tree
2023-12-14 14:54:30 +02:00
parazyd
a94858174a
darkirc: Only build the rust bin with the make target
2023-12-14 12:05:38 +01:00
parazyd
44805ef45d
book/dev: Document native musl builds
2023-12-14 11:52:48 +01:00
Dastan-glitch
c3f0ef5577
bin/tau: update event_graph synced flag when we skip sync
2023-12-14 11:45:33 +01:00
aggstam
aac6b2c6c2
darkirc: update event_graph synced flag when we were already on latest tip
2023-12-14 11:45:33 +01:00
aggstam
b1821df428
darkirc: update event_graph synced flag when we skip sync
2023-12-14 11:45:32 +01:00
aggstam
cdaddfbfe2
event_graph: introduce layers to the DAG
...
Each event corresponds to a specific layer(height) in the dag, making identifying and preventing cycles way easier, as all parents must exist in previous layers. Additionally, propagation and sync gremlins have been eliminated, and proper validations added
2023-12-14 11:45:32 +01:00
parazyd
01c883b0d4
darkfid: Improve code style of RequestHandler
2023-12-14 08:52:48 +01:00
parazyd
82c7ef4e0c
darkfid: Add merge_mining_get_chain_id RPC method.
2023-12-14 08:49:54 +01:00
parazyd
0aba4e7864
chore: fmt
2023-12-13 12:01:09 +01:00
parazyd
b48b58af03
chore: Clippy lints
2023-12-13 10:20:38 +01:00
parazyd
b23021e3a1
chore: Update crate dependencies
2023-12-13 10:14:43 +01:00
lunar-mining
53d4520e91
doc/ p2p-network.md: add monero source paper and some final formatting
2023-12-12 12:54:36 +01:00
lunar-mining
3967946074
doc/ p2p-network.md: fix typo
2023-12-12 12:39:28 +01:00
lunar-mining
e6c23df599
doc/ p2p-network.md: minor fixes
2023-12-12 12:35:22 +01:00
lunar-mining
36ad3ead1d
doc: fix headings
2023-12-12 12:32:47 +01:00
lunar-mining
7962dec8f5
doc: add proposed greylist/whitelist update to arch/p2p-network.md
2023-12-12 12:24:47 +01:00
y
7c6f93c547
util-time: Add panic for overflow/underflow
...
Cause the timestamp functions with addition and subtraction to panic if
they would overflow. This helps to prevent logic issues. However, this
is potentially dangerous if the timestamp can be forced to overflow and
cause a panic; so, added TODOs as a note for future refactoring.
2023-12-11 10:46:26 -05:00
lunar-mining
369f894fb7
dchat: add p2p.get_info() method to rpc
2023-12-09 14:53:15 +01:00
lunar-mining
fb97d433ea
dchat: fix dchat_config.toml to be v basic for education purposes.
2023-12-09 11:07:16 +01:00
lunar-mining
7a56d67e9c
dchat: cleanup Cargo.toml
2023-12-08 21:14:37 +01:00
lunar-mining
777a455c23
dchat: add to darkfi workspace and fix bug in dchat Cargo.toml
2023-12-08 21:11:44 +01:00
lunar-mining
4ec4ddb1a5
dchat: implement rpc methods for send + recv and cleanup
2023-12-08 21:07:05 +01:00
lunar-mining
e4e1cec5fe
dchat: refactor to use async-daemonize
...
TODO: to make dchat compatiable with async-daemonize, we needed to
seperate the dchat daemon from dchat messenger cli.
previously we made a custom daemon so that we could run daemon processes
in the background while leaving the terminal clear for stdin().
the next step is to reimplement the dchat send message menu in python
as a very basic cli.
2023-12-08 21:06:48 +01:00
lunar-mining
914e8037aa
dchat: update to new RPC + p2p API and delete redundant dependecies
2023-12-08 21:03:42 +01:00
lunar-mining
247a87e608
dchat: add .gitignore
2023-12-08 21:02:26 +01:00
lunar-mining
c71c2d1867
Revert "add dchat to .gitignore"
...
This reverts commit e28c065711d009bde6fe1597a8daf16eebdeab9e.
2023-12-08 21:02:17 +01:00
lunar-mining
c1555167b4
add dchat to .gitignore
2023-12-08 21:02:08 +01:00
lunar-mining
1bb4f67e14
dchat: commit erroring code
...
error: failed to select a version for darkfi.
... required by package dchat v0.4.1 (/home/x/src/darkfi/example/dchat)
versions that meet the requirements * are: 0.4.1
the package dchat depends on darkfi, with features: async_daemonize but darkfi does not have these features.
failed to select a version for darkfi which could resolve this conflict
2023-12-08 21:01:56 +01:00
lunar-mining
bd78a5e5bf
dchat: add async daemonize macro to Cargo.toml
2023-12-08 21:01:47 +01:00
parazyd
5a526fe10e
swapd: Add project skeleton
2023-12-07 23:43:45 +01:00
parazyd
b2c4000477
rpc/server: Print info log on client disconnect
2023-12-07 23:43:45 +01:00
y
0c469fb3b7
sdk-util: formatting
2023-12-07 16:03:37 -05:00
y
14661fb3f7
sdk-util: Add size limits on data; comment code
...
Change `data.len() as u32` to `u32::try_from`. This will return an error
in the case where the length of the data exceeds u32. (Using an `as`
conversion will cause the value to overflow and write the wrong amount
of data).
Add a new ContractError enum `DataTooLarge` to handle this case.
Add a similar check to the `parse_ret` auxiliary function to ensure the
ret i64 fits into the u32 type.
Add code comments to the utility functions to explain what they do.
2023-12-07 15:58:26 -05:00
y
8f735dd650
event_graph: Make error msg more clear
...
Change wording and code comment to make it clear that the requested
event comes from a peer, and not the local node
2023-12-07 15:13:50 -05:00
y
1c290a5caa
doc: Update wasm interaction docs
...
Replace references to i32 to i64 now that the return types have been
changed.
2023-12-07 15:11:08 -05:00
y
dbba9ac939
runtime: Use deserialize instead of Cursor
...
Modify the zkas_db_set function to use deserialize instead of Cursor.
This provides stronger validation on the data passed to the function
2023-12-07 12:20:16 -05:00
y
753d01b249
runtime/sdk: change return types from i32 to i64
2023-12-07 11:57:08 -05:00
y
facbc1fc38
runtime: cleanup db_contains_key, zkas_db_set
2023-12-07 10:39:38 -05:00
parazyd
0950990086
research/pqxdh: Port X3DH to post-quantum key agreement protocol.
2023-12-07 09:40:01 +01:00
dark-john
bc201bce5b
Added missing g++ package to dependency_setup.sh for Debian/Ubuntu distros. ( #242 )
2023-12-06 21:13:44 +00:00
aggstam
1b4fcf8baa
script/research/dark-forest: appending functionality along with optional capacity added
2023-12-06 22:07:21 +02:00
aggstam
95b9caf1c4
script/research/dark-forest: indexes integrity check added
2023-12-06 22:07:21 +02:00