func BigToLittleBytes(in *big.Int) []byte {
	bigEndianBytes := in.Bytes()
	blen := len(bigEndianBytes)

	for i := 0; i < blen/2; i++ {
		bigEndianBytes[i], bigEndianBytes[blen-1-i] = bigEndianBytes[blen-1-i], bigEndianBytes[i]
	}

	return bigEndianBytes
}
// BigToLittleBytes converts a big int to a little endian bytes
BigToLittleBytes converts a big int to a little endian bytes
// BigToLittleBytes converts a big int to a little endian bytes
func BigToLittleBytes(in *big.Int) []byte {
	bigEndianBytes := in.Bytes()
	blen := len(bigEndianBytes)
	for i := 0; i < blen/2; i++ {
		bigEndianBytes[i], bigEndianBytes[blen-1-i] = bigEndianBytes[blen-1-i], bigEndianBytes[i]
	}
	return bigEndianBytes
}
func BigToLittleBytes ( in * big . Int ) [ ] byte { bigEndianBytes := in . Bytes ( ) blen := len ( bigEndianBytes ) for i := 0 ; i < blen / 2 ; i ++ { bigEndianBytes [ i ] , bigEndianBytes [ blen - 1 - i ] = bigEndianBytes [ blen - 1 - i ] , bigEndianBytes [ i ] } return bigEndianBytes }
BigToLittleBytes converts a big int to a little endian bytes
BigToLittleBytes converts a big int to a little endian bytes