PointOfContactDocumentation

public final class PointOfContactDocumentation : Sendable

Represents point of contact information from a stellar.toml file.

This class parses and provides access to the PRINCIPALS section of a domain’s stellar.toml file. It contains information about key individuals associated with the organization, such as executives, directors, or other responsible parties.

The PRINCIPALS section helps establish accountability and trust by identifying real people behind an organization. This includes their contact information, social media accounts for verification, and cryptographic hashes of identity verification photos.

Developers use this class to display information about who is responsible for an asset or service, enabling users to verify the legitimacy of an organization through the identities of its key personnel.

See also:

  • [StellarToml] for the main stellar.toml parser
  • SEP-0001
  • Full legal name

    Declaration

    Swift

    public let name: String?
  • Business email address for the principal

    Declaration

    Swift

    public let email: String?
  • Personal Keybase account. Should include proof of ownership for other online accounts, as well as the organization’s domain.

    Declaration

    Swift

    public let keybase: String?
  • Personal Telegram account

    Declaration

    Swift

    public let telegram: String?
  • Personal Twitter account

    Declaration

    Swift

    public let twitter: String?
  • Personal Github account

    Declaration

    Swift

    public let github: String?
  • SHA-256 hash of a photo of the principal’s government-issued photo ID

    Declaration

    Swift

    public let idPhotoHash: String?
  • SHA-256 hash of a verification photo of principal. Should be well-lit and contain: principal holding ID card and signed, dated, hand-written message stating I, $NAME, am a principal of $ORG_NAME, a Stellar token issuer with address $ISSUER_ADDRESS.

    Declaration

    Swift

    public let verificationPhotoHash: String?
  • Initializes point of contact documentation from a parsed TOML document.

    Declaration

    Swift

    public init(fromToml toml: Toml)

    Parameters

    toml

    The parsed TOML document containing principal information