rename pkg to hardware-wallet-go
This commit is contained in:
parent
1cdee35414
commit
828b7be733
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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")
|
||||||
|
|
|
@ -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{
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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")
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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")
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue