Skip to content

Commit

Permalink
Merge pull request #67 from dedis/smc-web-interface
Browse files Browse the repository at this point in the history
can read SMC pub key from proxy
  • Loading branch information
jbsv authored Feb 11, 2024
2 parents b2e2bf9 + ea2f7c4 commit 2976125
Show file tree
Hide file tree
Showing 8 changed files with 155 additions and 172 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
8 changes: 3 additions & 5 deletions server/scripts/start_smc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ S=hbt # session name
W=smc # window name
N=4 # 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,14 +58,14 @@ 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


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


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


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


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

0 comments on commit 2976125

Please sign in to comment.