Commit Graph

3967 Commits

Author SHA1 Message Date
skoupidi
b468b9c399 net/message_subscriber: new fn receive_with_timeout added on message subscription 2024-02-23 15:27:33 +02:00
skoupidi
505571188d rpc/client: new fn chad_request added 2024-02-22 20:46:04 +02:00
skoupidi
cff856971d darkfid: consensus fixes 2024-02-22 17:52:56 +02:00
skoupidi
5e9892363a validator: changed block ranking logic 2024-02-22 15:38:54 +02:00
parazyd
2a49b2d79e contract/money: Remove NullifierAttributes and use the OwnCoin API 2024-02-21 12:52:34 +01:00
skoupidi
0de966c9c7 darkfid: forks sync logic implemented 2024-02-21 13:27:22 +02:00
parazyd
ffcefada18 sdk/crypto: Remove unused import in ecvrf.rs 2024-02-21 09:52:39 +01:00
parazyd
47e9d68ef1 sdk/crypto: Forbid PublicKey to ever be the identity point 2024-02-20 15:47:34 +01:00
parazyd
dc203e12f0 contract/deployooor: Remove redundant ZK proof creation and verification 2024-02-20 15:47:34 +01:00
parazyd
b82aee8cd3 sdk/crypto: Derive a deterministic nonce for ECVRF 2024-02-20 15:47:34 +01:00
parazyd
6002324810 validator/utils: Add FIXME note about dangerous code 2024-02-20 15:47:34 +01:00
parazyd
e33fb55faf sdk/crypto: Use deterministic nonces for Schnorr signatures 2024-02-20 15:47:34 +01:00
parazyd
23f2bbeac9 sdk/crypto: Add "_unsafe" suffix to ElGamalEncryptedNote functions
The reasoning is explained in the rustdoc for those functions.
2024-02-20 15:47:33 +01:00
zero
b218255aa1 DAO::propose(): check input nullifiers are not used more than once - each one should be unique. 2024-02-20 15:47:33 +01:00
zero
ff24d41a10 sdk/schnorr: add the pubkey to challenge hash of commit 2024-02-20 15:47:33 +01:00
parazyd
8636fb2641 sdk/ecvrf: Enforce that the public key is not the identity point 2024-02-20 15:47:33 +01:00
parazyd
60fc2f0b3d sdk/mimc_vdf: Generate round constants as BigUint instead of u64 2024-02-20 15:47:33 +01:00
parazyd
4dd4cf5178 sdk/crypto: Add test unit for pedersen.rs 2024-02-17 23:54:06 +01:00
dasman
95e7a53094 event_graph: fix events validation with days_rotation set to zero 2024-02-15 03:28:43 +03:00
skoupidi
f1f05b726d darkfid: created task to listen for appended proposals and perform finalization check for non mining nodes 2024-02-13 13:45:13 +02:00
skoupidi
6de4869bec darkfid: removed obselete protocol_block 2024-02-13 13:45:13 +02:00
skoupidi
7f0f954671 blockchain/header: removed redundant epoch number 2024-02-12 13:07:19 +02:00
parazyd
68c9bc8418 consensus: Use BigUint for block ranking to obtain higher resolution 2024-02-11 13:08:59 +01:00
skoupidi
6916cff694 validator/consensus: fork rank logic minor optimization 2024-02-11 14:08:13 +02:00
parazyd
f04a44d255 chore: Clippy lints 2024-02-11 12:15:35 +01:00
parazyd
98521da0de contract/dao: Integration test port 2024-02-11 12:15:35 +01:00
parazyd
8c2a7c65a1 contract/money: Final integration test fixes
Signed-off-by: parazyd <parazyd@dyne.org>
2024-02-11 11:26:50 +01:00
skoupidi
d376d2d43a contract/money/tests/integration: fixed failing test due to erroneous VRF parameters 2024-02-10 23:11:00 +02:00
parazyd
f4c3a059f3 contract/test-harness: Remove airdrop module. 2024-02-10 19:36:55 +01:00
parazyd
c7ea1a2c08 contract/dao: Clippy lints 2024-02-10 19:33:15 +01:00
parazyd
09e7475d58 contract/test-harness: Add a generate_block() function.
This is supposed to be used whenever we want a Holder to produce
a block and receive the mining reward.

As part of the integration test, it will test PoWReward functionality.
2024-02-10 19:30:02 +01:00
parazyd
f007d1a732 contract/money: Remove pow-reward test
This is now to be done through the integration test.
2024-02-10 19:23:44 +01:00
parazyd
7d95c7f09e contract/money: WIP pow-reward test port 2024-02-10 11:36:34 +01:00
parazyd
882c7da804 contract/money: Add malicious test case for genesis-mint 2024-02-10 11:36:34 +01:00
skoupidi
8eef36b898 blockchain/header: changed nonce from pallas::Base to u64 2024-02-10 12:06:38 +02:00
parazyd
9c44bfb9ed contract/money: Delete redundant tests 2024-02-10 09:17:15 +01:00
parazyd
a8297adbf4 contract/money: Port token-mint test 2024-02-10 09:17:15 +01:00
skoupidi
47b0e2905f doc/arch: removed pos related stuff and added a high level description of PoW logic 2024-02-09 20:17:17 +02:00
skoupidi
d81be20ec1 src/error.rs: minor cleanup 2024-02-09 17:20:04 +02:00
parazyd
2125cf7c98 contract/test-harness: Append missing proof to vks 2024-02-09 15:14:39 +01:00
parazyd
427dbce106 contract/money: Port mint-pay-swap test 2024-02-09 15:13:22 +01:00
parazyd
e3b785a986 contract/money: Port integration test 2024-02-09 14:44:02 +01:00
parazyd
23abd8c526 contract/money: Port genesis-mint test 2024-02-09 14:37:45 +01:00
parazyd
7e27171719 contract/deployooor: Port tests to updated test-harness 2024-02-09 14:23:26 +01:00
parazyd
a516ec90e0 Fixup rebase artifacts 2024-02-09 14:15:47 +01:00
parazyd
8828438d8f contract/test-harness: Cleanup and addition of tx fees. 2024-02-09 13:57:14 +01:00
parazyd
2f7c4b4e17 contract/money: Implement std::hash::Hash for OwnCoin 2024-02-09 13:51:10 +01:00
parazyd
c7f287d4bd contract/money: Add FEE_CALL_GAS constant, and export some structs 2024-02-09 13:51:09 +01:00
parazyd
00aefdded5 contract/money: Faucet cleanup
This removes clear inputs from Money::Transfer, and removes all faucet
references in the code.

Additionally, in src/validator/ we use the ValidatorConfig struct
directly, rather than using the ValidatorConfig::new() function.
2024-02-09 13:50:29 +01:00
draoi
6619350187 chore: fix misleading code comment 2024-02-09 09:42:45 +01:00