diff options
author | zelig <viktor.tron@gmail.com> | 2015-03-05 17:55:11 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-03-05 17:55:11 +0800 |
commit | 45afbe5d9cdd3da2443d4d407fc1b57b03f6ce9b (patch) | |
tree | 01c71c40981f4f75e1721011006d2da96dfc3c2d /ethutil/big.go | |
parent | 7315962880e63de070c3b48c11bd249489df4141 (diff) | |
parent | c47866d25174bd783ee6bcd5b400d81d7bf598bb (diff) | |
download | dexon-45afbe5d9cdd3da2443d4d407fc1b57b03f6ce9b.tar dexon-45afbe5d9cdd3da2443d4d407fc1b57b03f6ce9b.tar.gz dexon-45afbe5d9cdd3da2443d4d407fc1b57b03f6ce9b.tar.bz2 dexon-45afbe5d9cdd3da2443d4d407fc1b57b03f6ce9b.tar.lz dexon-45afbe5d9cdd3da2443d4d407fc1b57b03f6ce9b.tar.xz dexon-45afbe5d9cdd3da2443d4d407fc1b57b03f6ce9b.tar.zst dexon-45afbe5d9cdd3da2443d4d407fc1b57b03f6ce9b.zip |
Merge remote-tracking branch 'upstream/poc-9' into blockpool3
Diffstat (limited to 'ethutil/big.go')
-rw-r--r-- | ethutil/big.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ethutil/big.go b/ethutil/big.go index 2ff1c72d8..1716a7ce3 100644 --- a/ethutil/big.go +++ b/ethutil/big.go @@ -25,12 +25,13 @@ func Big(num string) *big.Int { // BigD // // Shortcut for new(big.Int).SetBytes(...) -func BigD(data []byte) *big.Int { +func Bytes2Big(data []byte) *big.Int { n := new(big.Int) n.SetBytes(data) return n } +func BigD(data []byte) *big.Int { return Bytes2Big(data) } func BitTest(num *big.Int, i int) bool { return num.Bit(i) > 0 |