Commit Graph

3647 Commits

Author SHA1 Message Date
parazyd
b232d9a85a contract/deployooor: Add initial integration test 2024-01-09 14:42:55 +01:00
parazyd
fecab39d77 validator: Move DeployParamsV1 to darkfi-sdk 2024-01-09 13:27:48 +01:00
parazyd
2ad9183239 validator: Implement contract deployment handling upon tx verification 2024-01-09 13:18:53 +01:00
parazyd
8dbd5a1785 contract/deployooor: Include deployment instruction payload in params 2024-01-09 13:16:37 +01:00
parazyd
12be55740c contract/deployooor: Implement initial client API 2024-01-09 12:42:40 +01:00
parazyd
e102f84e56 runtime: Remove unused sanity_check() function
This is now done inside the deployooor contract.
2024-01-09 12:09:34 +01:00
parazyd
6b53ba13ab chore: Clippy lints 2024-01-09 11:02:31 +01:00
zero
6cd9202c93 remove unmaintained ShareAddress 2024-01-09 10:40:00 +01:00
zero
3b14e2f671 dao::vote(): add proposal_bulla to the nullifiers 2024-01-09 10:33:50 +01:00
parazyd
77bc5edbb5 net: Port from deprecated async-rustls to futures-rustls.
This is also a protocol-breaking change. We now have a bit looser
certificate verification that does not append the base32-encoded
public key into the altName.
2024-01-08 15:58:50 +01:00
parazyd
dedc29430e chore: Update crate dependencies 2024-01-08 15:58:50 +01:00
zero
6af0437e21 spec2: sections on concepts, notation, pallas/vesta 2024-01-06 14:12:58 +01:00
zero
dd0e2dabee spec2: add section on crypto schemes 2024-01-06 11:21:30 +01:00
zero
cc2de1aca1 spec2: concepts page 2024-01-04 10:06:59 +01:00
zero
30eb6bba19 money: switch to new nullifier scheme N = hash(secret, coin) 2023-12-30 13:21:15 +01:00
zero
7d80e22ba8 dao: auth_xfer add verifiable encryption for all coins produced by money::transfer() 2023-12-28 16:29:05 +01:00
parazyd
8f6d404ce0 contract/money/fee: Reorder some state transition code more logically 2023-12-28 11:24:46 +01:00
zero
7e6a60bfc0 dao: s/get_current_slot/get_verifying_slot/ 2023-12-28 11:22:35 +01:00
zero
43bdf5eab9 money::transfer(): MoneyNote add TODO about removing value_blind and token_blind 2023-12-28 11:22:08 +01:00
zero
68f938cdb2 dao: replace get_blockchain_time() with get_current_slot() 2023-12-27 08:33:26 +01:00
parazyd
5f1f754524 contract/money/fee: WIP initial fee client API implementation 2023-12-26 17:23:37 +01:00
parazyd
39879c3b1a contract/money: Clippy lint 2023-12-26 17:23:37 +01:00
parazyd
ade30c9071 contract/money/fee: Force 1 input and 1 output, and use own ZK circuit. 2023-12-26 17:23:37 +01:00
parazyd
c4afe20f92 validator: Remove false comments 2023-12-26 13:35:52 +01:00
parazyd
07cb4e0ad7 chore: cargo fmt 2023-12-26 13:32:00 +01:00
parazyd
001bdecb53 runtime: Remove unused acl_deny function 2023-12-26 13:31:37 +01:00
zero
bb2769a207 dao: proposals now have a duration, votes are not allowed past the expiry time 2023-12-25 12:13:53 +01:00
zero
62df0d2c41 money::xfer(): remove wrong TODO and expand surrounding comment to add context 2023-12-24 22:01:35 +01:00
aggstam
cf1ce28ab8 contract/test-harness: consensus_stake and consensus_unstake use TransactionBuilder properly, updated vks/pks hashes 2023-12-24 16:30:07 +02:00
x
6ba9cf2e27 remove trailing whitespace from ZK files 2023-12-23 13:35:46 +01:00
x
c3587c0c6f general cleanup, clippy & update VKS/PKS in test-harness 2023-12-23 13:33:00 +01:00
x
7e9bd2946e finish dao rewrite 2023-12-23 13:11:57 +01:00
x
f4826555f6 auth_xfer: add zk proof (incomplete) 2023-12-22 21:04:30 +01:00
x
b8fa27c988 mv entrypoint.rs entrypoint/mod.rs 2023-12-22 20:42:54 +01:00
x
3a2c4e1799 auth_xfer: check output coins match proposal 2023-12-22 20:40:28 +01:00
aggstam
15c44bd7bb tx: use DarkForest in TransactionBuilder 2023-12-22 20:49:40 +02:00
aggstam
af732f588f sdk/dark_tree: created DarkForest combining multiple DarkTrees 2023-12-22 20:49:40 +02:00
x
87459ac644 prettify ContractCall and Transaction debug output 2023-12-22 17:59:55 +01:00
x
ff76f6e834 auth_xfer: grab data from DAO::exec auth spec, do some verification on sibling call. 2023-12-22 16:59:02 +01:00
ertosns
c83ad39e2b [runtime/vm_runtime] comment copy_to_memory 2023-12-22 16:33:47 +02:00
ertosns
27f123da5a [runtime/import/merkle] replace assertion by returning an error 2023-12-22 15:41:18 +02:00
ertosns
a4666d2549 [runtime/import/merkle] check if buffer is fully read 2023-12-22 15:38:31 +02:00
ertosns
7240222b21 [runtime/memory] test write_slice 2023-12-22 15:37:16 +02:00
x
a1117f7a0f dao::auth_xfer(): check sibling is money::xfer() 2023-12-22 13:29:12 +00:00
x
5341582ccd dao::exec(): check the auth children are set 2023-12-22 12:59:33 +00:00
x
46a89b1b09 dao test: manually build the call tree 2023-12-22 11:07:01 +00:00
x
79d43e61af Revert "sdk/dark_tree: create fn to shift root in flatten vec to first position"
This reverts commit fee3385688.
2023-12-22 11:04:18 +00:00
x
4ae9b2607f dao: fix broken unit test 2023-12-22 10:42:01 +00:00
aggstam
fee3385688 sdk/dark_tree: create fn to shift root in flatten vec to first position 2023-12-22 01:12:44 +02:00
x
8ac99e7df3 dao: append auth xfer call 2023-12-21 21:29:36 +00:00