keycard-go/types/types.go
Alex Miller 30f7fad9f3 Adds export-key implementation (#4)
* Adds export-key implementation

* fix p1 constants for derive key command

* Adds reusable constants for p1/p2 values in ExportKey

* Moves EXPORT constants and OR operates on p2 for ExportKey

* Adds PGP signature
2019-04-24 15:12:45 +02:00

13 lines
283 B
Go

package types
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)
}
type PairingInfo struct {
Key []byte
Index int
}