EosioSignatureProviderProtocol
public protocol EosioSignatureProviderProtocol
The protocol to which signature provider implementations must conform.
-
The method signature for transaction signing requests to conforming signature providers.
Declaration
Swift
func signTransaction(request: EosioTransactionSignatureRequest, completion: @escaping (EosioTransactionSignatureResponse) -> Void)
Parameters
request
The request as an
EosioTransactionSignatureRequest
.completion
The completion that the signature provider implementation will call in response.
-
signTransaction(request:
Default implementationprompt: completion: ) The method signature for transaction signing requests to conforming signature providers while specifying a prompt to use for biometric validation if desired.
Default Implementation
Declaration
Swift
func signTransaction(request: EosioTransactionSignatureRequest, prompt: String, completion: @escaping (EosioTransactionSignatureResponse) -> Void)
Parameters
request
The request as an
EosioTransactionSignatureRequest
.prompt
Prompt for biometric authentication, if required.
completion
The completion that the signature provider implementation will call in response.
-
The method signature for public key requests to conforming signature providers.
Declaration
Swift
func getAvailableKeys(completion: @escaping (EosioAvailableKeysResponse) -> Void)
Parameters
completion
The method signature for key requests to conforming signature providers.