Skip to content

Commit

Permalink
can read SMC pub key from proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
jbsv committed Feb 7, 2024
1 parent b2e2bf9 commit 3cb42cc
Show file tree
Hide file tree
Showing 9 changed files with 160 additions and 171 deletions.
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,5 @@
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=hbt-android&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=hbt-android)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=hbt-android&metric=coverage)](https://sonarcloud.io/summary/new_code?id=hbt-android)

**Ledger (Go)** :
[![Ledger (go)](https://github.com/dedis/hbt/actions/workflows/ledger.yml/badge.svg)](https://github.com/dedis/hbt/actions/workflows/ledger.yml)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=hbt-go&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=hbt-go)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=hbt-go&metric=coverage)](https://sonarcloud.io/summary/new_code?id=hbt-go)

Browse the documentation at
[https://dedis.github.io/hbt/](https://dedis.github.io/hbt/).
152 changes: 0 additions & 152 deletions ledger/go.sum

This file was deleted.

2 changes: 2 additions & 0 deletions server/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ module go.dedis.ch/hbt/server

go 1.21

replace go.dedis.ch/dela => ../../dela

require (
github.com/gorilla/mux v1.8.1
github.com/spf13/viper v1.18.1
Expand Down
2 changes: 0 additions & 2 deletions server/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsr
github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d h1:splanxYIlg+5LfHAM6xpdFEAYOk8iySO56hMFq6uLyA=
github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
go.dedis.ch/dela v0.0.0-20230814162536-4bcfa7981c82 h1:nSPgGOk0izc9hSmUVGe8TT+rSLuePz+AH0VxtIywOBU=
go.dedis.ch/dela v0.0.0-20230814162536-4bcfa7981c82/go.mod h1:FkatZT04/Bc6cm3ShMMuDc83/zX2OTmqBl5NhuW6W4s=
go.dedis.ch/fixbuf v1.0.3 h1:hGcV9Cd/znUxlusJ64eAlExS+5cJDIyTyEG+otu5wQs=
go.dedis.ch/fixbuf v1.0.3/go.mod h1:yzJMt34Wa5xD37V5RTdmp38cz3QhMagdGoem9anUalw=
go.dedis.ch/kyber/v3 v3.0.4/go.mod h1:OzvaEnPvKlyrWyp3kGXlFdp7ap1VC6RkZDTaPikqhsQ=
Expand Down
10 changes: 8 additions & 2 deletions server/scripts/start_smc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ NC='\033[0m' # no Color
L=info # default trace level
S=hbt # session name
W=smc # window name
N=4 # number of nodes
N=3 # number of nodes
P=11000 # base port number
PROXY=40000 # base proxy port number

echo -e "${GREEN}[PARSE parameters]${NC}"
while getopts n:p:s:t:w: flag
Expand Down Expand Up @@ -57,13 +58,15 @@ i=1;
while [ ${i} -le ${N} ]
do
p=$((P + i))
proxy=$((PROXY + i))
echo -e "${GREEN}creating node #${i} on port ${p}${NC}"
# session s, window 0, panes 1 to N
tmux send-keys -t ${S}:${W}.${i} "LLVL=${L} LOGF=./${W}${i}.log smccli --config /tmp/${W}${i} start --listen tcp://127.0.0.1:${p}" C-m
tmux send-keys -t ${S}:${W}.${i} "LLVL=${L} LOGF=./${W}${i}.log smccli --config /tmp/${W}${i} start --listen tcp://127.0.0.1:${p} --proxyaddr 127.0.0.1:${proxy}" C-m
sleep 0.5
i=$((i + 1));
done

sleep 1

echo -e "${GREEN}[CONNECT]${NC} ${N} nodes and exchange certificates"
i=2;
Expand All @@ -74,6 +77,7 @@ do
i=$((i + 1));
done

sleep 1

echo -e "${GREEN}[INITIALIZE DKG]${NC} on each node"
i=1;
Expand All @@ -83,6 +87,7 @@ do
i=$((i + 1));
done

sleep 1

echo -e "${GREEN}[SETUP DKG]${NC} ${N} nodes"
i=1;
Expand All @@ -94,6 +99,7 @@ do
done
tmux send-keys -t "${MASTERPANE}" "smccli --config /tmp/${W}1 dkg setup ${a} --threshold ${N} | tee smckey.pub" C-m

sleep 1

# Publish the roster
echo -e "${GREEN}[SAVE]${NC} roster to file"
Expand Down
Loading

0 comments on commit 3cb42cc

Please sign in to comment.