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

Add blinding value to custom data typed state #79

Closed dr-orlovsky closed 2 years ago

dr-orlovsky commented 2 years ago

Rejected: most of the data types are > 32 bit, which is sufficient for data concealment. The only types <32 bits are U8, U16, I8 and I16. Then they has to be concealed, it will be up to the contract developer to use higher-bit types with entropy via strict encoding schema structures.

Adding salt in RGB Core library will require dramatic refactoring of its API and consensus encoding which is highly undesirable at this stage.