Skip to content

Commit

Permalink
Syncer/Contractor: Fix double signing proof hash computation
Browse files Browse the repository at this point in the history
  • Loading branch information
janekolszak committed Mar 1, 2024
1 parent 7d872a4 commit d5aa450
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/utils/arweave/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ func (d DoubleSigningProof) Bytes() []byte {

buf := Encoder{Buffer: bytes.NewBuffer(nil)}
buf.RawWrite(byte(1))
buf.RawWriteSize(d.Key, 64)
buf.RawWriteSize(d.Sig1, 64)
buf.RawWriteSize(d.Key, 512)
buf.RawWriteSize(d.Sig1, 512)
buf.Write(d.CumulativeDiff1, 2)
buf.Write(d.PreviousCumulativeDiff1, 2)
buf.RawWriteSize(d.Preimage1, 8)
buf.RawWriteSize(d.Sig2, 64)
buf.RawWriteSize(d.Preimage1, 64)
buf.RawWriteSize(d.Sig2, 512)
buf.Write(d.CumulativeDiff2, 2)
buf.Write(d.PreviousCumulativeDiff2, 2)
buf.RawWriteSize(d.Preimage2, 8)
buf.RawWriteSize(d.Preimage2, 64)

return buf.Bytes()
}
Expand Down

0 comments on commit d5aa450

Please sign in to comment.