Skip to content

Commit

Permalink
Merge pull request #17 from nitronit/entangle-threshold-signer
Browse files Browse the repository at this point in the history
Fix the switch case so default signer is SoftSign
  • Loading branch information
nitronit authored Aug 22, 2022
2 parents 4001463 + 26615da commit 921743b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion signer/threshold_ed25519_signer.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package signer

import (
"log"

tsed25519 "gitlab.com/unit410/threshold-ed25519/pkg"
)

Expand Down Expand Up @@ -51,6 +53,9 @@ func NewLocalSigner(signertype string, cfg LocalCosignerConfig) ThresholdEd25519
localsigner := NewLocalHSMSignThresholdEd25519SignatureConfig(cfg)
return localsigner.NewThresholdEd25519Signature()
default:
panic("Need to be Softsign as its the only one implemented")
// panic("Need to be Softsign as its the only one implemented")
log.Println("Defaulted to be Softsign as its the only one implemented so far")
localsigner := NewLocalSoftSignThresholdEd25519SignatureConfig(cfg)
return localsigner.NewThresholdEd25519Signature()
}
}

0 comments on commit 921743b

Please sign in to comment.