diff --git a/cmd/motr/internal/fetch.go b/cmd/motr/internal/fetch.go index cde3fd96f..c5e715efc 100644 --- a/cmd/motr/internal/fetch.go +++ b/cmd/motr/internal/fetch.go @@ -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 { diff --git a/crypto/tecdsa/dklsv1/dealer/dealer.go b/crypto/tecdsa/dklsv1/dealer/dealer.go index f14bf0a96..3f257a387 100755 --- a/crypto/tecdsa/dklsv1/dealer/dealer.go +++ b/crypto/tecdsa/dklsv1/dealer/dealer.go @@ -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) { diff --git a/x/did/types/crypto/crypto.go b/x/did/types/crypto/crypto.go index ff2499342..18d11d28d 100644 --- a/x/did/types/crypto/crypto.go +++ b/x/did/types/crypto/crypto.go @@ -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 {