fixed bug for h2048 (#367)

This commit is contained in:
Giulio rebuffo 2022-03-16 03:59:25 +01:00 committed by GitHub
parent 6687e6b4d6
commit 9b99057af4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,13 +31,13 @@ func ConvertH2048ToBloom(h2048 *types.H2048) [256]byte {
func ConvertBytesToH2048(data []byte) *types.H2048 {
return &types.H2048{
Lo: &types.H1024{
Lo: ConvertBytesToH512(data),
Hi: ConvertBytesToH512(data[64:]),
},
Hi: &types.H1024{
Lo: ConvertBytesToH512(data[128:]),
Hi: ConvertBytesToH512(data[192:]),
Hi: ConvertBytesToH512(data),
Lo: ConvertBytesToH512(data[64:]),
},
Lo: &types.H1024{
Hi: ConvertBytesToH512(data[128:]),
Lo: ConvertBytesToH512(data[192:]),
},
}
}