keycard-go/lightwallet/types.go

26 lines
499 B
Go
Raw Normal View History

2018-10-24 16:16:14 +00:00
package lightwallet
type ApplicationInfo struct {
2018-11-06 11:54:11 +00:00
Installed bool
Initialized bool
2018-10-24 16:16:14 +00:00
InstanceUID []byte
PublicKey []byte
Version []byte
AvailableSlots []byte
// KeyUID is the sha256 of of the master public key on the card.
// It's empty if the card doesn't contain any key.
KeyUID []byte
}
2018-11-07 13:39:58 +00:00
type ApplicationStatus struct {
PinRetryCount int
PUKRetryCount int
KeyInitialized bool
PubKeyDerivation bool
}
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
}