A minimal standalone implementation of the Crossmint signer functionality for Trusted Execution Environment (TEE) communications. This library provides cryptographic utilities supporting Solana and EVM chains.
- Minimal External Dependencies: Implementation with minimal external dependencies (just Zod) for maximum security
- Subresource Integrity (SRI): Scripts include integrity hashes to prevent tampering
- Multi-Chain Support: Compatible with both Solana (ed25519) and Ethereum (secp256k1) chains
- TEE Communication: Secure communication with Trusted Execution Environments
- TypeScript Support: Fully typed codebase for improved development experience
This implementation is designed for secure environments:
- No external network calls except explicit API interactions
- Runs completely in the browser or secure container
- Uses browser's native crypto APIs
- Includes SRI (Subresource Integrity) hashes in script tags for tamper protection
pnpm install
pnpm dev
pnpm test:coverage
MIT
A simple Next.js application for testing iframe communication using MessageChannel. This app demonstrates how to establish a secure communication channel between a parent window and an iframe, which is useful for implementing sandboxed functionality or integrating with third-party services.
- MessageChannel-based Communication: Implements a secure communication channel between the parent app and iframe
- Request-Response Pattern: Demonstrates a simple request-response pattern for message signing
- Message Logging: Real-time display of all messages exchanged between the parent and iframe
- Event-driven Architecture: Uses a clean event-driven approach for handling messages
- Node.js 18 or higher
- pnpm (preferred) or npm
- Clone the repository
git clone <repository-url>
cd frames-testing-app
- Install dependencies
pnpm install
- Run the development server
pnpm dev
- Open http://localhost:3000 with your browser to see the result.
The application consists of two main parts:
- Parent Application (Next.js): Contains the control panel and hosts the iframe
- Mock Iframe: A simple HTML page that communicates with the parent