From 27b26a72f32e40c4f0f7f4d5421027d346885263 Mon Sep 17 00:00:00 2001 From: marston Date: Sat, 28 Oct 2023 16:31:49 -0400 Subject: [PATCH] changing package name to v2 --- blake2b/hash_test.go | 2 +- encoding.go | 6 +++--- encoding_test.go | 2 +- example_test.go | 2 +- go.mod | 2 +- keccak256/hash_test.go | 2 +- merkletree_test.go | 6 +++--- multiproof.go | 2 +- parameters.go | 2 +- pollard.go | 2 +- proof.go | 2 +- sha3/sha256_test.go | 2 +- sha3/sha512_test.go | 2 +- 13 files changed, 17 insertions(+), 17 deletions(-) diff --git a/blake2b/hash_test.go b/blake2b/hash_test.go index 4c7d50d..6a916a5 100644 --- a/blake2b/hash_test.go +++ b/blake2b/hash_test.go @@ -19,7 +19,7 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/wealdtech/go-merkletree/blake2b" + "github.com/wealdtech/go-merkletree/v2/blake2b" ) // _byteArray is a helper to turn a string in to a byte array diff --git a/encoding.go b/encoding.go index 01da4ab..55dc716 100644 --- a/encoding.go +++ b/encoding.go @@ -4,9 +4,9 @@ import ( "encoding/json" "github.com/pkg/errors" - "github.com/wealdtech/go-merkletree/blake2b" - "github.com/wealdtech/go-merkletree/keccak256" - "github.com/wealdtech/go-merkletree/sha3" + "github.com/wealdtech/go-merkletree/v2/blake2b" + "github.com/wealdtech/go-merkletree/v2/keccak256" + "github.com/wealdtech/go-merkletree/v2/sha3" ) // MarshalJSON implements json.Marshaler. diff --git a/encoding_test.go b/encoding_test.go index 3db56f6..8786c1a 100644 --- a/encoding_test.go +++ b/encoding_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/stretchr/testify/require" - "github.com/wealdtech/go-merkletree/sha3" + "github.com/wealdtech/go-merkletree/v2/sha3" ) func TestEncoding(t *testing.T) { diff --git a/example_test.go b/example_test.go index 09ad7c7..09150ee 100644 --- a/example_test.go +++ b/example_test.go @@ -16,7 +16,7 @@ package merkletree_test import ( "fmt" - merkletree "github.com/wealdtech/go-merkletree" + merkletree "github.com/wealdtech/go-merkletree/v2" ) // Example using the Merkle tree to generate and verify proofs. diff --git a/go.mod b/go.mod index 0c3f0ab..c418eda 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/wealdtech/go-merkletree +module github.com/wealdtech/go-merkletree/v2 go 1.19 diff --git a/keccak256/hash_test.go b/keccak256/hash_test.go index 60b6889..b08d56b 100644 --- a/keccak256/hash_test.go +++ b/keccak256/hash_test.go @@ -19,7 +19,7 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/wealdtech/go-merkletree/keccak256" + "github.com/wealdtech/go-merkletree/v2/keccak256" ) // _byteArray is a helper to turn a string in to a byte array diff --git a/merkletree_test.go b/merkletree_test.go index f272fa7..cf19d81 100644 --- a/merkletree_test.go +++ b/merkletree_test.go @@ -21,9 +21,9 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/wealdtech/go-merkletree/blake2b" - "github.com/wealdtech/go-merkletree/keccak256" - "github.com/wealdtech/go-merkletree/sha3" + "github.com/wealdtech/go-merkletree/v2/blake2b" + "github.com/wealdtech/go-merkletree/v2/keccak256" + "github.com/wealdtech/go-merkletree/v2/sha3" ) // _byteArray is a helper to turn a string in to a byte array diff --git a/multiproof.go b/multiproof.go index 04cd747..344d398 100644 --- a/multiproof.go +++ b/multiproof.go @@ -18,7 +18,7 @@ import ( "encoding/binary" "github.com/pkg/errors" - "github.com/wealdtech/go-merkletree/blake2b" + "github.com/wealdtech/go-merkletree/v2/blake2b" ) // MultiProof is a single structure containing multiple proofs of a Merkle tree. diff --git a/parameters.go b/parameters.go index 8a37612..e0b37af 100644 --- a/parameters.go +++ b/parameters.go @@ -16,7 +16,7 @@ package merkletree import ( "errors" - "github.com/wealdtech/go-merkletree/blake2b" + "github.com/wealdtech/go-merkletree/v2/blake2b" ) type parameters struct { diff --git a/pollard.go b/pollard.go index 6fce48c..cec38fb 100644 --- a/pollard.go +++ b/pollard.go @@ -16,7 +16,7 @@ package merkletree import ( "bytes" - "github.com/wealdtech/go-merkletree/blake2b" + "github.com/wealdtech/go-merkletree/v2/blake2b" ) // VerifyPollard ensures that the branches in the pollard match up with the root using the default hash type. diff --git a/proof.go b/proof.go index d483084..21c8338 100644 --- a/proof.go +++ b/proof.go @@ -17,7 +17,7 @@ import ( "bytes" "encoding/binary" - "github.com/wealdtech/go-merkletree/blake2b" + "github.com/wealdtech/go-merkletree/v2/blake2b" ) // Proof is a proof of a Merkle tree. diff --git a/sha3/sha256_test.go b/sha3/sha256_test.go index b1be5bb..a1ee07b 100644 --- a/sha3/sha256_test.go +++ b/sha3/sha256_test.go @@ -19,7 +19,7 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/wealdtech/go-merkletree/sha3" + "github.com/wealdtech/go-merkletree/v2/sha3" ) // _byteArray is a helper to turn a string in to a byte array diff --git a/sha3/sha512_test.go b/sha3/sha512_test.go index 50c454c..4044f41 100644 --- a/sha3/sha512_test.go +++ b/sha3/sha512_test.go @@ -18,7 +18,7 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/wealdtech/go-merkletree/sha3" + "github.com/wealdtech/go-merkletree/v2/sha3" ) func Test512Hash(t *testing.T) {