1- use dkls23:: keygen:: key_refresh:: KeyshareForRefresh ;
21use k256:: elliptic_curve:: group:: GroupEncoding ;
32use rand:: Rng ;
43use rand_chacha:: ChaCha20Rng ;
54use rand_core:: SeedableRng ;
5+ use sl_dkls23:: keygen:: key_refresh:: KeyshareForRefresh ;
66use sl_mpc_mate:: coord:: SimpleMessageRelay ;
77use std:: sync:: Arc ;
88use tokio:: task:: JoinSet ;
@@ -27,7 +27,7 @@ pub async fn main() {
2727 let coord = SimpleMessageRelay :: new ( ) ;
2828
2929 // Here the parties are simulated as in a real world example but locally as a set of rust async tasks:
30- // One task for each node to run the dkls23 ecdsa refresh algorithm
30+ // One task for each node to run the DKLs23 ecdsa refresh algorithm
3131 let mut parties = JoinSet :: new ( ) ;
3232
3333 // Tag into a new type the old key shares in order to be identifiable as key shares to be refreshed from the existing refresh
@@ -51,7 +51,7 @@ pub async fn main() {
5151 . collect :: < Vec < _ > > ( )
5252 {
5353 // run the keyrefresh protocol for each node
54- parties. spawn ( dkls23 :: keygen:: key_refresh:: run (
54+ parties. spawn ( sl_dkls23 :: keygen:: key_refresh:: run (
5555 setup,
5656 rng. gen ( ) ,
5757 coord. connect ( ) ,
@@ -92,7 +92,11 @@ pub async fn main() {
9292
9393 let mut parties: JoinSet < Result < _ , _ > > = JoinSet :: new ( ) ;
9494 for setup in common:: shared:: setup_dsg ( subset, "m" ) {
95- parties. spawn ( dkls23:: sign:: run ( setup, rng. gen ( ) , coord. connect ( ) ) ) ;
95+ parties. spawn ( sl_dkls23:: sign:: run (
96+ setup,
97+ rng. gen ( ) ,
98+ coord. connect ( ) ,
99+ ) ) ;
96100 }
97101
98102 while let Some ( fini) = parties. join_next ( ) . await {
0 commit comments