mirror of
https://github.com/fluencelabs/trust-graph
synced 2024-12-04 07:10:21 +00:00
feat: update marine sdk's, configs and sqlite connector (#129)
* update marine and stuff
* Release 0.10.4
fluence-keypair@0.10.4
trust-graph@0.10.4
trust-graph-distro@0.10.4
Generated by cargo-workspaces
* Revert "Release 0.10.4"
This reverts commit 11102a87e3
.
* update sqlite and test sdk
* update rust toolchain everywhere
* fix lint warnings
* update test sdk again
This commit is contained in:
parent
ed5bd2c0ec
commit
0b66f4e053
1349
Cargo.lock
generated
1349
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,5 @@
|
|||||||
modules_dir = "."
|
modules_dir = "."
|
||||||
|
total_memory_limit = "Infinity"
|
||||||
|
|
||||||
[[module]]
|
[[module]]
|
||||||
name = "sqlite3"
|
name = "sqlite3"
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
[toolchain]
|
[toolchain]
|
||||||
channel = "nightly-2022-08-30"
|
channel = "nightly-2023-12-06"
|
||||||
targets = [ "x86_64-apple-darwin", "x86_64-unknown-linux-gnu" ]
|
targets = [ "x86_64-apple-darwin", "x86_64-unknown-linux-gnu" ]
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
[toolchain]
|
[toolchain]
|
||||||
channel = "nightly-2022-12-06"
|
channel = "nightly-2023-12-06"
|
||||||
targets = [ "x86_64-apple-darwin", "wasm32-wasi", "wasm32-unknown-unknown", "x86_64-unknown-linux-gnu" ]
|
targets = [ "x86_64-apple-darwin", "wasm32-wasi", "wasm32-unknown-unknown", "x86_64-unknown-linux-gnu" ]
|
||||||
components = [ "rustfmt", "clippy" ]
|
components = [ "rustfmt", "clippy" ]
|
||||||
|
@ -14,8 +14,8 @@ path = "src/main.rs"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
trust-graph = { version = "0.4.7", path = "../trust-graph" }
|
trust-graph = { version = "0.4.7", path = "../trust-graph" }
|
||||||
fluence-keypair = { version = "0.10.3", path = "../keypair" }
|
fluence-keypair = { version = "0.10.3", path = "../keypair" }
|
||||||
marine-rs-sdk = { version = "0.7.1", features = ["logger"] }
|
marine-rs-sdk = { version = "0.10.2", features = ["logger"] }
|
||||||
marine-sqlite-connector = "0.8.0"
|
marine-sqlite-connector = "0.9.2"
|
||||||
|
|
||||||
libp2p-identity = { workspace = true }
|
libp2p-identity = { workspace = true }
|
||||||
|
|
||||||
@ -29,8 +29,8 @@ bincode = "1.3.1"
|
|||||||
thiserror = "1.0.23"
|
thiserror = "1.0.23"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
marine-rs-sdk-test = "0.9.1"
|
marine-rs-sdk-test = "0.12.1"
|
||||||
rusqlite = "0.28.0"
|
rusqlite = "0.28.0"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
marine-rs-sdk-test = "0.9.1"
|
marine-rs-sdk-test = "0.12.1"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
modules_dir = "artifacts/"
|
modules_dir = "artifacts/"
|
||||||
|
total_memory_limit = "Infinity"
|
||||||
|
|
||||||
[[module]]
|
[[module]]
|
||||||
name = "sqlite3"
|
name = "sqlite3"
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
[toolchain]
|
[toolchain]
|
||||||
channel = "nightly-2022-12-06"
|
channel = "nightly-2023-12-06"
|
||||||
targets = [ "x86_64-apple-darwin", "wasm32-wasi", "wasm32-unknown-unknown", "x86_64-unknown-linux-gnu" ]
|
targets = [ "x86_64-apple-darwin", "wasm32-wasi", "wasm32-unknown-unknown", "x86_64-unknown-linux-gnu" ]
|
||||||
|
@ -37,7 +37,7 @@ pub(crate) fn check_timestamp_tetraplets(
|
|||||||
.get(arg_number)
|
.get(arg_number)
|
||||||
.ok_or_else(|| InvalidTimestampTetraplet(format!("{:?}", call_parameters.tetraplets)))?;
|
.ok_or_else(|| InvalidTimestampTetraplet(format!("{:?}", call_parameters.tetraplets)))?;
|
||||||
let tetraplet = tetraplets
|
let tetraplet = tetraplets
|
||||||
.get(0)
|
.first()
|
||||||
.ok_or_else(|| InvalidTimestampTetraplet(format!("{:?}", call_parameters.tetraplets)))?;
|
.ok_or_else(|| InvalidTimestampTetraplet(format!("{:?}", call_parameters.tetraplets)))?;
|
||||||
(TRUSTED_TIMESTAMP.eq(&(&tetraplet.service_id, &tetraplet.function_name))
|
(TRUSTED_TIMESTAMP.eq(&(&tetraplet.service_id, &tetraplet.function_name))
|
||||||
&& tetraplet.peer_pk == call_parameters.host_id)
|
&& tetraplet.peer_pk == call_parameters.host_id)
|
||||||
|
@ -29,7 +29,7 @@ use std::{
|
|||||||
#[repr(transparent)]
|
#[repr(transparent)]
|
||||||
pub struct PublicKeyHashable(PublicKey);
|
pub struct PublicKeyHashable(PublicKey);
|
||||||
|
|
||||||
#[allow(clippy::derive_hash_xor_eq)]
|
#[allow(clippy::derived_hash_with_manual_eq)]
|
||||||
impl Hash for PublicKeyHashable {
|
impl Hash for PublicKeyHashable {
|
||||||
fn hash<H: Hasher>(&self, state: &mut H) {
|
fn hash<H: Hasher>(&self, state: &mut H) {
|
||||||
state.write(&self.0.encode());
|
state.write(&self.0.encode());
|
||||||
|
@ -154,7 +154,7 @@ where
|
|||||||
C: Borrow<Certificate>,
|
C: Borrow<Certificate>,
|
||||||
{
|
{
|
||||||
let chain = &cert.borrow().chain;
|
let chain = &cert.borrow().chain;
|
||||||
let mut issued_by = chain.get(0).ok_or(EmptyChain)?.issued_for.clone();
|
let mut issued_by = chain.first().ok_or(EmptyChain)?.issued_for.clone();
|
||||||
|
|
||||||
// TODO: optimize to check only root weight
|
// TODO: optimize to check only root weight
|
||||||
for trust in chain {
|
for trust in chain {
|
||||||
|
Loading…
Reference in New Issue
Block a user