MYKEY account structure is different with other EOS account, if dapp verify signature in their server side, should use the ReservedKey, more details see this Document.
The Reserved Key can be queried through the keydata table of the mykeymanager smart contract. When querying, the specified range is the MYKEY account and the index is 3.
/** * Get ReservedKey in mykey account which is for other actions without specific operation keys, details in * https://docs.mykey.org/v/English/dive-into-mykey/mykey-on-eos#mykey-account-structure * @param{String} name account name * @return{String} ReservedKey/the 3rd Operation Key */async getReservedKey(name) {constmgrcontract=awaitthis.getMykeyMgr(name)constmykey_signkey_index=3constkeydata=awaitthis.eosJsonRpc.get_table_rows({json:true, code:mgrcontract, scope:name, table:'keydata', lower_bound: mykey_signkey_index, limit:1})if(!keydata) return'';returnkeydata.rows[0].key.pubkey;}/** * Verify signed data * Parameters * signature (string | Buffer) buffer or hex string * data (string | Buffer) * pubkey (pubkey | PublicKey) * encoding (optional, default 'utf8') * hashData boolean sha256 hash data before verify (optional, default true) */ecc.verify(signature, data, pubkey) ===true