Commit Graph

2373 Commits

Author SHA1 Message Date
mohab metwally
08eb5936bb transfer transaction based off lead coin 2022-11-18 16:53:20 +02:00
aggstam
e2d7d0d321 consensus/constants: increades LEADER_PROOF_K to 13 2022-11-18 16:29:15 +02:00
aggstam
b2a4b672b8 blockchain: removed redundant code, fmt 2022-11-18 16:28:33 +02:00
mohab metwally
1b532aae20 leadcontract, txcontract removed 2022-11-18 13:21:47 +02:00
mohab metwally
fcc5fa05fd update leadcoin in state 2022-11-18 12:58:55 +02:00
mohab metwally
16d90b3bfa fix witnesses 2022-11-18 12:53:19 +02:00
mohab metwally
37cbd2e152 update public_inputs, and lead circuit 2022-11-18 12:27:17 +02:00
aggstam
ee10a54648 consensus: major changes implemented
finalization syncing period implemented, finalization logic improvements, fork logic improvements, use blockhash instead of header hash as identifiers, remove redundant DELTA, minor fixes
2022-11-18 02:32:47 +02:00
parazyd
4d3b8a10b8 faucetd: Build money transfer transaction. 2022-11-17 23:51:00 +01:00
parazyd
8bc645098e crypto/proof: Remove test unit. 2022-11-17 20:41:15 +01:00
parazyd
d4cfefe132 Remove obsolete node module. 2022-11-17 20:36:10 +01:00
parazyd
4886b0ec0b Remove old obsolete tx module and replace with tx2. 2022-11-17 20:33:04 +01:00
parazyd
fec2304dd8 contract/money: Implement transaction builder. 2022-11-17 20:29:38 +01:00
parazyd
d892e2fc53 Get darkfid compiling again 2022-11-17 17:54:35 +01:00
parazyd
5176dc7df0 zkas: Add opcodes for equality constraints of Base and EcPoint. 2022-11-17 17:32:18 +01:00
mohab metwally
b94c3e3413 lead circuit in zkas 2022-11-17 18:22:50 +02:00
parazyd
3a4efc1d74 contract/money: Merge cashier and faucet pubkeys into one.
This now writes the pubkeys into the sled db on deployment.
2022-11-17 14:52:55 +01:00
parazyd
d08bba325d drk: Begin rewrite for money contract interaction. 2022-11-17 14:34:54 +01:00
parazyd
8334ab6831 rpc: Increase incoming JSON-RPC buffer size to 8 meg. 2022-11-17 14:34:54 +01:00
parazyd
636350bcff walletdb: Disable encryption. 2022-11-16 20:34:41 +01:00
parazyd
bfbba26ba1 rpc: Don't kill connections if the endpoint returns a JSON-RPC error. 2022-11-16 20:34:41 +01:00
parazyd
c8642cbde8 contract/money: Add wallet SQL schema. 2022-11-16 20:34:41 +01:00
parazyd
10e8d8e5fe darkfid/wallet: Implement arbitrary wallet queries over JSON-RPC. 2022-11-16 20:34:41 +01:00
aggstam
0bd7d8a376 consensus: chopped Participants 2022-11-16 20:51:11 +02:00
mohab metwally
3d6a9e727c fix fullrange check failed verfication in less than gadget 2022-11-16 16:02:42 +02:00
parazyd
569b296c16 darkfid: Get compiling with most of RPC functionality disabled. 2022-11-16 14:28:06 +01:00
parazyd
8078633f5c node: Do not compile the module anymore. 2022-11-16 14:28:06 +01:00
parazyd
ce09ccfca7 consensus: wasm transaction verification.
The thing that needs fixing here is that upon verification we write to the
db. Instead, we should defer that and do it when a block containing the tx
is finalized.

Multiple solutions/options presented in code comments.
2022-11-16 14:28:06 +01:00
parazyd
3756b10946 consensus: Replace old Transaction type with new one. 2022-11-16 14:28:06 +01:00
parazyd
51e753ce4b sdk: Remove leftover Address impl 2022-11-16 14:28:06 +01:00
parazyd
54ec918c8e wallet: Export WalletDb and WalletPtr 2022-11-16 14:28:06 +01:00
parazyd
83d700e85e consensus: Code cleanups 2022-11-16 14:28:04 +01:00
parazyd
84caaf2c3a runtime: Add wasm bincode to WasmStore after successful deploy execution. 2022-11-16 14:26:37 +01:00
parazyd
337f80361d blockchain: Add WasmStore and rename ContractStore to ContractStateStore. 2022-11-16 14:26:37 +01:00
parazyd
05befe509b sdk: Remove address module. 2022-11-16 14:26:37 +01:00
parazyd
e622aac09e wallet: Abstract away walletdb, the extensions should be implemented with traits. 2022-11-16 14:26:37 +01:00
parazyd
ba0dccdafe consensus: Move constants into own module. 2022-11-16 14:26:37 +01:00
parazyd
ff5d31ca3d consensus: Begin leadcoin API cleanup. 2022-11-16 14:26:37 +01:00
aggstam
87369b917b consensus: constant eta through epoch 2022-11-16 14:22:39 +02:00
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