openlv library

Dart bindings for Open Lavatory, a peer-to-peer wallet connectivity protocol. See the package README for setup and examples.

Classes

OpenLv
Entry point of the openlv SDK.
OpenLvSession
A peer-to-peer session.
PeerInfo
Identity of a peer shared with the remote side during the handshake.
SessionState
Snapshot of the full session state.
SessionUriInfo
The parsed contents of an openlv:// connection URL.

Enums

OpenLvErrorKind
Machine-readable category of an openlv failure.
OpenLvProtocol
The signaling protocol used to discover the remote peer.
SessionStatus
Lifecycle status of a session.
SignalState
State of the signaling/handshake layer.

Functions

tryDecode(String source) → Object?
Decode source as JSON, returning the source unchanged if parsing fails.

Typedefs

OnRequest = FutureOr<Object?> Function(Object? message)
Handles a remote request and returns a JSON-RPC 2.0 response.

Exceptions / Errors

OpenLvException
An error raised by the openlv SDK.