EthereumOperator
@objc
public protocol EthereumOperator : NSObjectProtocolthis is the protocol to define the common behaviours of the EthereumOperator, it provides the basic operations of the EthereumKeystore, you can create your own Ethereum Operator by implements this interface
- 
                  
                  Sign the message with Ethereum keystore DeclarationSwift @objc func signMessage(contractAddr: String, keystore: EthereumKeystore, password: String, signOriginal: String, completion: @escaping ((_ result: String?, _ error: Error?) -> Void))ParameterscontractAddrContract address, this should be a valid Ethereum wallet keystoreEthereumKeystore object, this represents a standard Ethereum Keystore file passwordpassword for the keystore signOriginalthe message to sign with completionwhen sign message finished, it calls back to tell the result of signing, or the error with the failing reason 
- 
                  
                  verify the password of the EthereumKeystore DeclarationSwift @objc func verifyPwd(_ pwd: String, keystore: EthereumKeystore, completion: @escaping ((_ success: Bool, _ error: Error?) -> Void))Parameterspwdpassword string keystoreEthereumKeystore object, this represents a standard Ethereum keystore file completionwhen check finished, it calls back to tell weather the password is correct or not, or the failing reason if it failed 
- 
                  
                  create a new EthereumKeystore with password provided DeclarationSwift @objc func generateKeystore(pwd: String, completion: @escaping ((_ keystore: EthereumKeystore?, _ error: Error?) -> Void))Parameterspwdpassword for the new EthereumKeystore completionwhen creation finished, it calls back to give the details of the new created keystore, or the error with failing reason 
- 
                  
                  change password for the EthereumKeystore, and returns the new EthereumKeustore with that password DeclarationSwift @objc func changePwd(keystore: EthereumKeystore, oldPwd: String, newPwd: String, completion: @escaping ((_ keystore: EthereumKeystore?, _ error: Error?) -> Void))Parameterskeystoreoriginal EthereumKeystore oldPwdold password for the keystore newPwdnew password for the new keystore completionwhen success, it calls back to tell the new generated EthereumKeystore, or the error with failing reason 
 EthereumOperator Protocol Reference
        EthereumOperator Protocol Reference