From f97716ebe287349729821d826141e73a6e55702e Mon Sep 17 00:00:00 2001
From: obscuren <obscuren@obscura.com>
Date: Sat, 4 Jan 2014 00:30:19 +0100
Subject: Added new big from []bytes

---
 big.go | 9 +++++++++
 1 file changed, 9 insertions(+)

(limited to 'big.go')

diff --git a/big.go b/big.go
index 44bfee2e4..b0fbcb64f 100644
--- a/big.go
+++ b/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
+}
-- 
cgit v1.2.3