Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "src/configs"

Index

Variables

verifier

verifier: any

Functions

Const getTimeCaveat

  • Creates a general caveat where the macaroon this is attached to will only be valid for a designated amount of time, based on the invoice amount paid

    Parameters

    Returns string

Const getTimedInvoiceDescription

  • getTimedInvoiceDescription(req: LndRequest): string
  • Generates a descriptive invoice description indicating more information about the circumstances the invoice was created under

    Parameters

    Returns string

Const verifyTimeCaveat

  • verifyTimeCaveat(_req: LndRequest, caveat: string): any
  • This example caveatVerifier method simply implements the built in TimestamCaveatVerifier available in the macaroons.js pacakge

    Parameters

    Returns any

Object literals

Const TIME_CAVEAT_CONFIGS

TIME_CAVEAT_CONFIGS: object

caveatVerifier

caveatVerifier: function = verifyTimeCaveat

Type declaration

    • Parameters

      Returns boolean

getCaveat

getCaveat: function = getTimeCaveat

Type declaration

getInvoiceDescription

getInvoiceDescription: function = getTimedInvoiceDescription

Type declaration

minAmount

minAmount: number = 1

Generated using TypeDoc