airsign-sdk-core
v1.0.0
Published
AirSign Protocol Core SDK - secure nearby crypto & data exchange
Downloads
3
Maintainers
Readme
@airsign/sdk-core
Core SDK for AirSign Protocol - Secure nearby crypto & data exchange
Overview
The AirSign SDK Core provides production-ready cryptographic functions and protocol implementation for secure peer-to-peer communication and crypto payment exchange between nearby devices.
Features
- 🔐 Production Cryptography: X25519 ECDH + XChaCha20-Poly1305 AEAD
- 🌐 Multiple Transports: WebSocket relay + WebRTC P2P
- 💰 Payment URIs: Bitcoin, Ethereum, Solana, USDC support
- 📱 Cross-Platform: Browser, Node.js, React Native ready
- 🛡️ Zero-Trust: End-to-end encryption with forward secrecy
- ⚡ High Performance: <50ms crypto operations
Installation
npm install @airsign/sdk-coreQuick Start
import { AirSignSDK } from '@airsign/sdk-core';
// Initialize SDK
const sdk = new AirSignSDK();
await sdk.init();
// Start device discovery
await sdk.startDiscovery({
deviceName: 'My Device',
capabilities: ['payment-uri', 'nft-transfer']
});
// Listen for discovered peers
sdk.on('peer-discovered', (peer) => {
console.log('Found device:', peer.deviceName);
});
// Send encrypted payment request
await sdk.sendPayment(
'ethereum:0x742d35Cc6634C0532925a3b8D2f8c8e2Bf4e7a4a?value=1000000000000000000',
peerId
);
// Handle received payments
sdk.on('payment-received', (payment) => {
console.log('Payment request:', payment.uri);
// Open wallet app with payment URI
});Testing
Test Results: 19/19 passing ✅
npm testLicense
MIT License - see LICENSE for details.
Support
- 📧 Email: [email protected]
- 🐛 Issues: GitHub Issues
- 📖 Docs: Documentation
Made with Real Crypto™ - Production-ready cryptography, no simulations.
