code copy issue

This commit is contained in:
Sun Yimin 2022-05-18 17:42:26 +08:00 committed by GitHub
parent e7bfecaf49
commit 14e38f9aa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,7 +117,7 @@ func (mode pointMarshalMode) mashal(curve elliptic.Curve, x, y *big.Int) []byte
func toBytes(curve elliptic.Curve, value *big.Int) []byte {
byteLen := (curve.Params().BitSize + 7) >> 3
result := make([]byte, byteLen)
value.FillBytes(result[:])
value.FillBytes(result)
return result
}