Commit Graph

5645 Commits

Author SHA1 Message Date
parazyd
f6cf33f4ed sdk/note: Pass ephemeral_secret as an argument to ElGamal::encrypt 2023-03-08 11:44:57 +01:00
parazyd
5cc394ae21 sdk/note: ElGamal decrypt() 2023-03-08 11:27:20 +01:00
parazyd
0b5c2393e1 sdk/note: ElGamal encrypt() 2023-03-08 11:09:03 +01:00
parazyd
0ed1d62b4b sdk: Minor cleanup 2023-03-07 22:39:41 +01:00
parazyd
0c70558392 wallet: Remove cashierdb.rs 2023-03-07 22:39:41 +01:00
aggstam
230c1b1dd1 drk/alias: exit on erroneous alias size 2023-03-07 23:28:50 +02:00
aggstam
e06b6fa1df consensus: moved pending txs from memory a distinct sled store 2023-03-07 23:14:09 +02:00
parazyd
ce26ad15a7 research/x3dh: Formatting fixes 2023-03-07 17:47:24 +01:00
Sombra
2340992333 src/xeddsa.rs: fix comment 2023-03-07 08:31:18 -08:00
Sombra
2aaf606741 Fix x3dh sig (#158)
* rename local variable sig to signature to avoid confusion with the function param

* x3dh/src/main: removed prints and renames variable

* faucetd/src/main: debugging

* remove fix tags

* rename vars

* src/xeddsa.rs: fix import and switched to verify_strict
2023-03-07 16:24:41 +00:00
police
1ad0284a22 use unsigned_abs inplace of abs as unsign 2023-03-07 15:28:31 +02:00
parazyd
e2a2bd29ad sdk/crypto/note: Fix test unit. 2023-03-07 12:33:43 +01:00
parazyd
8fd8526c52 consensus/validator: Allow too many arguments for ValidatorState::new 2023-03-07 12:31:52 +01:00
parazyd
691d98d296 bin: Apply linter suggestions. 2023-03-07 12:29:51 +01:00
parazyd
48d3adab9f contract: Apply linter suggestions. 2023-03-07 12:29:51 +01:00
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