corona → corona — final sweep (live source clean)

This commit is contained in:
Hanzo AI
2026-06-06 16:37:49 -07:00
parent 5fbfa7041f
commit c12c4854a9
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -121,15 +121,15 @@ type ThresholdEngine interface {
```go ```go
// Validator creates their share // Validator creates their share
precomp, _ := corona.Precompute(validatorSK) precomp, _ := Corona.Precompute(validatorSK)
share, _ := corona.QuickSign(precomp, blockHash) share, _ := Corona.QuickSign(precomp, blockHash)
// Collect shares from t validators // Collect shares from t validators
shares := collectSharesFromValidators() shares := collectSharesFromValidators()
// Aggregate into final certificate // Aggregate into final certificate
if len(shares) >= threshold { if len(shares) >= threshold {
cert, _ := corona.Aggregate(shares) cert, _ := Corona.Aggregate(shares)
// cert is the threshold signature // cert is the threshold signature
} }
``` ```
+2 -2
View File
@@ -130,7 +130,7 @@ Pulsar threshold operations depend on the consensus layer.
func exportPublicKeys(s *signer.Signer) map[string][]byte { func exportPublicKeys(s *signer.Signer) map[string][]byte {
return map[string][]byte{ return map[string][]byte{
"bls": s.GetBLSPublicKey(), "bls": s.GetBLSPublicKey(),
"corona": s.GetCoronaPublicKey().Bytes(), "Corona": s.GetCoronaPublicKey().Bytes(),
} }
} }
``` ```
@@ -140,7 +140,7 @@ func exportPublicKeys(s *signer.Signer) map[string][]byte {
```go ```go
// For advanced operations // For advanced operations
blsKey := s.BLSSecretKey() blsKey := s.BLSSecretKey()
coronaKey := s.CoronaPrivateKey() CoronaKey := s.CoronaPrivateKey()
``` ```
## Security Considerations ## Security Considerations