Commit Graph

4961 Commits

Author SHA1 Message Date
aggstam
57751b2007 contrib/localnet/darkfid-small added 2022-11-18 17:13:48 +02:00
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
e07f035c62 faucetd: Initialization of wallet and zkvm keys. 2022-11-17 21:25:05 +01:00
parazyd
8bc645098e crypto/proof: Remove test unit. 2022-11-17 20:41:15 +01:00
parazyd
a5fc5528de proof/opcodes.zk: Fix typo 2022-11-17 20:40: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
mohab metwally
43f6521a2f proof/tx.zk fix witness, and constrains 2022-11-17 19:51:27 +02:00
mohab metwally
6771e023a7 fix lead.zk 2022-11-17 19:27:11 +02:00
parazyd
d892e2fc53 Get darkfid compiling again 2022-11-17 17:54:35 +01:00
mohab metwally
fa89bae1bf [proof] fix c3/c4 constrained commitments 2022-11-17 18:47:23 +02:00
mohab metwally
a12042678a use new constrain_equal sig 2022-11-17 18:34:32 +02:00
mohab metwally
c4e0748dc7 fix typo 2022-11-17 18:33:53 +02:00
parazyd
5176dc7df0 zkas: Add opcodes for equality constraints of Base and EcPoint. 2022-11-17 17:32:18 +01:00
mohab metwally
764fd812e5 proof/tx.zk, proof/lead.zk witness const pallas::Base in zkas 2022-11-17 18:30:39 +02:00
mohab metwally
ccfcc59e09 missing quote 2022-11-17 18:25:14 +02:00
mohab metwally
33d2aecf00 proof/tx.zk created 2022-11-17 18:22:50 +02:00
mohab metwally
b94c3e3413 lead circuit in zkas 2022-11-17 18:22:50 +02:00
parazyd
3049839993 example/crypsinous: Minor compile fixes 2022-11-17 15:13:17 +01: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
82d907dbe3 darkfid/wallet: Implement RPC queries for multiple rows. 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
ad674cba05 darkfid: Support writing arbitrary data to wallet over JSON-RPC. 2022-11-16 20:34:41 +01:00
parazyd
dc14d9b7bf Makefile: Remove obsolete sql script deps. 2022-11-16 20:34:41 +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
bbcdb359d2 darkfid/wallet: Endpoint for arbitrary SQL queries on the wallet. 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
parazyd
f2bf300679 script: Remove obsolete scripts. 2022-11-16 20:34:41 +01:00
parazyd
a958ba0ea2 script: Remove SQL query scripts. 2022-11-16 20:34:41 +01:00
aggstam
0bd7d8a376 consensus: chopped Participants 2022-11-16 20:51:11 +02:00
mohab metwally
fd0474d8d5 update blockchain.md in book 2022-11-16 17:32:56 +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