Skip to content

Commit 887a42e

Browse files
committed
Merge branch 'master' of https://github.com/nann-cheng/mpcium
2 parents 6d908f7 + 2ace0d7 commit 887a42e

11 files changed

Lines changed: 301 additions & 250 deletions

config.prod.yaml.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ mpc_threshold: 2
1313
environment: production # Set to production for production environment
1414
backup_enabled: true
1515
backup_period_seconds: 300 # Seconds
16+
backup_dir: backups
17+
max_concurrent_keygen: 2
18+
max_concurrent_signing: 10
19+
session_warm_up_delay_ms: 100

config.yaml.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ db_path: "."
1212
backup_enabled: true
1313
backup_period_seconds: 300 # 5 minutes
1414
backup_dir: backups
15+
max_concurrent_keygen: 2
16+
max_concurrent_signing: 10
17+
session_warm_up_delay_ms: 100

e2e/config.test.yaml.template

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ consul:
44
db_path: ./test_db
55
environment: development
66
event_initiator_pubkey: "{{.EventInitiatorPubkey}}"
7-
max_concurrent_keygen: 1
87
mpc_threshold: 1
98
mpcium_version: 1.0.0
109
nats:
1110
url: nats://localhost:4223
11+
max_concurrent_keygen: 1
12+
max_concurrent_signing: 10
13+
session_warm_up_delay_ms: 500

e2e/go.mod

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/fystack/mpcium/e2e
33
go 1.23.0
44

55
require (
6-
github.com/dgraph-io/badger/v4 v4.2.0
6+
github.com/dgraph-io/badger/v4 v4.7.0
77
github.com/fystack/mpcium v0.0.0-00010101000000-000000000000
88
github.com/google/uuid v1.6.0
99
github.com/hashicorp/consul/api v1.26.1
@@ -26,16 +26,14 @@ require (
2626
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
2727
github.com/decred/dcrd/dcrec/edwards/v2 v2.0.3 // indirect
2828
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
29-
github.com/dgraph-io/ristretto v0.1.1 // indirect
30-
github.com/dustin/go-humanize v1.0.0 // indirect
29+
github.com/dgraph-io/ristretto/v2 v2.2.0 // indirect
30+
github.com/dustin/go-humanize v1.0.1 // indirect
3131
github.com/fatih/color v1.18.0 // indirect
3232
github.com/fsnotify/fsnotify v1.7.0 // indirect
33+
github.com/go-logr/logr v1.4.2 // indirect
34+
github.com/go-logr/stdr v1.2.2 // indirect
3335
github.com/gogo/protobuf v1.3.2 // indirect
34-
github.com/golang/glog v1.2.4 // indirect
35-
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
36-
github.com/golang/protobuf v1.5.4 // indirect
37-
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
38-
github.com/google/flatbuffers v1.12.1 // indirect
36+
github.com/google/flatbuffers v25.2.10+incompatible // indirect
3937
github.com/hashicorp/errwrap v1.1.0 // indirect
4038
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
4139
github.com/hashicorp/go-hclog v1.6.3 // indirect
@@ -48,7 +46,7 @@ require (
4846
github.com/hashicorp/serf v0.10.1 // indirect
4947
github.com/ipfs/go-log v1.0.5 // indirect
5048
github.com/ipfs/go-log/v2 v2.1.3 // indirect
51-
github.com/klauspost/compress v1.17.4 // indirect
49+
github.com/klauspost/compress v1.18.0 // indirect
5250
github.com/magiconair/properties v1.8.7 // indirect
5351
github.com/mattn/go-colorable v0.1.14 // indirect
5452
github.com/mattn/go-isatty v0.0.20 // indirect
@@ -68,10 +66,13 @@ require (
6866
github.com/sourcegraph/conc v0.3.0 // indirect
6967
github.com/spf13/afero v1.11.0 // indirect
7068
github.com/spf13/cast v1.6.0 // indirect
71-
github.com/spf13/pflag v1.0.5 // indirect
69+
github.com/spf13/pflag v1.0.6 // indirect
7270
github.com/spf13/viper v1.18.0 // indirect
7371
github.com/subosito/gotenv v1.6.0 // indirect
74-
go.opencensus.io v0.24.0 // indirect
72+
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
73+
go.opentelemetry.io/otel v1.35.0 // indirect
74+
go.opentelemetry.io/otel/metric v1.35.0 // indirect
75+
go.opentelemetry.io/otel/trace v1.35.0 // indirect
7576
go.uber.org/atomic v1.9.0 // indirect
7677
go.uber.org/multierr v1.9.0 // indirect
7778
go.uber.org/zap v1.21.0 // indirect

e2e/go.sum

Lines changed: 27 additions & 72 deletions
Large diffs are not rendered by default.

pkg/event/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func GetErrorCodeFromError(err error) ErrorCode {
115115
return ErrorCodeInsufficientParticipants
116116
case contains(errStr, "incompatible"):
117117
return ErrorCodeIncompatiblePeerIDs
118-
case contains(errStr, "key not found", "no such key"):
118+
case contains(errStr, "not found", "no such key"):
119119
return ErrorCodeKeyNotFound
120120
case contains(errStr, "exists"):
121121
return ErrorCodeKeyAlreadyExists

0 commit comments

Comments
 (0)