There was an error while loading. Please reload this page.
1 parent 3011f8e commit 28f8bcaCopy full SHA for 28f8bca
1 file changed
ecdsa.go
@@ -33,7 +33,8 @@ import (
33
"github.com/onflow/crypto/hash"
34
)
35
36
-// ecdsaContext embeds SigningAlgorithm
+// ecdsaContext holds the signing algorithm and the curve parameters
37
+// shared by all ECDSA keys on that curve.
38
type ecdsaContext struct {
39
// the signing algo
40
algo SigningAlgorithm
@@ -335,7 +336,7 @@ func (pk *pubKeyCommonECDSA) Size() int {
335
336
return 2 * bitsToBytes(pk.curveP.BitLen())
337
}
338
-// Equals tests the equality of two private keys
339
+// Equals tests the equality of two public keys
340
func pubKeyCommonECDSAEquals(pk, other PublicKey) bool {
341
// a nil key is not equal to any key
342
if other == nil {
0 commit comments