mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-20 10:00:41 +00:00
Added new big from []bytes
This commit is contained in:
parent
9581faf5fd
commit
f97716ebe2
1 changed files with 9 additions and 0 deletions
9
big.go
9
big.go
|
|
@ -24,3 +24,12 @@ func Big(num string) *big.Int {
|
|||
return n
|
||||
}
|
||||
|
||||
/*
|
||||
* Like big.NewInt(uint64); this takes a byte buffer instead.
|
||||
*/
|
||||
func BigD(data []byte) *big.Int {
|
||||
n := new(big.Int)
|
||||
n.SetBytes(data)
|
||||
|
||||
return n
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue