Skip to content

Commit

Permalink
chore: fix some function names in comment (#1178)
Browse files Browse the repository at this point in the history
<!--- Provide a general summary of your changes in the Title above -->

## Description

 fix some function names in comment

## Related Issue(s)

<!--- This project only accepts pull requests related to open issues -->
<!--- If suggesting a new feature or change, please discuss it in an
issue first -->
<!--- If fixing a bug, there should be an issue describing it with steps
to reproduce -->
<!--- Please link to the issue here: -->

## Motivation and Context

<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->

## How Has This Been Tested?

<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran
to -->
<!--- see how your change affects other areas of the code, etc. -->

## Screenshots (if appropriate):

Signed-off-by: cuiyourong <cuiyourong@gmail.com>
  • Loading branch information
cuiyourong authored Dec 6, 2024
1 parent cbb9848 commit 94fb4dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/motr/internal/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var (
jsWasmHTTP = jsGlobal.Get("wasmhttp")
)

// serveFetch serves HTTP requests with optimized handler management
// ServeFetch serves HTTP requests with optimized handler management
func ServeFetch(handler http.Handler) func() {
h := handler
if h == nil {
Expand Down
2 changes: 1 addition & 1 deletion crypto/tecdsa/dklsv1/dealer/dealer.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/onsonr/sonr/crypto/tecdsa/dklsv1/dkg"
)

// GenerationAndDeal produces private key material for alice and bob which they can later use in signing.
// GenerateAndDeal produces private key material for alice and bob which they can later use in signing.
// Running actual DKG is ALWAYS recommended over using this function, as this function breaks the security guarantees of DKG.
// only use this function if you have a very good reason to.
func GenerateAndDeal(curve *curves.Curve) (*dkg.AliceOutput, *dkg.BobOutput, error) {
Expand Down
2 changes: 1 addition & 1 deletion x/did/types/crypto/crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func GenerateRSA() (crypto.PrivKey, DID, error) {
return priv, did, err
}

// GenerateEd25519 generates a Secp256k1 private key and the matching DID.
// GenerateSecp256k1 generates a Secp256k1 private key and the matching DID.
func GenerateSecp256k1() (crypto.PrivKey, DID, error) {
priv, pub, err := crypto.GenerateSecp256k1Key(rand.Reader)
if err != nil {
Expand Down

0 comments on commit 94fb4dc

Please sign in to comment.