Commit Graph

173 Commits

Author SHA1 Message Date
x
1c9ff6fdba wasm: fix error codes situation so we get contract errors from inside wasm 2022-11-05 18:12:59 +00:00
parazyd
8be771af04 blockchain: Add skeleton for ContractStore. 2022-11-04 12:00:46 +01:00
x
66198e60a6 begin to add full darkfi smart contract functionality 2022-11-03 21:04:56 +00:00
x
b4a0b70cbf remove .map_err(), use From<> instead 2022-11-03 08:46:06 +01:00
x
a0c61641cf general cleanup and re-enabling of earlier disabled features. 2022-11-03 08:46:05 +01:00
aggstam
ebba655747 p2p: random_channel() to exlude seeds, consensus: minor proposal fixes, fmt 2022-11-01 16:37:46 +02:00
parazyd
8ae84ad7f9 Add license header to source files. 2022-10-31 18:16:13 +01:00
aggstam
1f6fe0cf26 consensus: fmt 2022-10-30 03:12:36 +03:00
aggstam
3c28dbcd63 consensus: minor fixes, error codes added 2022-10-30 03:11:35 +03:00
Luther Blissett
afcccefac9 crypto/note: Use audited chacha20poly1305 crate for note encryption. 2022-10-26 16:13:12 +02:00
Luther Blissett
62d1f06c1f Update imports for type migrations. 2022-10-17 00:34:34 +02:00
Luther Blissett
2b587bc14a Migrate lib to smol instead of explicit async deps.
Internally they're the same, smol exports them.
2022-10-14 18:43:26 +02:00
aggstam
c4227d9e03 stakeholder: conflict resolved 2022-10-14 18:44:26 +03:00
aggstam
4b9ae20fa3 error: WalletInsufficientBalance error code added 2022-10-14 18:42:11 +03:00
Luther Blissett
e7bc898923 darkwikid: main.rs improvements, and cleanups.
* Use dryoc for crypto_secretbox instead of public-key encryption.

* Detach raft task to background (this needs a good rework, current
  design is suboptimal).

* Remove ctrlc and add signal-hook to handle signals

* Upon SIGHUP, reload workspace secrets from the TOML config file.
2022-10-07 00:50:40 +02:00
Luther Blissett
5f56936668 rpc/websockets: Port to rustls. 2022-09-24 16:02:19 +02:00
Luther Blissett
0e5502f5d5 Move serialization library into its own submodule. 2022-09-24 16:02:19 +02:00
Dastan-glitch
a50de65a78 Clippy lints 2022-09-21 03:47:24 +03:00
mohab metwally
f98137e306 merge crypsinous into master in crypsinousintomaster branch 2022-09-15 18:38:11 +02:00
Luther Blissett
fd9c32f729 net/transport/tor: Remove regex dependency. 2022-09-02 10:50:24 +02:00
Luther Blissett
a1732be74e zkas/compiler: Introduce .literal section in bincode, and add remaining code. 2022-08-29 22:41:23 +02:00
narodnik
51c1e09415 tx: major bugfix, do not reuse previous output value blinds. that will produce the same value_commit as the previous output making them linkable. 2022-08-09 11:04:58 +02:00
parazyd
0d01be2f4e Remove num-bigint usage from crates, revert to u64. 2022-08-06 12:40:50 +02:00
mohab metwally
0d1d4e6c18 connect stakeholder with p2p network 2022-07-29 23:53:10 +02:00
aggstam
109ef9a517 src/dht: feature created(lib structs moved from research/dhtd) 2022-07-19 22:21:35 +03:00
parazyd
b436d659ba ircd: Implement IRC TLS listener. 2022-07-03 14:29:30 +02:00
aggstam
20467eadba consesus:block restructure 2022-06-22 14:29:39 +03:00
ghassmo
fe147fe8ae more explicit names for network errors 2022-06-20 12:26:46 +03:00
aggstam
35c459db9a Cargo.toml: features updates, util/time.rs: replaced worldtime api request with jsonrpc request towards network nodes, darkfid: configuration check for new clock check impl, contrib/localnet + script/consensu_simulation: added new config args, faucted: removed unnessesary clock check, src/error.rs: new ConfigInvalid error and removed NTP error 2022-06-13 18:23:27 +03:00
aggstam
92f15675bc util/time.rs: replaced ntp crate request with raw request, Cargo.toml: removed npt crate 2022-06-10 14:34:32 +03:00
parazyd
d765387fd0 Update dependencies and reduce compilation time.
For release, we don't need halo2 dev stuff, so we move it into dev-deps.
2022-05-21 13:32:13 +02:00
lunar-mining
bd9382b1e5 net: add timestamp to msg log. util: create unix timestamp tool.
error: error handling for timestamp
2022-05-11 17:22:09 +02:00
ghassmo
525efd7dd9 net: implement unix transport 2022-05-11 17:21:21 +02:00
aggstam
4f843b419e src/error.rs: removed tab spaces 2022-05-11 12:33:53 +03:00
aggstam
90cda47154 script/research/clock_sync: moved to src/util/time.rs and src/error.rs, updated cargo dependencies, darkfid2: added system time check at start 2022-05-10 19:01:57 +03:00
ghassmo
c8ce6b68a5 net3: handle unsupported transport upgrades 2022-05-05 20:26:02 +03:00
ghassmo
015f3ddefc net3: use more specific error types for bind an address and accept a connection 2022-05-04 05:48:09 +03:00
parazyd
be3f87cfea net: Rework transports for protocol upgrades. 2022-05-03 00:18:53 +02:00
parazyd
609afbd9c7 Rework token lists and ID generation. 2022-04-30 19:45:00 +02:00
parazyd
63824cb39e node/state: Add remaining errors for state transition. 2022-04-26 11:35:10 +02:00
ghassmo
bf956e0715 error: restrict TimeoutError with async-std feature 2022-04-26 12:14:26 +03:00
ghassmo
8626642db6 error: minor fix 2022-04-26 11:08:06 +03:00
ghassmo
316a44166f remove net2 2022-04-26 02:29:22 +03:00
ghassmo
e535cc4fd5 error: add timeout error 2022-04-26 01:36:11 +03:00
parazyd
f4bab15776 Update dependencies and CI. 2022-04-23 21:21:19 +02:00
parazyd
3a9ebdab23 Add JsonRpcError to error.rs 2022-04-23 21:21:18 +02:00
parazyd
c2c7039cdf Minor fixups. 2022-04-23 21:21:16 +02:00
parazyd
1ae263b4de blockchain: Implement some general query functions. 2022-04-23 21:21:15 +02:00
parazyd
a3829e76b3 Clean up global error module. 2022-04-23 21:21:14 +02:00
parazyd
c55c08b662 darkfid: Implement consensus P2P protocols. 2022-04-23 21:21:10 +02:00