Commit Graph

5630 Commits

Author SHA1 Message Date
parazyd
4efb0ecf8c lib: Apply linter suggestions. 2023-03-07 12:29:47 +01:00
parazyd
43f89dbfc7 consensus: Remove erroneus tx logic. 2023-03-06 20:10:01 +01:00
parazyd
96c2f8a7d4 tx: Simplify tx::hash 2023-03-06 18:33:53 +01:00
parazyd
8f7affff37 blockchain: Implement abstraction for fetching zkas bincode and vks. 2023-03-06 18:33:53 +01:00
parazyd
98aa6f94a6 darkfid/faucetd: Use new zkas db API 2023-03-06 18:33:53 +01:00
parazyd
cd10e3eed8 contract: Get integration tests working with the new verifyingkey logic. 2023-03-06 18:33:53 +01:00
parazyd
473d2f8707 consensus: Dynamically load VerifyingKey for zkas circuits from sled. 2023-03-06 18:33:53 +01:00
parazyd
8e251d0338 contract/dao: Use zkas_db_set for zk proofs. 2023-03-06 18:33:52 +01:00
parazyd
1bfe6ef5f1 contract/money: Use new zkas_db_set for zk proofs. 2023-03-06 18:33:52 +01:00
parazyd
740ce9fa52 Move SMART_CONTRACT_ZKAS_DB_NAME constant to the wasm runtime module. 2023-03-06 18:33:52 +01:00
parazyd
c5ad486a09 sdk: Implement zkas_db_set for use inside wasm. 2023-03-06 18:33:52 +01:00
parazyd
6fda2f9142 runtime/db: Implement zkas_db_set
This is used specifically for zkas circuits bundled with the WASM
contracts. If necessary, the functions will also create and serialize
VerifyingKey objects needed to verify proofs using the given circuit
and store them in the database for later reference.

We rely on the assumption that `deploy()` will do the db init or
lookup before running so the zkas db handle is always index zero.
2023-03-06 18:33:52 +01:00
parazyd
fd280c6513 runtime: Initialize or lookup a zkas db when running contract deployment. 2023-03-06 18:33:52 +01:00
parazyd
3b83197466 blockchain/contract_store: Add informational comment 2023-03-06 18:33:52 +01:00
parazyd
db48d24580 zk/proof: Implement VerifyingKey serialization. 2023-03-06 18:33:52 +01:00
x
e87590815d dlog calculations 2023-03-06 15:48:46 +01:00
Fabio Barone
eba56182ed remove element chat and add ircd 2023-03-03 17:13:18 +00:00
x
325846edfc added study guide 2023-03-03 16:38:08 +01:00
Sombra
5b675e045c faucetd/src/main -> changes after cargo clippy --fix 2023-03-03 11:55:04 +00:00
Sombra
140e265198 faucet/src/main: remove TODO mark 2023-03-03 11:55:04 +00:00
Sombra
8da4b7ecb3 faucet/src/main -> update db_path with std::path 2023-03-03 11:55:04 +00:00
parazyd
9d74f60083 contract: Add some verification statistics to the integration tests. 2023-03-02 13:29:28 +01:00
parazyd
3da06a8862 x3dh: Downgrade to digest-0.10.6 2023-03-01 15:59:31 +01:00
Dastan-glitch
cb847faaec bin/ircd: [commitbot] display commit message up to the first newline 2023-03-01 17:00:46 +03:00
parazyd
d55a80490a cargo fmt 2023-02-28 16:19:28 +01:00
sombra
a9b4f7f524 update formating to comply with rustfmt 2023-02-27 19:52:46 +00:00
Sombra
077913934f bin/darkfid/src/main.rs: fix path
Updates line 304:
```
   let db_path = format!("{}/{}", expand_path(&args.database)?.to_str().unwrap(), args.chain);
```
to:
```
    let db_path = Path::new(expand_path(&args.database)?.to_str().unwrap()).join(args.chain.clone());
```
2023-02-27 19:52:46 +00:00
aggstam
0766e910aa consensus: set testnet bootstrap timestamp v0.4.1 2023-02-27 21:12:34 +02:00
police
e4cb9aca8d update dashu new 0.3 api from main repo 2023-02-27 02:05:03 +02:00
parazyd
1ee9334c42 sdk: Update dependency versions. 2023-02-25 16:37:30 +01:00
parazyd
4e3b863cda Release v0.4.1 2023-02-25 16:00:20 +01:00
aggstam
a9e9a3fd4c contrib/localnet: set ['tls', 'tcp'] as default transport protocols 2023-02-25 16:59:37 +02:00
aggstam
0e592c425d doc/testnet/dao.md: minor value update 2023-02-25 14:20:31 +01:00
parazyd
8a1f640912 drk: Output a little note when subscribing for block notifications. 2023-02-25 14:20:31 +01:00
parazyd
bb22f30815 contract/money: Include crate version in the info db. 2023-02-25 14:20:31 +01:00
parazyd
db1908d07e runtime: Add documentation for metadata function. 2023-02-25 14:20:31 +01:00
parazyd
79aba52132 drk: Fix OtcSwap join tx. 2023-02-25 14:20:30 +01:00
parazyd
4dfb5e7f79 book: Fix typos and formatting. 2023-02-25 14:20:30 +01:00
parazyd
b4119a3703 drk: Basic inspection of PartialSwapData.
Needs more love.
2023-02-25 14:20:30 +01:00
aggstam
faeaab733c doc/testnet/dao.md: updated with aliases 2023-02-25 14:20:30 +01:00
aggstam
99bbe777b9 drk/swap: support aliases, doc/testnet: update payment and atomic swap with aliases 2023-02-25 14:20:30 +01:00
aggstam
3dba6737e7 doc/testnet/airdrop.md: minor tweaks 2023-02-25 14:20:30 +01:00
aggstam
a5643e8292 doc/testnet/airdrop.md: aliases section added and simplyfied commands to use them 2023-02-25 14:20:30 +01:00
aggstam
c16fc441c3 drk/token: support aliases on mint and freeze, also display on list 2023-02-25 14:20:30 +01:00
parazyd
ca38f93d1f contract/dao/test: Fix minting of gdrk. 2023-02-25 14:20:30 +01:00
parazyd
ce8bdc01b0 fixup! contract/dao/test: Use native network token where needed. 2023-02-25 14:20:30 +01:00
parazyd
767f8badd7 contract/dao/test: Use native network token where needed. 2023-02-25 14:20:30 +01:00
parazyd
b963ec0cfe contract/dao: Minor updates for integration test. 2023-02-25 14:20:30 +01:00
parazyd
6c5266c6a6 book/testnet: Notes on token minting. 2023-02-25 14:20:30 +01:00
parazyd
23b6b110c5 drk: Update wallet metadata when tokens are being frozen. 2023-02-25 14:20:30 +01:00