Commit f97716eb authored by obscuren's avatar obscuren

Added new big from []bytes

parent 9581faf5
...@@ -24,3 +24,12 @@ func Big(num string) *big.Int { ...@@ -24,3 +24,12 @@ func Big(num string) *big.Int {
return n 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
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment