VaultKey

struct VaultKey

VaultKey collects properties into a single object for an EOSIO elliptic curve key.

  • The EOSIO public key.

    Declaration

    Swift

    private(set) public var eosioPublicKey: String { get }
  • The EOSIO private key. (nil for Secure Enclave keys).

    Declaration

    Swift

    public var eosioPrivateKey: String? { get }
  • The label for this key in the Keychain.

    Declaration

    Swift

    private(set) public var label: String? { get }
  • tag

    The tag for this key in the Keychain.

    Declaration

    Swift

    private(set) public var tag: String? { get }
  • The curve for this key (r1 or k1).

    Declaration

    Swift

    private(set) public var curve: EllipticCurveType { get }
  • The access group for this key in the Keychain.

    Declaration

    Swift

    private(set) public var accessGroup: String { get }
  • Is the private key stored in the Secure Enclave?

    Declaration

    Swift

    private(set) public var isSecureEnclave: Bool { get }
  • The biometric factor enforced on this key by the Keychain.

    Declaration

    Swift

    private(set) public var bioFactor: BioFactor { get }
  • The private SecKey.

    Declaration

    Swift

    private(set) public var privateSecKey: SecKey? { get }
  • The private key in ANSI X9.63 format. (nil for Secure Enclave keys).

    Declaration

    Swift

    public var privateKey: Data? { get }
  • The public SecKey.

    Declaration

    Swift

    private(set) public var publicSecKey: SecKey? { get }
  • The uncompressed public key in ANSI X9.63 format (65 bytes, starts with 04).

    Declaration

    Swift

    private(set) public var uncompressedPublicKey: Data? { get }
  • The compressed public key in ANSI X9.63 format (33 bytes, starts with 02 or 03).

    Declaration

    Swift

    private(set) public var compressedPublicKey: Data? { get }
  • Is the key retired? Retired keys have metadata without a key in the Keychain.

    Declaration

    Swift

    private(set) public var isRetired: Bool { get }
  • Metadata for this key.

    Important

    Metadata must follow the rules for JSONSerialization.

    Declaration

    Swift

    public var metadata: [String : Any]