[][src]Crate interledger_btp

interledger-btp

Client and server implementations of the Bilateral Transport Protocol (BTP). This is a WebSocket-based protocol for exchanging ILP packets between directly connected peers.

Because this protocol uses WebSockets, only one party needs to have a publicly-accessible HTTPS endpoint but both sides can send and receive ILP packets.

Structs

BtpOutgoingService

A container for BTP/WebSocket connections that implements OutgoingService for sending outgoing ILP Prepare packets over one of the connected BTP connections.

BtpService

Traits

BtpAccount
BtpStore

The interface for Store implementations that can be used with the BTP Server.

Functions

connect_client

Create a BtpOutgoingService wrapping BTP connections to the accounts specified. Calling handle_incoming with an IncomingService will turn the returned BtpOutgoingService into a bidirectional handler.

connect_to_service_account
create_btp_service_and_filter

Returns a BtpOutgoingService and a warp Filter.

parse_btp_url