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

feat: support read unlock witness from other index position #28

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

jjyr
Copy link
Collaborator

@jjyr jjyr commented Apr 18, 2024

In most cases, the RGBPPUnlock is located at group_input[0].lock.

For RGB++ cells which seal UTXOs in the same BTC transaction, the RGBPPUnlock is also the same.
Therefore, to reduce duplicated witness, we can pass an index to group_input[0].lock.
In such a situation, we load RGBPPUnlock from the index position.

@jjyr jjyr requested a review from duanyytop April 18, 2024 08:02
@jjyr jjyr self-assigned this Apr 18, 2024
@jjyr jjyr requested a review from chaoticlonghair April 19, 2024 00:06
@jjyr jjyr merged commit d07fb09 into main Apr 19, 2024
2 checks passed
@jjyr jjyr linked an issue Apr 19, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reduce the duplicated unlock witness
3 participants