mirror of
https://github.com/arnaucube/arbo.git
synced 2026-01-09 07:21:28 +01:00
Update db usage to new dvote.db interface version
This commit is contained in:
2
utils.go
2
utils.go
@@ -13,7 +13,7 @@ func SwapEndianness(b []byte) []byte {
|
||||
|
||||
// BigIntToBytes converts a *big.Int into a byte array in Little-Endian
|
||||
func BigIntToBytes(blen int, bi *big.Int) []byte {
|
||||
// var b [blen]byte // TODO make the length depending on the tree.hashFunction.Len()
|
||||
// TODO make the length depending on the tree.hashFunction.Len()
|
||||
b := make([]byte, blen)
|
||||
copy(b[:], SwapEndianness(bi.Bytes()))
|
||||
return b[:]
|
||||
|
||||
Reference in New Issue
Block a user