Commit Graph

4898 Commits

Author SHA1 Message Date
parazyd
72f345e6de contrib: Add script for attaching missing license headers to .rs files. 2022-11-15 22:14:28 +01:00
parazyd
8b648874d5 zk/vm: Shorten From impls with a macro. 2022-11-15 21:16:39 +01:00
parazyd
371011959c contract/money: Add no-entrypoint feature needed for composing contracts. 2022-11-15 20:37:43 +01:00
parazyd
ef9c4d3c52 contract/money: Add note about ZKAS_TREE. 2022-11-15 20:10:53 +01:00
parazyd
a7271ff600 contract/money: Add spend_hook and user_data + doc. 2022-11-15 20:07:49 +01:00
parazyd
fe611fbbcd consensus: Deploy native money contract on startup. 2022-11-15 19:33:34 +01:00
aggstam
8a60502a2f consensus/metadata: added coin serial and new coin public inputs 2022-11-15 20:30:22 +02:00
parazyd
83a380b080 contract/money: Redeployment logic error handling in init. 2022-11-15 18:56:01 +01:00
parazyd
17e5d01b18 sdk/db: Constant error codes for db 2022-11-15 18:56:01 +01:00
aggstam
60c33e4734 consensus/state/epoch_changed(): update consensus.epoch on epoch change 2022-11-15 18:34:00 +02:00
parazyd
f46000ecbd dao2: cargo fmt 2022-11-15 17:27:05 +01:00
parazyd
16178af767 contract/money: Initial outline in src/contract/money. 2022-11-15 17:26:20 +01:00
parazyd
9c0a0e1c10 runtime: Add db.contains_key functionality. 2022-11-15 17:10:54 +01:00
aggstam
1479b2cb62 consensus/state: updated finalization logic
Leader extends their longest fork chain. Finalization: when obverving extension 3 times, if no other fork exists at same or greater height(length) finalize all proposals up to the last one. Rest fork chains not starting by last finalized block are getting chopped.
2022-11-14 20:55:42 +02:00
aggstam
7bcc75b65e consensus/BlockProposal: added header as part of struct
This was done so we can execute faster validations, as previously we were using proposal.block.header.headerhash() each time, which serialized the header and produced a blake3 hash.
2022-11-14 20:01:08 +02:00
mohab metwally
33e6d260f9 fix blockchain.md 2022-11-14 19:17:19 +02:00
TG × ⊙
7c06a2e32e nix flake: add dashu hash 2022-11-13 09:35:36 +00:00
spital
abb1262f38 Bump up rust version to 1.65 in Dockerfiles and fix typos, builds passed 2022-11-13 09:35:20 +00:00
parazyd
9f66dc36ae example/less_than: Fix simple issue. 2022-11-10 11:21:33 +01:00
ghassmo
acd16ee999 script/research/event_graph: a little change in the implementation 2022-11-10 10:21:28 +04:00
aggstam
5f072d1c7f p2p/settings: rustdoc added 2022-11-08 15:55:35 +02:00
x
5d9c2e0082 dao2: add lil todo note for self 2022-11-08 13:24:08 +00:00
x
f033857f23 dao2: dao now receives money 2022-11-08 13:22:20 +00:00
x
52561406f7 dao2: money correctly saving and updating its own state 2022-11-08 13:10:31 +00:00
x
2fe6425ecf dao2: working signature checking 2022-11-08 12:48:48 +00:00
x
a32d72754b dao2 verify zk proofs 2022-11-08 12:41:06 +00:00
x
3554f3a70b dao: construct signatures for tx 2022-11-08 12:04:15 +00:00
x
37345a3124 money transfer build complete 2022-11-08 11:52:10 +00:00
x
a42eb406ad upgrade to new token API 2022-11-08 11:40:26 +00:00
x
a6a76ffc4a wallet::money::transfer::Builder::build() creates an object of type MoneyTransferParams 2022-11-08 11:27:43 +00:00
parazyd
c1b2c2af5a Update crate dependencies 2022-11-08 12:17:25 +01:00
parazyd
745389c400 Simplify project system dependencies. 2022-11-08 12:17:24 +01:00
parazyd
f062a2bbe9 Apply new TokenID API throughout codebase. 2022-11-08 11:35:31 +01:00
parazyd
2a7e95f9a2 Remove token_list module. This should not be part of the core lib.
Instead, nodes, consensus, etc. should be agnostic and just use TokenId.
Token lists are something that can be used client-side for convenience.
2022-11-08 08:48:21 +01:00
parazyd
e6455facb7 Migrate more crypto API to sdk 2022-11-07 22:27:24 +01:00
parazyd
aa49a4c650 sdk: Add poseidon utility function and ContractId derivation. 2022-11-07 15:39:30 +01:00
x
0a25b569bf dao2: final part of DAO::mint() wallet interaction 2022-11-07 09:48:49 +00:00
x
b25206d97a dao2: improve diagnostic show_*_state() functions 2022-11-07 09:31:40 +00:00
x
8d69ed2ac8 dao2: reduce apply code using prev commit 2022-11-07 09:24:35 +00:00
x
79ba8fc0ef dao2: banish the wasm stuff to a single validate() function 2022-11-07 09:22:41 +00:00
parazyd
d7ee8f3e0c Update calls throughout repository for latest darkfi-sdk changes. 2022-11-07 01:42:39 +01:00
parazyd
d5cf579f87 dao2: Update calls for latest darkfi-sdk changes. 2022-11-07 01:20:03 +01:00
parazyd
e98196baa2 sdk: Port Keypair and Schnorr. 2022-11-06 23:06:17 +01:00
x
40a721ebf3 dao2 more idiomatic pubkey method 2022-11-06 21:44:55 +00:00
x
207f708520 add disabled sig verification function 2022-11-06 21:43:53 +00:00
parazyd
8ba0fc207e keypair: Impl from pallas::Point for PublicKey 2022-11-06 22:43:27 +01:00
x
9ad69f373a dao2: added zk verification 2022-11-06 21:32:55 +00:00
parazyd
f6dadf614c cargo fmt 2022-11-06 22:02:22 +01:00
x
4c57bc428f missing files for dao2 2022-11-06 21:01:01 +00:00
parazyd
c8bc9484bb sdk: Revert architecture guards 2022-11-06 21:45:43 +01:00