Ed25519 Signature Verification

The Ed25519 module provides high-performance asymmetric signature verification. Unlike standard RSA, Ed25519 uses Twisted Edwards curves, offering smaller signatures and faster computation with superior security.

Simplified API

XyPriss Security implements a simplified, Go-backed Ed25519 primitive that removes the complex boilerplate of DER encoding and SPKI conversion typically required in Node.js.

Signature Verification
import { Cipher } from "xypriss-security";

const authorPubKey = "7dc962b27af59bc7a9e0d0d2c155989e0ec5a80fed78ac1375ae95038a31afd5";
const data = "System Integrity Verified - G3 Protocol Active";
const signature = "gcV+Lm7C2y6sn0H3KH9yC741Al968YzuqvGkyp5G4oybekBeFavs0/LypaAGZrt7qLDTOL86nfRs5qE9DT8sAA==";

const isValid = Cipher.crypto.ed25519Verify(authorPubKey, data, signature);

if (isValid) {
  console.log("✅ Identity and data integrity confirmed.");
}

Large Payload Optimization

For large data payloads (multi-megabyte files), the framework transparently switches from CLI arguments to high-speed stdin piping.

Bypasses OS Limits

Handles data exceeding the E2BIG threshold (~128KB) by piping directly to the native process.

Constant-Time

Uses the Go standard library's crypto/ed25519, which is resistant to timing attacks.

Hardware Acceleration
Ed25519 verification in XSec-M is approximately 4-6x faster than standard Node.js implementations due to the optimized Go assembly instructions used in the binary core.
RSA & Byte Utils

Asymmetric encryption and byte-safe validation utilities.