Skip to content

CoSignConnection

Defined in: src/signer/mpc-2p.ts:73

One authenticated, encrypted ceremony connection to the owner backend.

Methods

close()

close(): void | Promise<void>

Defined in: src/signer/mpc-2p.ts:79

Release the connection (best-effort; errors here are ignored).

Returns

void | Promise<void>


recv()

recv(): Promise<CoSignFrame>

Defined in: src/signer/mpc-2p.ts:77

Receive the next control frame (resolves per round).

Returns

Promise<CoSignFrame>


send()

send(frame): Promise<void>

Defined in: src/signer/mpc-2p.ts:75

Send one control frame.

Parameters

frame

CoSignFrame

Returns

Promise<void>