ISO 7816 APDU and EMV BER-TLV transaction toolkit for MoonBit.
moon test --target js
moon run cmd/main --target js -- session examples/sessions/happy.log
moon run cmd/main --target js -- session examples/external/wrapperTestSW_61.log
moon run cmd/main --target js -- session examples/external/wrapperTestSW_6C.logpub(all) struct AflEntry {
sfi : Int
first_record : Int
last_record : Int
oda_count : Int
}pub(all) struct CardData {
pan : String?
expiry : String?
cardholder : String?
label : String?
}pub(all) struct SessionIssue {
step : Int
code : String
severity : String
detail : String
}pub(all) struct TxStep {
direction : String
bytes : Array[Int]
apdu : Apdu?
response : ApduResponse?
tlv : Array[Tlv]
note : String
}pub(all) struct TxSummary {
commands : Int
responses : Int
successes : Int
errors : Int
}