Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

bolt03

1.2.6 • Public • Published

BOLT 03 Utilities

Utilities for working with Lightning Network BOLT 03

Methods

channelResolution

Channel resolution details from witness

{
  witness: [<Witness Hex String>]
}

@returns
{
  [type]: <Channel Resolution Type String>
}

isRemedyWitness

Determine if witness elements represent a to_local breach remedy witness

{
  witness: [<Witness Element Number or Buffer>]
}

@returns
{
  is_remedy: <Witness Elements Are Breach Remedy Witness Elements Bool>
}

resolutionType

Get resolution type of input

{
  transaction: <Transaction Hex String>
  vin: <Transaction Input Index Number>
}

@throws
<Error>

@returns
{
  type: <Resolution Type String>
}

Keywords

none

Install

npm i bolt03

DownloadsWeekly Downloads

121

Version

1.2.6

License

MIT

Unpacked Size

23.3 kB

Total Files

20

Last publish

Collaborators

  • avatar