Documentation
¶
Index ¶
Constants ¶
View Source
const (
ExtensionTypeLastResort mls.ExtensionType = 0x000A
)
View Source
const (
ExtensionTypeNostrGroup mls.ExtensionType = 0xF2EE
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NostrGroupData ¶
type NostrGroupData struct { ID []byte Name []byte Description []byte Admins [][]byte Relays [][]byte }
func NewNostrGroupData ¶
func NewNostrGroupData(name, description string, admins, relays []string) (*NostrGroupData, error)
NewNostrGroupData creates new NostrGroup. admins: admin pubkeys relays: relay URLs
func NostrGroupDataFromContext ¶
func NostrGroupDataFromContext(ctx *mls.GroupContext) (*NostrGroupData, error)
func (*NostrGroupData) Marshal ¶
func (n *NostrGroupData) Marshal(b *cryptobyte.Builder)
func (*NostrGroupData) Unmarshal ¶
func (n *NostrGroupData) Unmarshal(s *cryptobyte.String) error
Click to show internal directories.
Click to hide internal directories.