Documentation
¶
Overview ¶
Package nip48 implements NIP-48: Proxy tags, which let an event declare that it originated on another protocol (ActivityPub, AT Protocol, RSS, or the web) and reference its source object there.
Index ¶
Constants ¶
View Source
const ( ProtocolActivityPub = "activitypub" ProtocolATProto = "atproto" ProtocolRSS = "rss" ProtocolWeb = "web" )
Known protocol identifiers for the proxy tag's third element.
View Source
const (
TagNameProxy = "proxy"
)
Variables ¶
This section is empty.
Functions ¶
func AddProxyTag ¶
AddProxyTag appends a ["proxy", id, protocol] tag to ev.
func ValidateProxyTag ¶
ValidateProxyTag checks the structural shape of event's proxy tag, if any. An event without a proxy tag is valid — NIP-48 is opt-in per event.
Types ¶
Click to show internal directories.
Click to hide internal directories.