-
Notifications
You must be signed in to change notification settings - Fork 9
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
reposts with edits (aka third-party metadata) #49
Comments
In addition to the claim hash, if |
I believe this would be redundant since you can use the time of the repost itself to determine the order the changes should be applied. In other words, you can compute the claim_tx_hash and claim_tx_nout dynamically without using precious blockchain space. |
Howdy guys - how are things going with this issue? Is it being actively worked on? |
@moodyjon to investigate this approach with eye to become owner of this issue |
https://github.com/lbryio/types/search?q=ClaimReference
|
I've been working on
In lbry-sdk, Finally, if the reposted edited fields are to be searchable, |
Problem
Proposed solution
Add two new fields to ClaimReference as follows
edits
anddeletions
are used to change parts of the referenced claim.deletions
includes a field that is not in the referenced claim, ignore itdeletions
includes a repeated field that is in the reference claim, then any values indeletions
should be removed from the referenced claimdeletions
includes a non-repeated field that is in the reference claim, delete those fields from that claim (the value in thedeleted
field does not matter. it can be anything except the default value for that field)edits
includes fields that the referenced claim does not include, or if it includes repeated fields, treat them as added to the claimedits
includes non-repeated fields that are also in the referenced claim, treat them as overwriting the existing fieldsDeletions must be applied first, and edits applied after.
The
type
of thedeletions
andedits
Claims must match the type of the claim that is referenced. if it does not match, the edits will not make sense and downstream apps may ignore them or even ignore the claim as a whole.Downstream apps should make clear to users which values come from the underlying claim and which come from edits/deletions.
If a referenced claim is updated after it is referenced, the values in
deletions
andedits
may no longer make sense. Downstream apps should highlight to the user any fields that were updated in the referenced claim after being edited/deleted.Outstanding Questions
Corner Cases
duration
in the claim is set to 5 minutesduration
to be 3 minutes using theedits
fieldduration
in the metadata to 6 minutes (which is now correct for the new video)duration
of 3 minutes, which is now wrongThe text was updated successfully, but these errors were encountered: