This commit is contained in:
Sergio Mena
2022-10-12 12:49:09 +02:00
parent 1362e45896
commit a6f56dc722
+1 -1
View File
@@ -29,7 +29,7 @@ func NewBytes(p *Payload) ([]byte, error) {
// We halve the padding size because we transform the TX to hex
// We add 1 to account for the initial padding byte
p.Padding = make([]byte, (p.Size-uint64(us))/2+1) //
p.Padding = make([]byte, (p.Size-uint64(us))/2+1)
_, err = rand.Read(p.Padding)
if err != nil {
return nil, err