rename pkg to hardware-wallet-go

This commit is contained in:
Andrea Franz 2018-11-06 10:25:54 +01:00
parent 1cdee35414
commit 828b7be733
No known key found for this signature in database
GPG Key ID: 4F0D2F2D9DE7F29D
22 changed files with 40 additions and 39 deletions

View File

@ -3,7 +3,7 @@ package apdu
import ( import (
"testing" "testing"
"github.com/status-im/smartcard-go/hexutils" "github.com/status-im/hardware-wallet-go/hexutils"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View File

@ -3,7 +3,7 @@ package apdu
import ( import (
"testing" "testing"
"github.com/status-im/smartcard-go/hexutils" "github.com/status-im/hardware-wallet-go/hexutils"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View File

@ -3,7 +3,7 @@ package apdu
import ( import (
"testing" "testing"
"github.com/status-im/smartcard-go/hexutils" "github.com/status-im/hardware-wallet-go/hexutils"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View File

@ -9,7 +9,8 @@ import (
"github.com/ebfe/scard" "github.com/ebfe/scard"
"github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/log"
"github.com/status-im/smartcard-go/lightwallet/actionsets" "github.com/status-im/hardware-wallet-go/hexutils"
"github.com/status-im/hardware-wallet-go/lightwallet/actionsets"
) )
type commandFunc func(*actionsets.Installer) error type commandFunc func(*actionsets.Installer) error

View File

@ -4,8 +4,8 @@ import (
"bytes" "bytes"
"encoding/binary" "encoding/binary"
"github.com/status-im/smartcard-go/apdu" "github.com/status-im/hardware-wallet-go/apdu"
"github.com/status-im/smartcard-go/globalplatform/crypto" "github.com/status-im/hardware-wallet-go/globalplatform/crypto"
) )
// APDUWrapper is a wrapper for apdu commands inside a global platform secure channel. // APDUWrapper is a wrapper for apdu commands inside a global platform secure channel.

View File

@ -3,9 +3,9 @@ package globalplatform
import ( import (
"testing" "testing"
"github.com/status-im/smartcard-go/apdu" "github.com/status-im/hardware-wallet-go/apdu"
"github.com/status-im/smartcard-go/globalplatform/crypto" "github.com/status-im/hardware-wallet-go/globalplatform/crypto"
"github.com/status-im/smartcard-go/hexutils" "github.com/status-im/hardware-wallet-go/hexutils"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View File

@ -1,6 +1,6 @@
package globalplatform package globalplatform
import "github.com/status-im/smartcard-go/apdu" import "github.com/status-im/hardware-wallet-go/apdu"
// Channel is an interface with a Send method to send apdu commands and receive apdu responses. // Channel is an interface with a Send method to send apdu commands and receive apdu responses.
type Channel interface { type Channel interface {

View File

@ -1,8 +1,8 @@
package globalplatform package globalplatform
import ( import (
"github.com/status-im/smartcard-go/apdu" "github.com/status-im/hardware-wallet-go/apdu"
"github.com/status-im/smartcard-go/globalplatform/crypto" "github.com/status-im/hardware-wallet-go/globalplatform/crypto"
) )
// Constants used in apdu commands and responses as defined by iso7816 and globalplatform. // Constants used in apdu commands and responses as defined by iso7816 and globalplatform.

View File

@ -3,7 +3,7 @@ package globalplatform
import ( import (
"testing" "testing"
"github.com/status-im/smartcard-go/hexutils" "github.com/status-im/hardware-wallet-go/hexutils"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View File

@ -3,7 +3,7 @@ package crypto
import ( import (
"testing" "testing"
"github.com/status-im/smartcard-go/hexutils" "github.com/status-im/hardware-wallet-go/hexutils"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View File

@ -2,4 +2,4 @@ package globalplatform
import "github.com/ethereum/go-ethereum/log" import "github.com/ethereum/go-ethereum/log"
var logger = log.New("package", "smartcard-go/globalplatform") var logger = log.New("package", "hardware-wallet-go/globalplatform")

View File

@ -7,7 +7,7 @@ import (
"os" "os"
"strings" "strings"
"github.com/status-im/smartcard-go/apdu" "github.com/status-im/hardware-wallet-go/apdu"
) )
var internalFiles = []string{ var internalFiles = []string{

View File

@ -1,8 +1,8 @@
package globalplatform package globalplatform
import ( import (
"github.com/status-im/smartcard-go/apdu" "github.com/status-im/hardware-wallet-go/apdu"
"github.com/status-im/smartcard-go/hexutils" "github.com/status-im/hardware-wallet-go/hexutils"
) )
// Transmitter defines an interface with one method to transmit raw commands and receive raw responses. // Transmitter defines an interface with one method to transmit raw commands and receive raw responses.

View File

@ -1,8 +1,8 @@
package globalplatform package globalplatform
import ( import (
"github.com/status-im/smartcard-go/apdu" "github.com/status-im/hardware-wallet-go/apdu"
"github.com/status-im/smartcard-go/hexutils" "github.com/status-im/hardware-wallet-go/hexutils"
) )
// SecureChannel wraps another channel and sends wrapped commands using APDUWrapper. // SecureChannel wraps another channel and sends wrapped commands using APDUWrapper.

View File

@ -4,8 +4,8 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/status-im/smartcard-go/apdu" "github.com/status-im/hardware-wallet-go/apdu"
"github.com/status-im/smartcard-go/globalplatform/crypto" "github.com/status-im/hardware-wallet-go/globalplatform/crypto"
) )
// Session is a struct containing the keys and challenges used in the current communication with a card. // Session is a struct containing the keys and challenges used in the current communication with a card.

View File

@ -3,8 +3,8 @@ package globalplatform
import ( import (
"testing" "testing"
"github.com/status-im/smartcard-go/apdu" "github.com/status-im/hardware-wallet-go/apdu"
"github.com/status-im/smartcard-go/hexutils" "github.com/status-im/hardware-wallet-go/hexutils"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View File

@ -7,10 +7,10 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/status-im/smartcard-go/apdu" "github.com/status-im/hardware-wallet-go/apdu"
"github.com/status-im/smartcard-go/globalplatform" "github.com/status-im/hardware-wallet-go/globalplatform"
"github.com/status-im/smartcard-go/lightwallet" "github.com/status-im/hardware-wallet-go/lightwallet"
"github.com/status-im/smartcard-go/lightwallet/crypto" "github.com/status-im/hardware-wallet-go/lightwallet/crypto"
) )
var ( var (

View File

@ -2,4 +2,4 @@ package actionsets
import "github.com/ethereum/go-ethereum/log" import "github.com/ethereum/go-ethereum/log"
var logger = log.New("package", "smartcard-go/lightwallet/actionsets") var logger = log.New("package", "hardware-wallet-go/lightwallet/actionsets")

View File

@ -6,10 +6,10 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/status-im/smartcard-go/apdu" "github.com/status-im/hardware-wallet-go/apdu"
"github.com/status-im/smartcard-go/globalplatform" "github.com/status-im/hardware-wallet-go/globalplatform"
"github.com/status-im/smartcard-go/lightwallet" "github.com/status-im/hardware-wallet-go/lightwallet"
"github.com/status-im/smartcard-go/lightwallet/actions" "github.com/status-im/hardware-wallet-go/lightwallet/actions"
) )
var ( var (

View File

@ -1,8 +1,8 @@
package lightwallet package lightwallet
import ( import (
"github.com/status-im/smartcard-go/apdu" "github.com/status-im/hardware-wallet-go/apdu"
"github.com/status-im/smartcard-go/globalplatform" "github.com/status-im/hardware-wallet-go/globalplatform"
) )
const ( const (

View File

@ -2,4 +2,4 @@ package lightwallet
import "github.com/ethereum/go-ethereum/log" import "github.com/ethereum/go-ethereum/log"
var logger = log.New("package", "smartcard-go/lightwallet") var logger = log.New("package", "hardware-wallet-go/lightwallet")

View File

@ -4,9 +4,9 @@ import (
"crypto/ecdsa" "crypto/ecdsa"
ethcrypto "github.com/ethereum/go-ethereum/crypto" ethcrypto "github.com/ethereum/go-ethereum/crypto"
"github.com/status-im/smartcard-go/apdu" "github.com/status-im/hardware-wallet-go/apdu"
"github.com/status-im/smartcard-go/globalplatform" "github.com/status-im/hardware-wallet-go/globalplatform"
"github.com/status-im/smartcard-go/lightwallet/crypto" "github.com/status-im/hardware-wallet-go/lightwallet/crypto"
) )
type SecureChannel struct { type SecureChannel struct {