Reminder: In Android client, for avoid conflict with other wallets, developer can use following code to rediect to MYKEY precisely through set the MYKEY packge name: com.mykye.id
try {Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));intent.setPackage("com.mykey.id");intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);context.startActivity(intent);} catch (Exception e) {e.printStackTrace();}
MYKEY follows the SimpleWallet protocol implementation. See the following document for details:
https://github.com/southex/SimpleWallet/blob/master/README_en.md
Beside support login and transfer of SimpleWallet specification,MYKEY also additionally supports contract and signature method.
Special Notice: MYKEY account structure is different with other EOS account, if dapp verify signature in their server side, should use the public key of Reserved, more details see this Document
Please pass the data to MYKEY as follows, the data format is json:
// Contract call data format{protocol string // protocol name,use "SimpleWallet" by defaultversion string // protocol version, e.g. "1.0"action string // action type, use "transaction"dappName string // DApp namedappIcon string // DApp icon urldesc string // Semantic description of MYKEY display to the user contract callcallback string // Deeplink MYKEY callback to DApp, e.g. custom://custom.com/contractnotifyUrl string // The callback URL endpoint of DAppServer for receive success notification from MYKEYactions [ // Arrary of contact actions, include transfer and non-transfer actions{ // non-transferaccount string // contract code namename string // contract action nameinfo string // Semantic description of MYKEY display to the user about this actiondata object // The parameter object passed according to the contract abi definition e.g. {key1: value1, key2: value2 }},{ // transferaccount string // contract code namename string // contract action nameinfo string // Semantic description of MYKEY display to the user about this actionTransferDataRequest {from string // Fromto string // Toquantity string // Amount and Symbol,e.g. "1.0000 EOS"memo string // Memo}}]expired number // Only in web QR code mode, expire date,unix timestamp}
Please pass the data to MYKEY as follows, the data format is json:
// Sign call data format{protocol string // protocol name,use "SimpleWallet" by defaultversion string // protocol version, e.g. "1.0"action string // action type, use "sign"dappName string // DApp namedappIcon string // DApp icon urldesc string // Semantic description of MYKEY display to the user contract callmessage string // Unsigned messagescallback string // Deeplink MYKEY callback to DApp, e.g. custom://custom.com/contractnotifyUrl string // The callback URL endpoint of DAppServer for receive success notification from MYKEYexpired number // Only in web QR code mode, expire date,unix timestamp}