Skip to content

Class BSV::Overlay::AdminTokenTemplate::Advertisement

Inherits: Object

Decoded representation of a SHIP or SLAP advertisement.

Attributes

domain [R]

  • @return [String] domain where the topic or service is available

identity_key [R]

  • @return [String] hex-encoded compressed public key (33 bytes)

protocol [R]

  • @return [String] protocol identifier — 'SHIP' or 'SLAP'

topic_or_service [R]

  • @return [String] topic or service name being advertised

Public Instance Methods

initialize(protocol:, identity_key:, domain:, topic_or_service:)

  • @param protocol [String]
  • @param identity_key [String]
  • @param domain [String]
  • @param topic_or_service [String]
  • @return [Advertisement] a new instance of Advertisement