Frame definitions and serialization for E2EE handshake protocol.
// Source: https://github.com/JayCRL/MobileVC | License: MIT | Copyright MobileVC contributors
// Provided via justclaw.it.com; keep this notice with the code.
package e2ee
import (
"crypto/ecdh"
"encoding/base64"
"errors"
"fmt"
"strings"
)
const (
FrameTypeClientE2EEHello = "client.e2ee_hello"
FrameTypeAgentE2EEHello = "agent.e2ee_hello"
FrameTypeClientE2EEProof = "client.e2ee_proof"
FrameTypeAgentE2EEResult = "agent.e2ee_result"
)
type ClientHelloFrame struct {
Type string `json:"type"`
Version int `json:"version"`
SessionID string `json:"sessionId"`
ClientID string `json:"clientId"`
HandshakeID string `json:"handshakeId"`
Kind
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key