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
Data is uploaded incorrectly when uses_uploader=False #26
Comments
Thanks for heads up, fancy submitting a PR for some project credit? |
Hi @MikeHibbert, thank you for the quick reply, opened one. What would you say to removing the older versions of the library from the package repositories? |
I'll take a look and maybe remove some older ones but I'm uncertain about removing the more recent ones in it causes dependency issues. What makes you think this is a thing that will help? |
The motivation is to prevent people from uploading the wrong data. |
@MikeHibbert please have a look at this explanation: 0xEnrico/arweave-nft-uploader#14 (comment) Basically, if I understood well, only the arweave.net cache keeps the data, while the nodes discard it. That is, when/if the cache gets flushed, the data is gone if it was uploaded using the Seems to me a quite serious issue. |
There is a bug where data passed directly to a
Transaction
object is not uploaded correctly. It computesdata_root
from the Base64URL encoded data so the nodes do not recognize it and do not accept the original data.An example.
data_root
computed from the raw data isyiIbdak6AXJ17hGF5EJC_FpleCvd3pBe2c4jSZpRDVM
whereas the tx was signed withXTcZfQOhQ0byq0NjAfJbYynVMyX6fkd4IBIfRR3S0IA
- the value consistent with computingdata_root
from a Base64URL encoded blob.To fix the issue it should be sufficient to decode here and here.
The text was updated successfully, but these errors were encountered: