mirror of
https://github.com/status-im/keycard-cli.git
synced 2025-02-28 20:00:38 +00:00
update using keycard/io pkg
This commit is contained in:
parent
f4332e3040
commit
7a8338f547
@ -6,6 +6,7 @@ import (
|
||||
keycard "github.com/status-im/keycard-go"
|
||||
"github.com/status-im/keycard-go/apdu"
|
||||
"github.com/status-im/keycard-go/globalplatform"
|
||||
"github.com/status-im/keycard-go/io"
|
||||
"github.com/status-im/keycard-go/types"
|
||||
)
|
||||
|
||||
@ -24,9 +25,9 @@ type Initializer struct {
|
||||
}
|
||||
|
||||
// NewInitializer returns a new Initializer that communicates to Transmitter t.
|
||||
func NewInitializer(t globalplatform.Transmitter) *Initializer {
|
||||
func NewInitializer(t io.Transmitter) *Initializer {
|
||||
return &Initializer{
|
||||
c: globalplatform.NewNormalChannel(t),
|
||||
c: io.NewNormalChannel(t),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -10,6 +10,7 @@ import (
|
||||
"github.com/status-im/keycard-go/globalplatform"
|
||||
"github.com/status-im/keycard-go/hexutils"
|
||||
"github.com/status-im/keycard-go/identifiers"
|
||||
keycardio "github.com/status-im/keycard-go/io"
|
||||
"github.com/status-im/keycard-go/types"
|
||||
)
|
||||
|
||||
@ -24,9 +25,9 @@ type Installer struct {
|
||||
}
|
||||
|
||||
// NewInstaller returns a new Installer that communicates to Transmitter t.
|
||||
func NewInstaller(t globalplatform.Transmitter) *Installer {
|
||||
func NewInstaller(t keycardio.Transmitter) *Installer {
|
||||
return &Installer{
|
||||
c: globalplatform.NewNormalChannel(t),
|
||||
c: keycardio.NewNormalChannel(t),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user