Thanks to visit codestin.com
Credit goes to github.com

Skip to content

jpgaviria2/cashu.me

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Bitpoints.me

Bitcoin-backed rewards that increase in purchasing power over time

Bitpoints.me is an open-source wallet merging proven privacy and interoperability protocols: Cashu ecash for private bearer tokens, Nostr for decentralized identity, and Bluetooth mesh networking (from BitChat) for offline peer-to-peer transfers.

Why Bitpoints?

Your Rewards Appreciate Over Time

Unlike traditional points that lose value to inflation, Bitpoints are denominated in Bitcoin (sats). As Bitcoin's purchasing power increases, so do your rewards. What buys a coffee today might buy lunch tomorrow.

Universal Interoperability

Built on open protocols, Bitpoints work with any merchant accepting Bitcoin or Lightning. Your rewards aren't locked to one businessβ€”spend them anywhere in the global Bitcoin economy.

Privacy by Default

  • Cashu ecash protocol: Bearer tokens with no transaction history
  • No accounts or tracking: Your spending is your business
  • Offline-capable: Send and receive without internet via Bluetooth mesh

Open Source, No Lock-in

Every component is open source and based on established protocols:

  • Cashu: Chaumian ecash for Bitcoin
  • Nostr: Decentralized identity (NIP-05, NIP-60)
  • BitChat Mesh: Noise Protocol-encrypted Bluetooth mesh networking

Key Features

πŸ”’ Privacy-First Design

  • Bearer tokens with no transaction history
  • End-to-end Noise Protocol encryption for all mesh transfers
  • Ephemeral peer IDs prevent tracking
  • No personal data collection

πŸ“‘ Bluetooth Mesh Networking (from BitChat)

  • Offline transfers: Send/receive without internet
  • Multi-hop relay: Reach peers up to 7 hops away
  • Peer discovery: Find nearby Bitpoints users automatically
  • Broadcast mode: Send rewards to all nearby users
  • Noise Protocol encryption: Military-grade E2E encryption
  • Battery optimized: Adaptive duty cycling

⚑ Lightning Integration

  • Receive via Lightning address: [email protected]
  • Auto-claim tokens from Lightning payments
  • NIP-05 verified identity
  • LNURL-pay support

πŸ” Self-Custodial Security

  • Non-custodial: You control your keys
  • Social backup options (NIP-60 encrypted to trusted contacts)
  • Seed phrase derived from wallet (one backup for everything)
  • Open source and auditable

Installation

Web App (PWA)

Visit bitpoints.me on your phone and add to home screen.

Docker (Self-hosted)

docker-compose up -d

Access at http://localhost:3000

Development

npm install
quasar dev

Building for Mobile

Android

quasar build
npx cap sync android
npx cap open android

iOS

quasar build
npx cap sync ios
npx cap open ios

Bluetooth Mesh Implementation

Powered by BitChat's battle-tested mesh networking (ported to Android):

Full Android Implementation:

  • βœ… BluetoothMeshService.kt - Core mesh service
  • βœ… BluetoothGattClientManager.kt - BLE client
  • βœ… BluetoothGattServerManager.kt - BLE server
  • βœ… NoiseEncryptionService.kt - End-to-end encryption
  • βœ… MessageHandler.kt - Token message processing
  • βœ… PacketRelayManager.kt - Multi-hop relay
  • βœ… PeerManager.kt - Peer discovery and tracking

Features:

  • Noise Protocol (XX pattern) encryption
  • Multi-hop routing (up to 7 hops, TTL-based)
  • Fragment assembly for large tokens
  • Battery-optimized scanning/advertising
  • RSSI-based peer distance estimation
  • Auto-redeem incoming tokens

Use Cases

For Users

  • Daily Rewards: Earn Bitcoin-backed points that appreciate
  • Peer Gifting: Send sats to friends via Bluetooth (no internet needed)
  • Privacy: Spend without surveillance
  • Portability: Use your rewards anywhere Bitcoin is accepted

For Merchants

  • Customer Loyalty: Issue Bitcoin-backed rewards
  • No Lock-in: Customers can spend rewards anywhere (builds goodwill)
  • Event Promotions: Broadcast rewards to attendees via Bluetooth mesh
  • Offline Operation: Accept payments even without internet

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              Bitpoints PWA (Quasar/Vue)                  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                                                          β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚        Cashu Wallet + Nostr Identity              β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚                                                          β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚  Bluetooth Mesh (BluetoothEcashPlugin)            β”‚  β”‚
β”‚  β”‚  - Noise Protocol Encryption                      β”‚  β”‚
β”‚  β”‚  - Multi-hop Relay                                β”‚  β”‚
β”‚  β”‚  - Auto-redeem Tokens                             β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚                                                          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚                 β”‚                 β”‚
           β–Ό                 β–Ό                 β–Ό
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚  Cashu   β”‚      β”‚  Nostr   β”‚     β”‚  Nearby  β”‚
    β”‚  Mint    β”‚      β”‚  Relays  β”‚     β”‚  Peers   β”‚
    β”‚(Lightning)β”‚      β”‚(NIP-05) β”‚     β”‚  (BLE)   β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Documentation

Contributing

Bitpoints.me is open source (Apache 2.0). Contributions welcome!

License

Apache License 2.0

Credits

Built on the shoulders of giants:

  • Cashu Protocol: @callebtc and the Cashu community
  • Nostr Protocol: @fiatjaf and Nostr contributors
  • BitChat Mesh: Noise Protocol-based Bluetooth mesh networking
  • Quasar Framework: @rstoenescu
  • Capacitor: @ionic-team

Bitpoints.me - Your rewards, your Bitcoin, your privacy.

About

Cashu wallet PWA

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 33.4%
  • Vue 22.9%
  • Kotlin 21.7%
  • Java 19.7%
  • JavaScript 1.4%
  • SCSS 0.5%
  • Other 0.4%