Repository navigation
Relationship between metadata hashes in explorers vs. Kupo? #167
Unanswered
ross-spencer
asked this question in
Q&A
Replies: 1 comment 1 reply
|
May you indicate what version of Kupo you are currently using? There was an issue regarding the calculation of metadata hash that was fixed in In this instance, however, it seems even that the raw metadata provided by Kupo is the preimage of the provided hash. Yet I did double-check on another tool which also yields |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have a transaction:
It reports its hash to be:
d5d5742a733382f6101df92a7df5273ce968036ef3e5b25df536b820cd22aba1If I access this indexed via Kupo, the hash is reported as:
ae45b0be39e8e84fec8dfddf3c5483c9870e55daad69f0bd8ab092a9d83ccb6bE.g.
[ { "hash": "ae45b0be39e8e84fec8dfddf3c5483c9870e55daad69f0bd8ab092a9d83ccb6b", "raw": "a11904caa5646461746101676578616d706c6583010203676d65737361676583767468697320697320746865206669727374206c696e65777468697320697320746865207365636f6e64206c696e65767468697320697320746865207468697264206c696e656e736f6d657468696e6720656c7365666161626263636361616163626231", "schema": { "1226": { "map": [ { "k": { "string": "data" }, "v": { "int": 1 } }, { "k": { "string": "example" }, "v": { "list": [ { "int": 1 }, { "int": 2 }, { "int": 3 } ] } }, { "k": { "string": "message" }, "v": { "list": [ { "string": "this is the first line" }, { "string": "this is the second line" }, { "string": "this is the third line" } ] } }, { "k": { "string": "something else" }, "v": { "string": "aabbcc" } }, { "k": { "string": "aaa" }, "v": { "string": "bb1" } } ] } } } ]Is there any reason the hashes should be different in an explorer's view vs. Kupo?
The original data can be used to recreate this with tag:
1226and:{ "data": 1, "example": [ 1, 2, 3 ], "message": [ "this is the first line", "this is the second line", "this is the third line" ], "something else": "aabbcc", "aaa": "bb1" }Incidentally, the CBOR reported by Kupo maintains the original structure of this snippet perfectly where the explorers currently don't. Still trying to get my head around that too.
All reactions