RGB-WG / rgb-core

RGB Core Library: consensus validation for private & scalable client-validated smart contracts on Bitcoin & Lightning
https://spec.rgb.tech
Apache License 2.0
207 stars 52 forks source link

Minimizing consensus break impact #119

Closed dr-orlovsky closed 1 year ago

dr-orlovsky commented 1 year ago

This is a proposal on minimizing the impact of the consensus-breaking changes which may be scheduled for the v0.9 release.

  1. Introduce a hardcoded fix performing mapping from existing schema IDs (RGB20 and RGB21) with the old consensus to a new schema source fixing issues and using new encoding and rules (global state, metadata determinism, consensus ordering, non-constant field/state types etc).

  2. Do a web service which will accept stash in the old format and will re-issue all tokens under it with the new format returning an "upgraded stash". Existing software on a first launch must contact this web service and perform an upgrade of the stash to use the new consensus.

dr-orlovsky commented 1 year ago

Outdated due to v0.10