diff --git a/LICENSE b/LICENSE index b89063f..1736ede 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 HalalChain +Copyright (c) 2019 Qitmeer Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index cb3f394..4c006cf 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,18 @@ # qx -[![Build Status](https://travis-ci.com/HalalChain/qx.svg?branch=master)](https://travis-ci.com/HalalChain/qx) +[![Build Status](https://travis-ci.com/Qitmeer/qx.svg?branch=master)](https://travis-ci.com/Qitmeer/qx) qx is a command-line tool that provides a variety of commands for key management and transaction construction, such as random "seed" generation, public/private key encoding etc. qx cab be built and distributed as a single file binary, which works like the swiss army knife of qitmeer ## Installation ### Binary archives -* Binary archives are published at [releases](https://github.com/HalalChain/qx/releases "releases"). +* Binary archives are published at [releases](https://github.com/Qitmeer/qx/releases "releases"). ### How to build ```shell -~ git clone https://github.com/HalalChain/qx.git +~ git clone https://github.com/Qitmeer/qx.git ~ cd qx ~ go build ~ ./qx diff --git a/core/bip32verflag.go b/core/bip32verflag.go index 71bad2a..b17d2d0 100644 --- a/core/bip32verflag.go +++ b/core/bip32verflag.go @@ -5,8 +5,8 @@ package core import ( "fmt" - "github.com/HalalChain/qitmeer-lib/crypto/bip32" - "github.com/HalalChain/qitmeer-lib/params" + "github.com/Qitmeer/qitmeer-lib/crypto/bip32" + "github.com/Qitmeer/qitmeer-lib/params" ) var ( diff --git a/core/derivepathflag.go b/core/derivepathflag.go index 3d84455..2edb122 100644 --- a/core/derivepathflag.go +++ b/core/derivepathflag.go @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. package core -import "github.com/HalalChain/qitmeer-lib/wallet" +import "github.com/Qitmeer/qitmeer-lib/wallet" type DerivePathFlag struct { Path wallet.DerivationPath diff --git a/core/handle_addr.go b/core/handle_addr.go index becbf7b..693abd7 100644 --- a/core/handle_addr.go +++ b/core/handle_addr.go @@ -6,8 +6,8 @@ package core import ( "encoding/hex" "fmt" - "github.com/HalalChain/qitmeer-lib/common/encode/base58" - "github.com/HalalChain/qitmeer-lib/common/hash" + "github.com/Qitmeer/qitmeer-lib/common/encode/base58" + "github.com/Qitmeer/qitmeer-lib/common/hash" ) func EcPubKeyToAddress(version []byte, pubkey string) { diff --git a/core/handle_base58.go b/core/handle_base58.go index 9b62240..0c3c28d 100644 --- a/core/handle_base58.go +++ b/core/handle_base58.go @@ -6,9 +6,9 @@ package core import ( "encoding/hex" "fmt" - "github.com/HalalChain/qitmeer-lib/common/encode/base58" - "github.com/HalalChain/qitmeer-lib/common/hash" - "github.com/HalalChain/qitmeer-lib/common/util" + "github.com/Qitmeer/qitmeer-lib/common/encode/base58" + "github.com/Qitmeer/qitmeer-lib/common/hash" + "github.com/Qitmeer/qitmeer-lib/common/util" "github.com/pkg/errors" "strconv" ) diff --git a/core/handle_crypto.go b/core/handle_crypto.go index 69494b3..4c6ff25 100644 --- a/core/handle_crypto.go +++ b/core/handle_crypto.go @@ -6,14 +6,14 @@ package core import ( "encoding/hex" "fmt" - "github.com/HalalChain/qitmeer-lib/common/encode/base58" - "github.com/HalalChain/qitmeer-lib/common/hash" - "github.com/HalalChain/qitmeer-lib/crypto/bip32" - "github.com/HalalChain/qitmeer-lib/crypto/bip39" - "github.com/HalalChain/qitmeer-lib/crypto/ecc" - "github.com/HalalChain/qitmeer-lib/crypto/seed" - "github.com/HalalChain/qitmeer-lib/qx" - "github.com/HalalChain/qitmeer-lib/wallet" + "github.com/Qitmeer/qitmeer-lib/common/encode/base58" + "github.com/Qitmeer/qitmeer-lib/common/hash" + "github.com/Qitmeer/qitmeer-lib/crypto/bip32" + "github.com/Qitmeer/qitmeer-lib/crypto/bip39" + "github.com/Qitmeer/qitmeer-lib/crypto/ecc" + "github.com/Qitmeer/qitmeer-lib/crypto/seed" + "github.com/Qitmeer/qitmeer-lib/qx" + "github.com/Qitmeer/qitmeer-lib/wallet" "strconv" ) diff --git a/core/handle_hash.go b/core/handle_hash.go index 526f2a3..e68d347 100644 --- a/core/handle_hash.go +++ b/core/handle_hash.go @@ -7,9 +7,9 @@ import ( "crypto" "encoding/hex" "fmt" - "github.com/HalalChain/qitmeer-lib/common/hash" - "github.com/HalalChain/qitmeer-lib/common/hash/btc" - "github.com/HalalChain/qitmeer-lib/common/hash/dcr" + "github.com/Qitmeer/qitmeer-lib/common/hash" + "github.com/Qitmeer/qitmeer-lib/common/hash/btc" + "github.com/Qitmeer/qitmeer-lib/common/hash/dcr" ) func Sha256(input string){ diff --git a/core/handle_message.go b/core/handle_message.go index 5847b60..db22c64 100644 --- a/core/handle_message.go +++ b/core/handle_message.go @@ -4,12 +4,12 @@ import ( "bytes" "encoding/base64" "fmt" - "github.com/HalalChain/qitmeer-lib/common/encode/base58" - "github.com/HalalChain/qitmeer-lib/common/hash" - "github.com/HalalChain/qitmeer-lib/common/hash/btc" - "github.com/HalalChain/qitmeer-lib/core/serialization" - "github.com/HalalChain/qitmeer-lib/crypto/ecc" - "github.com/HalalChain/qitmeer-lib/crypto/ecc/secp256k1" + "github.com/Qitmeer/qitmeer-lib/common/encode/base58" + "github.com/Qitmeer/qitmeer-lib/common/hash" + "github.com/Qitmeer/qitmeer-lib/common/hash/btc" + "github.com/Qitmeer/qitmeer-lib/core/serialization" + "github.com/Qitmeer/qitmeer-lib/crypto/ecc" + "github.com/Qitmeer/qitmeer-lib/crypto/ecc/secp256k1" "reflect" ) diff --git a/core/handle_rlp.go b/core/handle_rlp.go index 054e4d5..7a1b914 100644 --- a/core/handle_rlp.go +++ b/core/handle_rlp.go @@ -8,7 +8,7 @@ import ( "encoding/hex" "encoding/json" "fmt" - "github.com/HalalChain/qitmeer-lib/common/encode/rlp" + "github.com/Qitmeer/qitmeer-lib/common/encode/rlp" "io" "strings" ) diff --git a/core/handle_tx.go b/core/handle_tx.go index 01abd35..4a1dcb6 100644 --- a/core/handle_tx.go +++ b/core/handle_tx.go @@ -7,14 +7,14 @@ import ( "bytes" "encoding/hex" "fmt" - "github.com/HalalChain/qitmeer-lib/common/hash" - "github.com/HalalChain/qitmeer-lib/common/marshal" - "github.com/HalalChain/qitmeer-lib/core/address" - "github.com/HalalChain/qitmeer-lib/core/json" - "github.com/HalalChain/qitmeer-lib/core/types" - "github.com/HalalChain/qitmeer-lib/engine/txscript" - "github.com/HalalChain/qitmeer-lib/params" - "github.com/HalalChain/qitmeer-lib/qx" + "github.com/Qitmeer/qitmeer-lib/common/hash" + "github.com/Qitmeer/qitmeer-lib/common/marshal" + "github.com/Qitmeer/qitmeer-lib/core/address" + "github.com/Qitmeer/qitmeer-lib/core/json" + "github.com/Qitmeer/qitmeer-lib/core/types" + "github.com/Qitmeer/qitmeer-lib/engine/txscript" + "github.com/Qitmeer/qitmeer-lib/params" + "github.com/Qitmeer/qitmeer-lib/qx" "github.com/pkg/errors" ) diff --git a/core/qitmeer58checkflag.go b/core/qitmeer58checkflag.go index dc86233..4c62d22 100644 --- a/core/qitmeer58checkflag.go +++ b/core/qitmeer58checkflag.go @@ -5,7 +5,7 @@ package core import ( "encoding/hex" - "github.com/HalalChain/qitmeer-lib/params" + "github.com/Qitmeer/qitmeer-lib/params" ) type QitmeerBase58checkVersionFlag struct { diff --git a/go.mod b/go.mod index 3692ab6..84b9724 100644 --- a/go.mod +++ b/go.mod @@ -1,9 +1,9 @@ -module github.com/HalalChain/qx +module github.com/Qitmeer/qx go 1.12 require ( - github.com/HalalChain/qitmeer-lib v0.0.0-20190721130711-1a6e2f92f260 + github.com/Qitmeer/qitmeer-lib v0.0.0-20190821053846-bf695e5493d1 github.com/pkg/errors v0.8.1 github.com/stretchr/testify v1.3.0 ) diff --git a/go.sum b/go.sum index 328242b..45008ab 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,5 @@ -github.com/HalalChain/qitmeer-lib v0.0.0-20190721040406-4411a4bdc58c h1:h/jGU9yVqqm+mPWBXIlPOW8UKq3QW6IbxfArRDRTa90= -github.com/HalalChain/qitmeer-lib v0.0.0-20190721040406-4411a4bdc58c/go.mod h1:x0ckSIpXRVxTMMzJCtUj0vqso3UV8fat2BIjkplRkF4= -github.com/HalalChain/qitmeer-lib v0.0.0-20190721130711-1a6e2f92f260 h1:h35Y+g/5WckgW6dgrXRCwyqP/NuPTaRgmEWGA7DSbuw= -github.com/HalalChain/qitmeer-lib v0.0.0-20190721130711-1a6e2f92f260/go.mod h1:x0ckSIpXRVxTMMzJCtUj0vqso3UV8fat2BIjkplRkF4= +github.com/Qitmeer/qitmeer-lib v0.0.0-20190821053846-bf695e5493d1 h1:kMzA31wyrFAQ6b8HuVstU+5jtZHa5ZRkMycI3bTJ+Qw= +github.com/Qitmeer/qitmeer-lib v0.0.0-20190821053846-bf695e5493d1/go.mod h1:qQJR7/HBuObR1j4+dt6hLCQ8ZxiyuXjaK8ePeptriJk= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dchest/blake256 v1.0.0/go.mod h1:xXNWCE1jsAP8DAjP+rKw2MbeqLczjI3TRx2VK+9OEYY= diff --git a/qx.go b/qx.go index 03f6d48..118a970 100644 --- a/qx.go +++ b/qx.go @@ -6,9 +6,9 @@ package main import ( "flag" "fmt" - "github.com/HalalChain/qitmeer-lib/crypto/seed" - "github.com/HalalChain/qitmeer-lib/wallet" - "github.com/HalalChain/qx/core" + "github.com/Qitmeer/qitmeer-lib/crypto/seed" + "github.com/Qitmeer/qitmeer-lib/wallet" + "github.com/Qitmeer/qx/core" "io/ioutil" "os" "strings" diff --git a/qx_test.go b/qx_test.go index accdcd5..dd71df7 100644 --- a/qx_test.go +++ b/qx_test.go @@ -6,9 +6,9 @@ package main import ( "encoding/hex" "github.com/stretchr/testify/assert" - "github.com/HalalChain/qitmeer-lib/common/encode/base58" - "github.com/HalalChain/qitmeer-lib/crypto/bip32" - "github.com/HalalChain/qitmeer-lib/crypto/bip39" + "github.com/Qitmeer/qitmeer-lib/common/encode/base58" + "github.com/Qitmeer/qitmeer-lib/crypto/bip32" + "github.com/Qitmeer/qitmeer-lib/crypto/bip39" "testing" )