lsat

package
v0.0.0-...-eb10282 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LSAT_TYPE_FREE   = "FREE"
	LSAT_TYPE_PAID   = "PAID"
	LSAT_TYPE_ERROR  = "ERROR"
	LSAT_HEADER      = "LSAT"
	LSAT_HEADER_NAME = "Accept-Authenticate"
)
View Source
const (
	FREE_CONTENT_MESSAGE      = "Free Content"
	PROTECTED_CONTENT_MESSAGE = "Protected Content"
	PAYMENT_REQUIRED_MESSAGE  = "Payment Required"
)

Variables

This section is empty.

Functions

func VerifyLSAT

func VerifyLSAT(mac *macaroon.Macaroon, conditions []caveat.Caveat, rootKey []byte, preimage lntypes.Preimage) error

Types

type LsatInfo

type LsatInfo struct {
	Type        string
	Preimage    lntypes.Preimage
	PaymentHash lntypes.Hash
	Amount      int64
	Error       error
}

Jump to

Keyboard shortcuts

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