EosioVaultSignatureProvider

public final class EosioVaultSignatureProvider : EosioSignatureProviderProtocol

Signature provider implementation for EOSIO SDK for Swift using Keychain and/or Secure Enclave.

  • Require biometric identification for all signatures even if the key does not require it. Defaults to false.

    Declaration

    Swift

    public var requireBio: Bool
  • Init an instance of EosioVaultSignatureProvider.

    Declaration

    Swift

    public init(accessGroup: String, requireBio: Bool = false)

    Parameters

    accessGroup

    The access group to create an instance of EosioVault.

    requireBio

    Require biometric identification for all signatures even if the key does not require it. Defaults to false.

  • Sign a transaction using an instance of EosioVault with the specified accessGroup.

    Declaration

    Swift

    public func signTransaction(request: EosioTransactionSignatureRequest,
                                completion: @escaping (EosioTransactionSignatureResponse) -> Void)

    Parameters

    request

    The transaction signature request.

    completion

    The transaction signature response.

  • Sign a transaction using an instance of EosioVault with the specified accessGroup.

    Declaration

    Swift

    public func signTransaction(request: EosioTransactionSignatureRequest,
                                prompt: String,
                                completion: @escaping (EosioTransactionSignatureResponse) -> Void)

    Parameters

    request

    The transaction signature request.

    prompt

    Prompt for biometric authentication if required.

    completion

    The transaction signature response.

  • Get all available EOSIO keys for the instance of EosioVault with the specified accessGroup.

    Declaration

    Swift

    public func getAvailableKeys(completion: @escaping (EosioAvailableKeysResponse) -> Void)

    Parameters

    completion

    The available keys response.