Skip to content

Kings v0.1.5 - npub in Bech32 Format

Choose a tag to compare

@EthnTuttle EthnTuttle released this 08 Feb 02:47
64d7271

What's New

npub Displayed in Standard Nostr Format

  • Bech32 encoding: Public key now shows as npub1... instead of hex
  • Copy as npub: Clipboard gets the bech32 format for easy sharing
  • QR code contains npub: Scan-friendly standard Nostr format

Import Supports Both Formats

  • nsec1...: Import private key in standard Nostr bech32 format
  • Hex: Still accepts 64-character hex private keys

Technical Changes

  • Added full Bech32 encoder/decoder in Keys.kt
  • New utility functions:
    • hexToNpub() / npubToHex()
    • hexToNsec() / nsecToHex()
  • Proper checksum validation for bech32 strings

Example

Before: a1b2c3d4e5f6... (64 hex chars)
After: npub1... (63 char bech32)

Installation

Download kings-v0.1.5.apk and install on your Android device (API 27+).