Skip to content

Commit

Permalink
Update btcwire path import paths to new location.
Browse files Browse the repository at this point in the history
  • Loading branch information
davecgh committed Feb 5, 2015
1 parent 6c36218 commit 857a78f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example_test.go
Expand Up @@ -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
Expand All @@ -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)
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 857a78f

Please sign in to comment.