func SetBytes(d []byte, b *types.Bloom) {
	if len(b) < len(d) {
		panic(fmt.Sprintf("bloom bytes too big %d %d", len(b), len(d)))
	}
	copy(b[types.BloomByteLength-len(d):], d)
}
SetBytes sets the content of b to the given bytes.
It panics if d is not of suitable size.
package common
import (
	"fmt"
	"github.com/DSiSc/craft/types"
	"github.com/DSiSc/crypto-suite/crypto"
	"math/big"
)
func BytesToBloom(b []byte) types.Bloom {
	var bloom types.Bloom
	SetBytes(b, &bloom)
	return bloom
}