//go:build !wasm //:build !wasm package x25519 // X25519 Diffie-Hellman (RFC 7748) via JS BigInt. // Curve25519 field arithmetic uses 256-bit integers which lose precision // when compiled to JS float64. This jsbridge delegates to x25519.mjs // which uses BigInt for exact arithmetic. // ScalarMult computes X25519(scalar, point). // Both inputs are 32-byte little-endian. Returns 32-byte shared secret. // The scalar is clamped per RFC 7748 ยง5. func ScalarMult(scalar, point []byte) (buf []byte) { panic("jsbridge") } // ScalarBaseMult computes X25519(scalar, basepoint). // scalar is 32 bytes. Returns 32-byte public key (little-endian u-coordinate). func ScalarBaseMult(scalar []byte) (buf []byte) { panic("jsbridge") }