Skip to content

Commit 234fbb8

Browse files
committed
Update keys.go
1 parent 19da6f8 commit 234fbb8

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

keys.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,8 @@ func ValidatePrivateKey(b []byte) (bool, error) {
7272
if len(b) != voied25519.PrivateKeySize {
7373
return false, fmt.Errorf("invalid private key size, expected %v, got %d", voied25519.PrivateKeySize, len(b))
7474
}
75-
<<<<<<< HEAD
75+
7676
// check if the public key is on the ed25519 curve
77-
=======
78-
// check if the public key is on the voied25519 curve
79-
>>>>>>> f4f19e0 (rename)
8077
pub := voied25519.PrivateKey(b).Public().(voied25519.PublicKey)
8178
if !IsOnCurve(pub) {
8279
return false, errors.New("the corresponding public key is NOT on the voied25519 curve")
@@ -156,11 +153,7 @@ func (k PrivateKey) PublicKey() PublicKey {
156153
// PK is a convenience alias for PublicKey
157154
type PK = PublicKey
158155

159-
<<<<<<< HEAD
160-
// done to keep verify the same as stdlib crypto/ed25519
161-
=======
162156
// done to keep verify the same as stdlib crypto/voied25519
163-
>>>>>>> f4f19e0 (rename)
164157
var verifyOptsStdLib = &voied25519.Options{
165158
Verify: voied25519.VerifyOptionsStdLib,
166159
}

0 commit comments

Comments
 (0)