mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
chore: fix some function names in comment (#1178)
<!--- 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>
This commit is contained in:
parent
cbb98481c8
commit
94fb4dceac
@ -30,7 +30,7 @@ var (
|
|||||||
jsWasmHTTP = jsGlobal.Get("wasmhttp")
|
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() {
|
func ServeFetch(handler http.Handler) func() {
|
||||||
h := handler
|
h := handler
|
||||||
if h == nil {
|
if h == nil {
|
||||||
|
@ -21,7 +21,7 @@ import (
|
|||||||
"github.com/onsonr/sonr/crypto/tecdsa/dklsv1/dkg"
|
"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.
|
// 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.
|
// only use this function if you have a very good reason to.
|
||||||
func GenerateAndDeal(curve *curves.Curve) (*dkg.AliceOutput, *dkg.BobOutput, error) {
|
func GenerateAndDeal(curve *curves.Curve) (*dkg.AliceOutput, *dkg.BobOutput, error) {
|
||||||
|
@ -42,7 +42,7 @@ func GenerateRSA() (crypto.PrivKey, DID, error) {
|
|||||||
return priv, did, err
|
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) {
|
func GenerateSecp256k1() (crypto.PrivKey, DID, error) {
|
||||||
priv, pub, err := crypto.GenerateSecp256k1Key(rand.Reader)
|
priv, pub, err := crypto.GenerateSecp256k1Key(rand.Reader)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user