PublicKey

public struct PublicKey : Equatable

A Steem public key.

  • Chain address prefix.

    See more

    Declaration

    Swift

    public enum AddressPrefix : Equatable, Hashable
  • Address prefix.

    Declaration

    Swift

    public let prefix: AddressPrefix
  • key

    The 33-byte compressed public key.

    Declaration

    Swift

    public let key: Data
  • Create a new PublicKey instance.

    Declaration

    Swift

    public init?(key: Data, prefix: AddressPrefix = .mainNet)

    Parameters

    key

    33-byte compressed public key.

    prefix

    Network address prefix.

  • Create a new PublicKey instance from a Steem public key address.

    Declaration

    Swift

    public init?(_ address: String)

    Parameters

    address

    The public key in Steem address format.

  • Public key address string.

    Declaration

    Swift

    public var address: String { get }
  • Declaration

    Swift

    public var hashValue: Int { get }
  • Declaration

    Swift

    public var description: String { get }