⚡ Lightning Network

Quantum-Resistant Layer 2 Payment Channels for Instant, Low-Cost Transactions

What is the Lightning Network?

The INTcoin Lightning Network is a Layer 2 scaling solution that enables instant, low-cost payments through off-chain payment channels. Built with quantum-resistant cryptography, it's the first Lightning implementation using CRYSTALS-Kyber1024 for key exchange and CRYSTALS-Dilithium5 for signatures.

1,000+
Payments per Second
<1s
Payment Latency
100%
Quantum Resistant
$0.0001
Average Fee

Key Features

⚡ Instant Payments

Transactions settle in less than 1 second, enabling real-time micropayments and point-of-sale purchases.

💰 Low Fees

Off-chain transactions cost a fraction of on-chain fees, making micropayments economically viable.

🔐 Quantum Security

Kyber1024 key exchange and Dilithium5 signatures provide 256-bit quantum security level.

🕵️ Privacy Protection

Onion routing ensures payment source, destination, and route are hidden from intermediaries.

🌐 Multi-Hop Routing

Payments route through multiple nodes using the Sphinx protocol with up to 20 hops.

📋 BOLT Compliant

Follows Lightning Network specifications (BOLT) with quantum-resistant adaptations.

Address Formats

INTcoin uses unique address formats distinct from Bitcoin and other cryptocurrencies:

On-Chain Addresses

Mainnet: INT1A2b3C4d5E6f7G8h9I0jK1L2M3N4o5P6q7R8s
Testnet: TINTA2b3C4d5E6f7G8h9I0jK1L2M3N4o5P6q7R8s

On-chain addresses use Base58Check encoding with INTcoin-specific prefixes:

Lightning Network Invoices

Mainnet: lnint1000m1p<payment_hash><description><signature>
Testnet: lntint1000m1p<payment_hash><description><signature>

Lightning invoices use Bech32 encoding with amount multipliers:

Payment URIs

intcoin:INT1A2b3C4d5E6f7G8h9I0jK1L2M3N4o5P6q7R8s?amount=10.5&label=Coffee&message=Payment%20for%20coffee

Payment URIs enable QR code scanning and easy wallet integration.

How It Works

Channel Lifecycle

1. CHANNEL OPENING
   Alice ──[funding tx]──> Blockchain ◀──[funding tx]── Bob
   Alice ◀────────────────> Lightning Channel ◀────────────────> Bob

2. PAYMENT FLOW
   Alice ──[HTLC]──> Hop 1 ──[HTLC]──> Hop 2 ──[HTLC]──> Bob
   Alice ◀─[preimage]─ Hop 1 ◀─[preimage]─ Hop 2 ◀─[preimage]─ Bob

3. CHANNEL CLOSING
   Alice ──[closing tx]──> Blockchain ◀──[closing tx]── Bob
                

Onion Routing (Sphinx Protocol)

┌────────────────────────────────┐
│ Onion Packet (1,366 bytes)     │
├────────────────────────────────┤
│ Version: 1 byte                │
│ Ephemeral Key: 1,568 bytes     │  ← Kyber1024 public key
│ Routing Info: 1,300 bytes      │  ← Encrypted hop data
│ HMAC: 32 bytes                 │  ← SHA3-256 integrity check
└────────────────────────────────┘

Privacy Guarantees:
✓ Each node only knows: prev hop, next hop, amount
✗ Nodes cannot determine: source, destination, route length
                

Get Started

1. Install INTcoin

# Download latest release git clone https://gitlab.com/intcoin/crypto.git cd crypto # Build with Lightning Network enabled mkdir build && cd build cmake .. -DENABLE_LIGHTNING=ON cmake --build . -j$(nproc)

2. Start Lightning Node

# Start GUI wallet with Lightning Network ./intcoin-qt # Or use RPC commands ./intcoin-cli lightning start ./intcoin-cli lightning getnodeinfo

3. Open a Channel

# Connect to a peer ./intcoin-cli lightning connect <node_id> <host>:<port> # Open channel (capacity in satoshis) ./intcoin-cli lightning openchannel <node_id> 1000000 # Wait for confirmations (6 blocks) ./intcoin-cli lightning listchannels

4. Make a Payment

# Create an invoice ./intcoin-cli lightning createinvoice 1000 "Coffee" # Pay an invoice ./intcoin-cli lightning payinvoice lnint1000m1p... # Check payment history ./intcoin-cli lightning listpayments

Technical Specifications

Component Specification
Protocol BOLT-compliant with quantum adaptations
Key Exchange CRYSTALS-Kyber1024 (NIST FIPS 203)
Signatures CRYSTALS-Dilithium5 (NIST FIPS 204)
Hashing SHA3-256 (NIST FIPS 202)
Encryption ChaCha20 stream cipher
Max Route Length 20 hops
Onion Packet Size 1,366 bytes (fixed)
Payment Throughput 1,000+ payments/second per channel
Route Finding <100ms for 10,000-node network
Quantum Security 256-bit security level

Resources

Frequently Asked Questions

What makes INTcoin Lightning different from Bitcoin Lightning?

INTcoin Lightning uses quantum-resistant cryptography (Kyber1024 and Dilithium5) instead of classical ECDSA, making it secure against both classical and quantum attacks. The protocol also has larger message sizes due to post-quantum signatures (4,595 bytes for Dilithium vs. 64 bytes for ECDSA).

Are INTcoin Lightning channels compatible with Bitcoin Lightning?

No, due to the different cryptographic primitives and address formats, INTcoin Lightning operates on a separate network. However, future cross-chain atomic swaps may enable interoperability.

How much does it cost to open a channel?

Opening a channel requires an on-chain transaction, which costs the standard network fee (typically 0.0001 INT). Once open, you can make unlimited off-chain payments for minimal fees.

What happens if my channel partner goes offline?

If your channel partner becomes unresponsive, you can force-close the channel by broadcasting the latest commitment transaction. Your funds will be returned after a time-lock period (144 blocks, ~12 hours).

Is my payment information private?

Yes! The onion routing protocol ensures that intermediate nodes cannot determine the payment source, destination, or total route length. Only the sender and receiver know the full payment details.