keycard-go/types/types.go

14 lines
284 B
Go
Raw Normal View History

2019-03-11 10:05:28 +00:00
package types
2018-10-24 16:16:14 +00:00
2019-03-11 10:49:00 +00:00
import "github.com/status-im/keycard-go/apdu"
// Channel is an interface with a Send method to send apdu commands and receive apdu responses.
type Channel interface {
Send(*apdu.Command) (*apdu.Response, error)
}
2018-10-24 16:16:14 +00:00
type PairingInfo struct {
2018-11-06 11:54:11 +00:00
Key []byte
Index int
2018-10-24 16:16:14 +00:00
}