Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

bolt03

alexbosworth24.2kMIT1.3.2

Utilities for working with BOLT 03

readme

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>
}

changelog

Versions

1.3.2

  • channelResolution, resolutionType: Add support for anchor resolutions