Initiate SDK

1. Add "MYKEYWalletLib.h" file in "AppDelegate.m"

Swift

import MYKEYWalletLib

Object-C

#import <MYKEYWalletLib/MYKEYWalletLib-Swift.h>

2. Init

To instantiate class MyKeySdk, this lightweight authorization will initiate SDK in major process and use the same logic as SimpleWallet protocol. By using such way, DAPPs don't need to have own accounts system. Binding with MYKEY is not needed either. Parameters are here:InitSimpleRequest

let initSimpleData = InitSimpleRequest()
initSimpleData.dappName = "DappNameA"
initSimpleData.dappIcon = "https:.../xx.png"
initSimpleData.scheme = "demoscheme"
initSimpleData.disableInstall = true
MYKEYWallet.shared.initWalletSimple(initSimpleData: initSimpleData)

For the param scheme, refer scheme configuration in 1.2

3. Invoke handlerUrl in "application:openURL:"

MYKEYWallet.shared.handleUrl(url: url)