From 6ad853019a1c2474236ba5abe0bbb12da91c1627 Mon Sep 17 00:00:00 2001
From: Marco Peereboom <marco@conformal.com>
Date: Wed, 6 Nov 2013 17:47:31 -0600
Subject: [PATCH] use fastsha256

---
 common.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common.go b/common.go
index db4da0ac..46c00406 100644
--- a/common.go
+++ b/common.go
@@ -6,9 +6,9 @@ package btcwire
 
 import (
 	"crypto/rand"
-	"crypto/sha256"
 	"encoding/binary"
 	"fmt"
+	"github.com/conformal/fastsha256"
 	"io"
 	"math"
 )
@@ -414,7 +414,7 @@ func RandomUint64() (uint64, error) {
 
 // DoubleSha256 calculates sha256(sha256(b)) and returns the resulting bytes.
 func DoubleSha256(b []byte) []byte {
-	hasher := sha256.New()
+	hasher := fastsha256.New()
 	hasher.Write(b)
 	sum := hasher.Sum(nil)
 	hasher.Reset()