This package has been deprecated

Author message:

Moved to @node-lightning/wire

@lntools/wire
TypeScript icon, indicating that this package has built-in type declarations

0.18.0 • Public • Published

@lntools/wire

This repository contains the wire protocol code for the Lightning Network and includes the following functionality:

  • Peer which manages a connection to a peer. This class allows sending and emitting message traffic. It also manages internal state for Ping/Pong message traffic. /lib/peer.ts

  • Messages defined in BOLT #1 - Base Protocol, BOLT #2 - Peer Protocol for Channel Management, and BOLT #7 P2P Node and Channel Discovery can be found in /lib/messages. This code includes the message types and serialization and deserialization methods for each message.

  • P2P Node and Channel gossip management that can be found in /lib/gossip. This code contains the GossipManger which controls gossip for many peers. Gossip synchronization for a single peer is managed through PeerGossipSynchronizer.

Dependencies (5)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @lntools/wire

    Weekly Downloads

    2

    Version

    0.18.0

    License

    MIT

    Unpacked Size

    2.61 MB

    Total Files

    540

    Last publish

    Collaborators

    • bmancini55