Documentation
¶
Overview ¶
Package pkarr exposes go-iroh's pkarr signed DNS packet codec.
It is a thin re-export of the internal implementation so sibling modules can build compatible pkarr records without duplicating the wire codec.
The Go API is not stable before v1 and may change in any v0 release.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrPacketTooLarge = internalpkarr.ErrPacketTooLarge ErrTooShort = internalpkarr.ErrTooShort ErrTooLarge = internalpkarr.ErrTooLarge ErrSignature = internalpkarr.ErrSignature ErrDNS = internalpkarr.ErrDNS ErrInvalidKey = internalpkarr.ErrInvalidKey )
Functions ¶
This section is empty.
Types ¶
type SignedPacket ¶
type SignedPacket = internalpkarr.SignedPacket
func FromBytes ¶
func FromBytes(b []byte) (*SignedPacket, error)
FromBytes parses and verifies a signed packet from its wire representation.
func FromBytesUnchecked ¶
func FromBytesUnchecked(b []byte) (*SignedPacket, error)
FromBytesUnchecked parses a signed packet without verifying its signature.
func FromRelayPayload ¶
func FromRelayPayload(pub key.PublicKey, payload []byte) (*SignedPacket, error)
FromRelayPayload reconstructs a signed packet from a public key and relay payload.
func FromTxtStrings ¶
func FromTxtStrings(sk key.SecretKey, name string, values []string, ttl uint32) (*SignedPacket, error)
FromTxtStrings creates a signed packet containing TXT records.