envelopes

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: CC0-1.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessEnvelope

func ProcessEnvelope(b []byte) (env enveloper.I, buf *text.Buffer, e error)

ProcessEnvelope scans a message and if it finds a correctly formed Envelope it unmarshals it and returns it.

If it fails, it also returns the label bytes found and the buffer, which will have the cursor at the next byte after the quote delimiter of the T, ready for some other envelope outside of nip-01 to decode.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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