Skip to content

Commit fd47153

Browse files
committed
feat(coprocessor): sns-worker, push metadata on S3
this includes a signed digest in S3 object metadata and as a json file on S3
1 parent d268e78 commit fd47153

21 files changed

+491
-131
lines changed

charts/coprocessor/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: coprocessor
22
description: A helm chart to distribute and deploy Zama fhevm Co-Processor services
3-
version: 0.7.13
3+
version: 0.7.14
44
apiVersion: v2
55
keywords:
66
- fhevm

charts/coprocessor/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,10 @@ snsWorker:
834834
# - --pg-auto-explain-with-min-duration="30s"
835835
# - --keys-file-path
836836

837+
# New in v0.11
838+
- --signer-type=private-key
839+
- --private-key=$(TX_SENDER_PRIVATE_KEY)
840+
837841
# Service ports configuration
838842
ports:
839843
metrics: 9100

coprocessor/fhevm-engine/.sqlx/query-09f4bb2ed7df17aa0305c7fb88e87473e5be704202eb8f2fa571d47a4f98b7af.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

coprocessor/fhevm-engine/.sqlx/query-c219617a58f4113f0f3bb7a9668e9fcacce4f07eb92f17b9c69f87d1d9a30806.json

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coprocessor/fhevm-engine/.sqlx/query-cb21568c31f76eb89ee1c466981393873e60bd452cbc509d7f44a069571139a9.json

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coprocessor/fhevm-engine/.sqlx/query-f494db3ec1b377fe77fe147a71c2be0161b9a7fafed9194de09856a97f269aeb.json

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coprocessor/fhevm-engine/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coprocessor/fhevm-engine/fhevm-engine-common/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ anyhow = { workspace = true }
1111
alloy = { workspace = true, features = ["providers", "provider-ws"] }
1212
alloy-provider = { workspace = true }
1313
bigdecimal = { workspace = true }
14+
clap = { workspace = true }
1415
hex = { workspace = true }
1516
lru = { workspace = true }
1617
prost = { workspace = true }

coprocessor/fhevm-engine/fhevm-engine-common/src/types.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
use alloy::primitives::Signature;
12
use alloy::providers::RootProvider;
3+
use alloy::signers::Signer;
24
use alloy_provider::fillers::{
35
BlobGasFiller, ChainIdFiller, FillProvider, GasFiller, JoinFill, NonceFiller,
46
};
57
use anyhow::Result;
68
use bigdecimal::num_bigint::BigInt;
9+
use clap::{Parser, ValueEnum};
710
use tfhe::integer::bigint::StaticUnsignedBigInt;
811
use tfhe::integer::ciphertext::{BaseRadixCiphertext, ReRandomizationSeed};
912
use tfhe::integer::U256;
@@ -1009,3 +1012,11 @@ pub type BlockchainProvider = FillProvider<
10091012
>,
10101013
RootProvider,
10111014
>;
1015+
1016+
#[derive(Parser, Debug, Clone, ValueEnum)]
1017+
pub enum SignerType {
1018+
PrivateKey,
1019+
AwsKms,
1020+
}
1021+
1022+
pub type CoproSigner = std::sync::Arc<dyn Signer<Signature> + Send + Sync>;

coprocessor/fhevm-engine/sns-worker/Cargo.toml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,27 @@ license.workspace = true
77

88
[dependencies]
99
# workspace dependencies
10+
alloy = { workspace = true, features = ["node-bindings"] }
11+
anyhow = { workspace = true }
1012
aws-config = { workspace = true }
1113
clap = { workspace = true }
1214
hex = { workspace = true }
1315
prometheus = { workspace = true }
1416
prost = { workspace = true }
1517
rayon = { workspace = true }
18+
serde = { workspace = true }
1619
serde_json = { workspace = true }
1720
sha3 = { workspace = true }
18-
thiserror = { workspace = true }
21+
sqlx = { workspace = true }
1922
tfhe = { workspace = true}
23+
tfhe-versionable = { workspace = true }
24+
thiserror = { workspace = true }
2025
tokio = { workspace = true }
26+
tokio-util = { workspace = true }
2127
tonic = { workspace = true }
2228
tracing = { workspace = true }
2329
tracing-subscriber = { workspace = true }
24-
anyhow = { workspace = true }
25-
serde = { workspace = true }
26-
sqlx = { workspace = true }
27-
tfhe-versionable = { workspace = true }
28-
tokio-util = { workspace = true }
30+
2931
# opentelemetry support
3032
opentelemetry = { workspace = true }
3133
opentelemetry-otlp = { workspace = true }

0 commit comments

Comments
 (0)