Crate uniffi_lipalightninglib

source
Expand description

§lipa-lightning-lib (aka 3L)

This crate implements all the main business logic of the lipa wallet.

Most functionality can be accessed by creating an instance of LightningNode and using its methods.

Structs§

Enums§

Traits§

  • Asynchronous events that the consumer of this library might be interested in handling are delivered through this interface. These callbacks will only be called once per event.

Functions§

  • Accept lipa’s terms and conditions. Should be called before instantiating a LightningNode for the first time.
  • Generate a new mnemonic with an optional passphrase. Provide an empty string to use no passphrase.
  • Allows checking if certain terms and conditions have been accepted by the user.
  • Handles a notification.
  • Generate a Secret object (containing the seed). Provide an empty string to use no passphrase.
  • Try to parse the provided string as a lightning address, return ParseError precisely indicating why parsing failed.
  • Performs a recovery procedure by fetching necessary data from remote storage. It should and can only be called on a fresh install of the app, if the user wants to recover a previously created wallet.
  • Return a list of valid BIP-39 English words starting with the prefix. Calling this function with empty prefix will return the full list of BIP-39 words.

Type Aliases§