extension

package
v0.0.0-...-afe930b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2025 License: Unlicense Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL