update using keycard/io pkg

This commit is contained in:
Andrea Franz 2019-03-28 12:46:55 +01:00
parent f4332e3040
commit 7a8338f547
No known key found for this signature in database
GPG Key ID: 4F0D2F2D9DE7F29D
2 changed files with 6 additions and 4 deletions

View File

@ -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),
}
}

View File

@ -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),
}
}