@@ -262,7 +262,7 @@ func sign(privateKey *PrivateKey, message []byte, domPre, context string) ([]byt
262262 byteLen := (params .BitSize + 7 ) / 8
263263
264264 seed := privateKey .Seed ()
265- publicKeyBytes := ed521 .MarshalPoint (privateKey .Curve , privateKey .X , privateKey .Y )
265+ eA := ed521 .MarshalPoint (privateKey .Curve , privateKey .X , privateKey .Y )
266266
267267 h := make ([]byte , 132 )
268268 sha3 .ShakeSum256 (h , seed )
@@ -295,7 +295,7 @@ func sign(privateKey *PrivateKey, message []byte, domPre, context string) ([]byt
295295 kh .Write ([]byte {byte (len (context ))})
296296 kh .Write ([]byte (context ))
297297 kh .Write (R )
298- kh .Write (publicKeyBytes )
298+ kh .Write (eA )
299299 kh .Write (PHM )
300300 hramDigest := make ([]byte , 132 )
301301 kh .Read (hramDigest )
@@ -388,14 +388,14 @@ func verify(publicKey *PublicKey, message, sig []byte, domPre, context string) b
388388 SBytes := ed521 .Reverse (sig [byteLen :])
389389 S := new (big.Int ).SetBytes (SBytes )
390390
391- publicKeyBytes := ed521 .MarshalPoint (publicKey .Curve , publicKey .X , publicKey .Y )
391+ eA := ed521 .MarshalPoint (publicKey .Curve , publicKey .X , publicKey .Y )
392392
393393 kh := sha3 .NewShake256 ()
394394 kh .Write ([]byte (domPre ))
395395 kh .Write ([]byte {byte (len (context ))})
396396 kh .Write ([]byte (context ))
397397 kh .Write (R )
398- kh .Write (publicKeyBytes )
398+ kh .Write (eA )
399399 kh .Write (PHM )
400400 hramDigest := make ([]byte , 132 )
401401 kh .Read (hramDigest )
0 commit comments