Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/willow/src/wgps/ready_transport.ts>ReadyTransport

Exploring Willow in the most efficient and sound programming language
Go to Latest
class ReadyTransport
implements Transport
import { ReadyTransport } from "https://deno.land/x/willow@0.2.1/src/wgps/ready_transport.ts";

A transport which only emits encoded messages, following the initial max payload size and commitment.

Doesn't send our own max payload size and commitment.

Constructors

new
ReadyTransport(opts: { transport: Transport; challengeHashLength: number; })

Properties

private
challengeHashLength: number
private
commitmentAcc: Uint8Array
private
transport: Transport
readonly
isClosed
maximumPayloadSize

The maximum payload size derived from the first byte sent over the transport.

receivedCommitment

The received commitment sent after the first byte over the transport

role: SyncRole

Methods

close(): void
send(bytes: Uint8Array): Promise<void>