PublicKey

public struct PublicKey : Codable
extension PublicKey : Equatable, Hashable

Public key representation

  • The index of the key.

    Declaration

    Swift

    public private(set) var index: Int { get }
  • The type of key.

    Declaration

    Swift

    public private(set) var keyType: KeyType { get }
  • The user ID of the owner of this key.

    Declaration

    Swift

    public private(set) var userId: UUID? { get }
  • key

    The actual key.

    Declaration

    Swift

    public private(set) var key: String { get }
  • Flag which show if given key is active or not

    Declaration

    Swift

    public private(set) var active: Bool { get }
  • Returns a Boolean indicating whether the PublicKeys are identical.

    Declaration

    Swift

    public static func == (lhs: PublicKey, rhs: PublicKey) -> Bool
  • Hash value

    Declaration

    Swift

    public func hash(into hasher: inout Hasher)