parazyd
cea573071b
tx2: Initial stub for contract transaction type.
2022-11-15 22:50:36 +01:00
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
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
aggstam
5f072d1c7f
p2p/settings: rustdoc added
2022-11-08 15:55:35 +02:00
x
a32d72754b
dao2 verify zk proofs
2022-11-08 12:41:06 +00:00
parazyd
c1b2c2af5a
Update crate dependencies
2022-11-08 12:17:25 +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
parazyd
d7ee8f3e0c
Update calls throughout repository for latest darkfi-sdk changes.
2022-11-07 01:42:39 +01:00
parazyd
e98196baa2
sdk: Port Keypair and Schnorr.
2022-11-06 23:06:17 +01:00
parazyd
8ba0fc207e
keypair: Impl from pallas::Point for PublicKey
2022-11-06 22:43:27 +01:00
parazyd
f6dadf614c
cargo fmt
2022-11-06 22:02:22 +01:00
parazyd
c8bc9484bb
sdk: Revert architecture guards
2022-11-06 21:45:43 +01:00
parazyd
8c27c24473
make fix
2022-11-06 21:29:06 +01:00
parazyd
f2dd798f2d
Clear up most warnings and have test units pass.
2022-11-06 21:17:36 +01:00
x
f8d2790bb7
dao2: working merkle_add()
2022-11-06 18:24:41 +00:00
x
14807bcde6
initial basic dao mint in wasm
2022-11-06 17:39:05 +00:00
mohab metwally
d477eb3106
WIP debugging failing less_than proof
2022-11-06 16:40:43 +02:00
x
237d733a83
wasm: give get_metadata() access to db_get()
2022-11-06 12:26:29 +00:00
x
26637e2b6e
merge dao1 into dao2 ready for migration
2022-11-06 12:13:44 +00:00
parazyd
4b0a57cdc8
sdk/contract_id: Use From for instantiation.
2022-11-06 11:35:26 +01:00
parazyd
b6be34e41d
blockchain: Document contractstore.
2022-11-06 11:16:09 +01:00
x
f2aac746cb
remove get access from update and deploy functions
2022-11-06 01:22:15 +00:00
x
6cc6bb12b3
wasm: wagie data utility functions
2022-11-06 00:55:42 +00:00
x
3c69a9fc04
Merge branch 'master' of github.com:darkrenaissance/darkfi
2022-11-05 18:23:08 +00:00
x
1c9ff6fdba
wasm: fix error codes situation so we get contract errors from inside wasm
2022-11-05 18:12:59 +00:00
parazyd
60934a20d4
runtime: WIP db get
2022-11-05 18:48:28 +01:00
x
3aba630188
wasm: add metadata() functionality
2022-11-05 15:08:26 +00:00
mohab metwally
a9036f4f7c
[consensus/coins] fix leaf position, used api over ++local state, as internal working of incmerkletree isn't simple ++
2022-11-05 16:07:42 +02:00
mohab metwally
81ec2111d2
blockchain/contractstore replace unstable let else
2022-11-05 16:06:55 +02:00
parazyd
3bdd6cf1c9
runtime: Implement sled tree batch writes.
2022-11-05 14:47:30 +01:00
lunar-mining
bdd0dd3362
cargo fmt
2022-11-05 12:51:16 +01:00
parazyd
96b159c00c
wasm: Working db_init()
2022-11-05 12:41:44 +01:00
x
695f86f7c6
wasm: fix most of the warnings
2022-11-05 10:19:23 +00:00
x
346a6a5802
wasm: make functions use the same generic underlying call(), and able to return data through env with set_return_data()
2022-11-05 09:55:27 +00:00
parazyd
ff952172fa
runtime: Pass ContractId to section functions.
2022-11-05 10:35:34 +01:00