Live Demos - Technical Analysis
Deep dive into the technical architecture and implementation patterns used in BSV's live proof-of-concept applications, highlighting both atomic transactions and identity integration.
🏗️ Architecture Overview
These applications demonstrate the "new stack" - modern BSV development patterns that eliminate traditional blockchain complexity through atomic transactions, standardized interfaces, and built-in identity accountability.
Core Technologies
BRC-100 Wallet Interface - Standardized wallet-to-application communication
BEEF (Background Evaluation Extended Format) - Atomic transaction format with SPV proofs
BSV TypeScript SDK - Modern development toolkit with identity support
Embedded WalletClients - Application-integrated wallet functionality
BRC-103 Identity Certificates - Verifiable identity with selective disclosure
Type-42 Key Derivation - Shared key universes for private communication
BRC-31 Authrite - Mutual authentication protocol
🔧 Technical Deep Dives
1. P2P MNEE Token Transfer
Live Demo | Technical Focus: SPV Token Payments with Identity
// Conceptual implementation pattern with identity integration
// const tokenTransfer = await wallet.createAction({
// description: 'MNEE token transfer to certified identity',
// inputs: [senderTokenUTXO],
// outputs: [recipientTokenUTXO],
// identityVerification: {
// recipient: recipientCertificate,
// selectiveDisclosure: ['name', 'verification_status'],
// mutualAuth: true
// }
// });
// SPV verification + identity verification happen instantly
Key Technical Features:
SPV Token Verification - Instant validation without external services
Identity-Based Routing - Payments to BRC-103 certified identities, not addresses
Selective Disclosure - Recipients reveal only necessary identity fields
Mutual Authentication - Both parties verify each other's identity certificates
Real-Time Balance Updates - Atomic state changes reflected immediately
BRC-100 Integration - Standard wallet interface for seamless UX
Identity Implementation Patterns:
BRC-103 certificate validation for recipient verification
Type-42 key derivation for secure communication channels
Selective disclosure to protect privacy while enabling verification
Token UTXOs as spendable assets with identity accountability
Atomic transfer operations with built-in identity verification
Local SPV validation using BEEF format with identity proofs
2. Truth Machine - Data Integrity System
Live Demo | Technical Focus: Timestamping & Proof with Identity
// Conceptual timestamping pattern with identity attestation
// const timestamp = await wallet.createAction({
// description: 'timestamp file hash with identity attestation',
// outputs: [{
// satoshis: 1,
// data: {
// fileHash: sha256(fileData),
// timestamp: Date.now(),
// proofType: 'existence',
// attestor: attestorCertificate,
// selectiveDisclosure: ['professional_credentials', 'organization']
// }
// }]
// });
// Creates immutable proof of existence with verifiable attestor identity
Key Technical Features:
Cryptographic Timestamping - File hashes recorded with block-level timestamps
Identity Attestation - Verifiable identity of who created the timestamp
Professional Credentials - Selective disclosure of attestor qualifications
Proof of Existence - Immutable evidence of data at specific time with accountability
Token-Funded Operations - Transaction fees paid from token balance
Data Integrity Verification - Cryptographic proof without storing actual data
Identity Implementation Patterns:
BRC-103 certificates for attestor identity verification
Selective disclosure of professional credentials and organizational affiliation
SHA-256 hashing for data fingerprinting with identity accountability
Blockchain anchoring for tamper-proof timestamps with verifiable attestors
Minimal on-chain data (hash + identity proof only, not content)
Token economy for sustainable operation with identity-based reputation
3. Argentine Prescription Tokens
Live Demo | Technical Focus: Embedded Wallets with Healthcare Identity
// Conceptual embedded wallet pattern with healthcare identity
// const embeddedWallet = new EmbeddedWalletClient({
// mode: 'embedded',
// keyManagement: 'application-controlled',
// identityIntegration: true
// });
//
// const prescription = await embeddedWallet.createAction({
// description: 'issue medical prescription with identity verification',
// outputs: [prescriptionToken],
// identityRequirements: {
// doctor: {
// certificate: doctorCertificate,
// selectiveDisclosure: ['medical_license', 'specialization']
// },
// patient: {
// certificate: patientCertificate,
// selectiveDisclosure: ['identity_verification', 'age_group']
// }
// },
// metadata: {
// patientId: 'encrypted_with_type42',
// medicationCode: 'standard',
// dosage: 'prescribed',
// prescribingAuthority: 'verified'
// }
// });
Key Technical Features:
Embedded WalletClient - Wallet functionality without external wallet dependency
Healthcare Identity Integration - BRC-103 certificates for medical professionals and patients
Medical License Verification - Selective disclosure of doctor credentials
Patient Privacy Protection - Type-42 encryption for sensitive patient data
Healthcare Workflow Integration - Medical prescription as blockchain tokens with identity
Compliance Patterns - Audit trails and regulatory requirements with verifiable identities
Healthcare Identity Implementation Patterns:
BRC-103 certificates for medical professional licensing verification
Patient identity certificates with privacy-preserving selective disclosure
Type-42 key derivation for secure patient data encryption
Application-controlled key management with identity integration
Healthcare-specific token schemas with identity accountability
Encrypted metadata for privacy using shared key universes
Workflow state as token transitions with identity verification at each step
4. Natural Gas Blockchain - IoT Integration
Live Demo | Technical Focus: IoT & Provenance with Device Identity
// Conceptual IoT device integration with device identity certificates
// const deviceReading = await iotDevice.signData({
// sensorData: { flow: 1250, pressure: 85, temperature: 22 },
// location: 'wellhead-001',
// timestamp: Date.now(),
// deviceCertificate: deviceIdentityCert,
// calibrationStatus: 'verified'
// });
//
// const custodyTransfer = await wallet.createAction({
// description: 'transfer custody token with device and operator identity',
// inputs: [currentCustodyToken],
// outputs: [nextStageToken],
// identityVerification: {
// device: {
// certificate: deviceCertificate,
// selectiveDisclosure: ['device_id', 'calibration_date', 'operator_license']
// },
// operator: {
// certificate: operatorCertificate,
// selectiveDisclosure: ['professional_license', 'company_affiliation']
// }
// },
// metadata: { deviceReading, chainOfCustody: 'identity_verified' }
// });
Key Technical Features:
IoT Device Identity - BRC-103 certificates for device authentication
Operator Identity Verification - Professional credentials for human operators
Device Calibration Tracking - Selective disclosure of device maintenance status
Chain of Custody with Identity - Token transfers with verifiable operator identity
Automated Workflows - Smart contract-like behavior through token logic with identity
Carbon Credit Provenance - Verifiable origin and processing history with accountability
IoT Identity Implementation Patterns:
BRC-103 certificates for IoT device authentication and calibration verification
Operator identity certificates with professional licensing verification
Device-specific cryptographic signing with identity accountability
Token-based custody representation with identity at each transfer
Automated state transitions with identity verification requirements
Provenance through transaction history with verifiable device and operator identity
Type-42 key derivation for secure device-to-device communication
5. Metanet Mobile Wallet
GitHub Repository | Technical Focus: Mobile Architecture
// Conceptual mobile wallet architecture
// class MetanetMobile extends BRC100Wallet {
// async connectToWebApp(appRequest) {
// // Standard BRC-100 interface for web app integration
// return this.handleWalletRequest(appRequest);
// }
//
// async signTransaction(txRequest) {
// // Mobile-optimized transaction signing
// return this.mobileSigningFlow(txRequest);
// }
// }
Key Technical Features:
BRC-100 Compliance - Standard interface for web app integration
Mobile-First Design - Optimized for mobile device constraints
Cross-Platform Compatibility - React Native for iOS/Android
Ecosystem Integration - Works with any BRC-100 compliant application
Implementation Patterns:
React Native mobile development
BRC-100 protocol implementation
Mobile-specific UX patterns
Secure key storage on mobile devices
🔬 Common Technical Patterns with Identity
Atomic Transaction Design with Identity
All applications use atomic operations with built-in identity accountability:
No partial states to manage
No complex rollback logic needed
No coordination between services required
Instant finality through SPV verification with identity proofs
Built-in accountability through BRC-103 certificates
BEEF Integration with Identity Proofs
Applications leverage BEEF format for instant verification with identity:
Transactions include their own validity proofs and identity certificates
No external validation services needed for payments or identity
Instant confidence for small payments with verified participants
Local header verification sufficient for both transactions and identity
Identity certificates embedded in transaction metadata
Token-Based State Management with Identity
Business logic implemented through token operations with identity accountability:
Application state as token ownership with verified owners
State transitions as token transfers with identity verification
Atomic state changes guaranteed with identity accountability
Audit trails through transaction history with verifiable participants
Identity-based access control and permissions
Wallet Integration Patterns with Identity
Standardized wallet interfaces with identity integration across all applications:
BRC-100 compliant communication with identity certificate support
Embedded wallets with identity management capabilities
User-controlled private keys and identity certificates
Seamless cross-application compatibility with identity portability
MetaNet Desktop Client integration for identity certificate management
🛠️ Development Insights with Identity
Simplified Architecture with Built-in Identity
Traditional blockchain and identity complexity eliminated:
No complex state management or identity infrastructure
No external service dependencies for payments or identity verification
No coordination between microservices or identity providers
No eventual consistency issues in transactions or identity state
Built-in identity accountability without additional complexity
Instant User Experience with Identity Verification
SPV verification with identity enables immediate feedback:
No waiting for confirmations or identity verification
Instant transaction confidence with verified participants
Real-time state updates with identity accountability
Responsive user interfaces with seamless identity integration
Selective disclosure provides privacy without sacrificing verification speed
Scalable Design with Identity Integration
Atomic operations with identity scale naturally:
Parallel processing possible for both transactions and identity verification
No coordination bottlenecks between payment and identity systems
Independent operation validation including identity proofs
Linear scaling characteristics maintained with identity integration
Identity verification happens locally without external dependencies
🎯 Implementation Takeaways with Identity
For Developers
Think atomically with identity - Design operations as complete units with built-in accountability
Leverage BEEF + Identity - Use built-in SPV verification with identity proofs
Standardize interfaces - Implement BRC-100 with BRC-103 identity integration
Eliminate coordination - Avoid distributed system complexity in both payments and identity
Embrace selective disclosure - Provide privacy while enabling verification
Use Type-42 for privacy - Implement shared key universes for sensitive data
Architecture Principles with Identity
Atomic operations with identity over distributed coordination and separate identity systems
Local verification over external validation for both transactions and identity
Token-based state with identity over database state management and identity providers
Standard interfaces over custom protocols for both payments and identity
Selective disclosure over all-or-nothing identity revelation
Built-in accountability over external audit systems
Ready to build with these patterns? Start with our Hackathon Guide to set up your development environment using LARS and begin implementing atomic BSV applications with built-in identity integration.
🔐 Identity Integration Summary
Each live demo showcases different aspects of identity integration:
P2P MNEE: Mutual authentication and selective disclosure in peer-to-peer payments
Truth Machine: Professional credential verification for data attestation
Prescription Tokens: Healthcare identity with privacy-preserving patient data
Natural Gas: IoT device identity and operator credential verification
MetaNet Mobile: Identity certificate management and cross-application portability
These patterns demonstrate how identity becomes a natural part of atomic operations rather than a separate system to coordinate with.
Last updated
Was this helpful?