Skip to content

Commit 28f8bca

Browse files
committed
address PR feedback
1 parent 3011f8e commit 28f8bca

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ecdsa.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ import (
3333
"github.com/onflow/crypto/hash"
3434
)
3535

36-
// ecdsaContext embeds SigningAlgorithm
36+
// ecdsaContext holds the signing algorithm and the curve parameters
37+
// shared by all ECDSA keys on that curve.
3738
type ecdsaContext struct {
3839
// the signing algo
3940
algo SigningAlgorithm
@@ -335,7 +336,7 @@ func (pk *pubKeyCommonECDSA) Size() int {
335336
return 2 * bitsToBytes(pk.curveP.BitLen())
336337
}
337338

338-
// Equals tests the equality of two private keys
339+
// Equals tests the equality of two public keys
339340
func pubKeyCommonECDSAEquals(pk, other PublicKey) bool {
340341
// a nil key is not equal to any key
341342
if other == nil {

0 commit comments

Comments
 (0)