Module webrtc
Expand description
§WebRTC Implementation
This module provides WebRTC peer-to-peer communication capabilities for OpenMina. WebRTC enables direct peer connections, NAT traversal, and efficient blockchain node communication, particularly important for the Web Node (browser-based Mina protocol).
For comprehensive documentation about WebRTC concepts and this implementation, see: https://o1-labs.github.io/openmina/developers/webrtc
Structs§
- Answer
- WebRTC connection answer responding to an offer.
- Connection
Auth - Connection authentication data derived from WebRTC signaling.
- Connection
Auth Encrypted - Encrypted connection authentication data.
- Encrypted
Answer - Encrypted WebRTC connection response for secure signaling.
- Encrypted
Offer - Encrypted WebRTC offer for secure signaling.
- Http
Signaling Info - HTTP signaling server connection information.
- Offer
- WebRTC connection offer containing SDP data and peer information.
Enums§
- Host
- P2pConnection
Response - Response to a WebRTC connection offer.
- Rejection
Reason - Reasons why a WebRTC connection offer might be rejected.
- Signal
- Union type for WebRTC signaling messages.
- Signaling
Method - WebRTC signaling transport method configuration.
- Signaling
Method Parse Error - Errors that can occur when parsing signaling method strings.