2018-10-22 17:33:53 +00:00
|
|
|
package lightwallet
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/status-im/smartcard-go/apdu"
|
|
|
|
"github.com/status-im/smartcard-go/globalplatform"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
InsInit = uint8(0xFE)
|
2018-10-23 10:06:00 +00:00
|
|
|
|
|
|
|
tagSelectResponsePreInitialized = uint8(0x80)
|
2018-10-22 17:33:53 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func NewCommandInit(data []byte) *apdu.Command {
|
|
|
|
return apdu.NewCommand(
|
|
|
|
globalplatform.ClaGp,
|
|
|
|
InsInit,
|
|
|
|
uint8(0x00),
|
|
|
|
uint8(0x00),
|
|
|
|
data,
|
|
|
|
)
|
|
|
|
}
|