Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple data states to same assignment (seal) #130

Closed
crisdut opened this issue Jan 15, 2024 · 3 comments
Closed

Multiple data states to same assignment (seal) #130

crisdut opened this issue Jan 15, 2024 · 3 comments
Assignees
Labels
question Further information is requested
Milestone

Comments

@crisdut
Copy link
Member

crisdut commented Jan 15, 2024

Hi @dr-orlovsky,

I would like to share a strange behavior during my tests with UDC.

In the contract creation step, I am adding two different allocations to the same seal because the UDC allows one or many tokens in the contract.

However, I could not do this because the Builder stores the allocation data in a hashmap, using the seal as the key. That is, the last allocation always overwrites the first.

This is a particular case for UDC because this does not occur in other contracts, as fungibles, because we add a single value.

I considered modifying the Builder to support a set of data states instead of a single data state per seal.

What do you think?

@dr-orlovsky
Copy link
Member

I think we can utilize seal blinding factor to generate distinct seals for the same UTXO

@dr-orlovsky dr-orlovsky added this to the v0.11.0 milestone Jan 18, 2024
@dr-orlovsky dr-orlovsky added the bug Something isn't working label Jan 18, 2024
@crisdut
Copy link
Member Author

crisdut commented Jan 18, 2024

I think we can utilize seal blinding factor to generate distinct seals for the same UTXO

Ok, great!

I will trying implement this ideia in the next week.

@dr-orlovsky dr-orlovsky moved this to Ready in RGB release v0.11 Feb 26, 2024
@dr-orlovsky dr-orlovsky added question Further information is requested and removed bug Something isn't working labels Apr 19, 2024
@dr-orlovsky
Copy link
Member

I am closing the issues since I believe that the seals must always have a distinct blinding, and thus this is a non-issue and rather an answered question. If there were no way to create seals with different blinding, that would be a bug and you would be welcome to open a new issue for that bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Status: Done
Development

No branches or pull requests

2 participants