Commit Graph

2900 Commits

Author SHA1 Message Date
parazyd
9cf3fee6ac runtime: Make all WASM opcodes cost 1 unit, clean up gas_info. 2023-06-05 17:31:19 +02:00
Dastan-glitch
7fa24f42e9 event_graph: rebroadcast received events 2023-06-05 01:04:09 +03:00
Dastan-glitch
6782f8e9f6 event_graph: remove unused UnreadEvents struct 2023-06-04 03:54:20 +03:00
parazyd
f73856ecac drk: Store bs58 encoded transaction history in the wallet 2023-06-01 15:57:54 +02:00
parazyd
c129ab4cb3 runtime: Add sanity_check function for checking WASM bincode. 2023-05-30 11:38:18 +02:00
parazyd
1a540c67e0 Derive TokenID with a derivation prefix. 2023-05-30 09:34:38 +02:00
parazyd
356c661a08 sdk/contract_id: Fix rustdoc typos 2023-05-30 00:54:19 +02:00
parazyd
93f3c70e0c sdk/contract_id: Add a derivation prefix for deriving ContractID. 2023-05-30 00:29:13 +02:00
parazyd
89666c0849 runtime: Add TODO on using sled-overlay for deploy() 2023-05-30 00:29:13 +02:00
parazyd
a8c469c89d contract/money: Fix DB_VERSION tree name. 2023-05-30 00:29:13 +02:00
parazyd
d59d3cd21a contract/deployooor: Initial impl of non-native smart contract deployment.
This supports (Re)Deployment of smart contracts, and additionally making
them immutable after they have been deployed.
2023-05-30 00:29:13 +02:00
parazyd
558b0d330e event_graph: Simplofy EventId::hash 2023-05-28 08:24:59 +02:00
Dastan-glitch
1481612c2f event_graph: use blake3 instead of ripemd for hashing events 2023-05-28 04:51:11 +03:00
parazyd
f4932072c6 zkvm: Implement cond_select opcode. 2023-05-27 15:35:48 +02:00
aggstam
87eb662e27 src/contract/consensus-money: Added TODO placeholders for value > 0 opcode 2023-05-26 18:19:07 +03:00
parazyd
7364fdd15e tx: Enable parallelism when hashing transactions with blake3.
txs are usually >128KiB so this could be beneficial.
2023-05-26 09:46:04 +02:00
parazyd
bc9b25bf1f error: Correct error string for wasm failed exit 2023-05-24 13:13:25 +02:00
parazyd
a326a67901 zkas: Add basic debug prints 2023-05-24 13:09:54 +02:00
parazyd
bd45042ef3 contract/money: Prepend "Token" to Money::{Mint,Freeze} namespace.
Mint and Freeze are too ambiguous.
2023-05-24 12:04:07 +02:00
Dastan-glitch
de9ad09e5b event_graph: remove read_confirms and unread_events 2023-05-23 23:49:37 +03:00
parazyd
6cddfac05f Replace num_cpus crate with stdlib alternative. 2023-05-19 09:59:55 +02:00
aggstam
4f9e3c902e contract/consensus/tests: further simplyfied execution 2023-05-18 20:52:18 +03:00
aggstam
4d7617ad59 contract/consensus: GenesisStake contract call added 2023-05-18 20:12:04 +03:00
aggstam
489ffb1485 contracts: simplyfied signature pubkey vector creation in metadata calls with single singature 2023-05-18 18:35:15 +03:00
aggstam
1afb977a19 chore: clippy 2023-05-18 18:15:22 +03:00
aggstam
fb52d9b80f contract/consensus/tests: moved benchmarking to harness and simplyfied tx execution 2023-05-18 17:03:49 +03:00
aggstam
cc01b05334 contract/consensus: updated money calls ids 2023-05-17 21:00:46 +03:00
aggstam
3980aedc91 contract/money/tests: erroneous txs assert added 2023-05-17 19:34:30 +03:00
aggstam
2f7d0e75f9 contract/dao/tests: erroneous txs assert added 2023-05-17 18:48:31 +03:00
aggstam
e726cb258b contract/money: GenesisMint contract call added 2023-05-17 18:41:55 +03:00
aggstam
1bd504eaa0 util/time/TimeKeeper: added verifying slot attribute that can be used by the runtime for validations 2023-05-17 16:03:24 +03:00
parazyd
0cbaa2bcac dht: Stub protocols for metadata request-reply. 2023-05-12 21:52:27 +02:00
parazyd
a1501e427a contract/consensus: Concatenate bytes for VRF input 2023-05-12 20:39:33 +02:00
aggstam
1c902a3343 contract/consensus: added slot_id as eta vrf input 2023-05-12 21:27:45 +03:00
aggstam
8630082855 contract/consensus: use vrf proof for eta calculation 2023-05-12 21:06:28 +03:00
aggstam
6b574e80ae contract/consensus: constrain public key of nullifier' secret key, some naming cleanup 2023-05-12 21:06:28 +03:00
parazyd
e1f5564a6e dhtd: Implement routing table and P2P protocols. 2023-05-12 19:50:58 +02:00
parazyd
80ba124941 dht: Add node ids in tests. 2023-05-12 17:08:13 +02:00
parazyd
08d4d87998 dht: Stopped debugging 2023-05-12 16:56:33 +02:00
parazyd
79092c8360 dht: Init network test with easy_parallel and a custom executor. 2023-05-12 16:52:53 +02:00
parazyd
77e4178c6c dht: Network test scaffolding. 2023-05-12 15:33:09 +02:00
parazyd
b387ff6154 dht: Implement generic networked hashmap. 2023-05-12 14:08:13 +02:00
parazyd
710536aca9 dht: Add more documentation and API design. 2023-05-12 12:54:16 +02:00
parazyd
aa6e291967 dht: Improve comments. 2023-05-12 11:49:43 +02:00
parazyd
293f74b301 dht: WIP implementation of filesystem-based DHT 2023-05-12 11:26:19 +02:00
aggstam
dd3820b971 chore: random clippy 2023-05-11 00:26:31 +03:00
aggstam
9e8d8c1ef8 contract/consensus: ProposalReward to also constran new coin serial commit and validate between steps ProposalReward->ProposalMint 2023-05-10 22:58:31 +03:00
aggstam
bcb3b222d9 contract/consensus: create serial commitment in ProposalMint and constrain it 2023-05-10 22:35:27 +03:00
aggstam
7c8dcf3010 contract/consensus: derive proposal mint coin serial from burnt one 2023-05-10 21:46:29 +03:00
aggstam
9900837b01 contract/consensus: SERIAL_PREFIX constant added 2023-05-10 21:20:03 +03:00