NKN Docs

NKN Docs

  • Docs
  • 文档
  • GitHub
  • NKN
  • Help

›Protocol

Home

  • Welcome
  • Get Started

API Reference

  • JsonRPC API Reference
  • Command Line Wallet

Protocol

  • NKN Session Protocol
  • NKN Client Address Scheme
  • NKN Wallet Address Scheme
  • NKN Wallet JSON Format (v2)
  • Serialization Scheme
  • Signature Chain
  • NKN D-Chat Message Scheme
  • NKN SDK resolver protocol
  • NKN Client Authorization

SDK

  • JavaScript SDK
  • Go SDK
  • iOS/Android SDK
  • Java SDK

nConnect

  • Overview
  • Get Started
  • Install nConnect Binary Release
  • Build nConnect from Source
  • nConnect Knowledge Base
  • nConnect over Tuna, Getting Faster
  • Remote Desktop
  • nConnect for NAS
  • nConnect FAQ

NKN Wallet Address Scheme

PrefixUint160Uint32
Fool-proof design160 bits Hash of RedeemScriptChecksum
  • Prefix:
Prefix is 0x02b825 (such that wallet address always starts with "NKN")
  • 160 bits Hash of RedeemScript:
generate RedeemScript from publicKey, and hash it with ripemd160
  • Checksum:
SHA256 hash twice with (Prefix + Uint160), retain lowest 32bits

Valid address range

As Address Scheme definition, the valid address range (without consider Checksum) should be:

MinimalMaximum
Expr(0x2b825<<192)|(0^160)<<32|0^32(0x2b825<<192)|(1<<160)-1)<<32|0xffffffff
Hex0x2b8250000000000...00000000000000L0x2b825ffffffffffff...ffffffffffffffffffffL
Base58NKNBV71h5oUBjknMHPikPU7nraw9KtkegU1mNKNaphzoP6BNCdbnRUkAinbv8NZeaqTtGJL6

Convert public Key to wallet address

See NKN Wallet JSON Format for steps to convert public key to wallet address.

← NKN Client Address SchemeNKN Wallet JSON Format (v2) →
  • Valid address range
  • Convert public Key to wallet address
BowlerNKNTwitterGitHubForum
Copyright © 2023 NKN | All rights reserved