From 857a78fcdf2ab76906279486d0ca60c3ad78a571 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Thu, 5 Feb 2015 14:57:50 -0600 Subject: [PATCH] Update btcwire path import paths to new location. --- example_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example_test.go b/example_test.go index cae75fbe..69fac861 100644 --- a/example_test.go +++ b/example_test.go @@ -8,8 +8,8 @@ import ( "encoding/hex" "fmt" + "github.com/btcsuite/btcd/wire" "github.com/btcsuite/btcec" - "github.com/btcsuite/btcwire" ) // This example demonstrates signing a message with a secp256k1 private key that @@ -26,7 +26,7 @@ func Example_signMessage() { // Sign a message using the private key. message := "test message" - messageHash := btcwire.DoubleSha256([]byte(message)) + messageHash := wire.DoubleSha256([]byte(message)) signature, err := privKey.Sign(messageHash) if err != nil { fmt.Println(err) @@ -80,7 +80,7 @@ func Example_verifySignature() { // Verify the signature for the message using the public key. message := "test message" - messageHash := btcwire.DoubleSha256([]byte(message)) + messageHash := wire.DoubleSha256([]byte(message)) verified := signature.Verify(messageHash, pubKey) fmt.Println("Signature Verified?", verified)