File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ services:
46
46
- RUST_BACKTRACE=1
47
47
- GOOGLE_APPLICATION_CREDENTIALS_JSON=${GOOGLE_APPLICATION_CREDENTIALS_JSON}
48
48
- NETWORK=${NETWORK}
49
- - PROTOCOL_PARAMETERS__K=5
50
- - PROTOCOL_PARAMETERS__M=100
51
- - PROTOCOL_PARAMETERS__PHI_F=0.65
49
+ - PROTOCOL_PARAMETERS__K=${PROTOCOL_PARAMETERS__K}
50
+ - PROTOCOL_PARAMETERS__M=${PROTOCOL_PARAMETERS__M}
51
+ - PROTOCOL_PARAMETERS__PHI_F=${PROTOCOL_PARAMETERS__PHI_F}
52
52
- RUN_INTERVAL=60000
53
53
- URL_SNAPSHOT_MANIFEST=https://storage.googleapis.com/${SNAPSHOT_BUCKET_NAME}/snapshots.json
54
54
- SNAPSHOT_STORE_TYPE=local
Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ resource "null_resource" "mithril_aggregator" {
34
34
" export SNAPSHOT_BUCKET_NAME='${ google_storage_bucket . cloud_storage . name } '" ,
35
35
" export GENESIS_VERIFICATION_KEY=$(wget -q -O - ${ var . mithril_genesis_verification_key_url } )" ,
36
36
" export GENESIS_SECRET_KEY='${ var . mithril_genesis_secret_key } '" ,
37
+ " export PROTOCOL_PARAMETERS__K='${ var . mithril_protocol_parameters . k } '" ,
38
+ " export PROTOCOL_PARAMETERS__M='${ var . mithril_protocol_parameters . m } '" ,
39
+ " export PROTOCOL_PARAMETERS__PHI_F='${ var . mithril_protocol_parameters . phi_f } '" ,
37
40
" export CURRENT_UID=$(id -u)" ,
38
41
" export DOCKER_GID=$(getent group docker | cut -d: -f3)" ,
39
42
" docker-compose -f /home/curry/docker/docker-compose-aggregator.yaml --profile all up -d" ,
Original file line number Diff line number Diff line change @@ -73,6 +73,20 @@ variable "mithril_genesis_secret_key" {
73
73
description = " The Mithril genesis secret key used by the aggregator to bootstrap a genesis certificate (test only)"
74
74
}
75
75
76
+ variable "mithril_protocol_parameters" {
77
+ type = object ({
78
+ k = number ,
79
+ m = number ,
80
+ phi_f = number
81
+ })
82
+ description = " The Mithril protocol parameters used to aggregate multi signatures"
83
+ default = {
84
+ k = 5
85
+ m = 100
86
+ phi_f = 0.65
87
+ }
88
+ }
89
+
76
90
variable "mithril_signers" {
77
91
type = map (object ({
78
92
pool_id = string
You can’t perform that action at this time.
0 commit comments