LNPBPs icon indicating copy to clipboard operation
LNPBPs copied to clipboard

In RGB genesis encode whole set of chain parameters, not just a network id/genesis hash

Open dr-orlovsky opened this issue 5 years ago • 0 comments

RGB genesis must:

  • encode (with strict_encode) all chain parameters
  • commit (with commit_encode) only to network genesis block hash

This will allow clients to work with arbitrary networks, but change details of chain parameters (like default port numbers) over time without affecting commitments. Detailed chain parameters will work like a hint if the network parameters will be unknown for the client.

PR: https://github.com/LNP-BP/rust-lnpbp/pull/104/commits/cb0f1f517ecf2b4730a36e58b056dbffa779d337

Updt: https://github.com/LNP-BP/rust-lnpbp/issues/114

dr-orlovsky avatar Sep 22 '20 17:09 dr-orlovsky