I am writing code to calculate operation hash from the raw hex and I would like some test vectors to verify my code. Where can I find that?
1 Answer
You can test against the data that the official Tezos project uses for regression testing. This file might be of interest:
https://gitlab.com/tezos/tezos/-/blob/master/tezt/_regressions/protocol.alpha.operation.internal.out
-
Still would be nice with everything contained in a file, though. Raw hex + operation hash. Sep 25, 2020 at 7:25
-
@ThorkilVærge Please be sure to mark your questions as 'answered' so they can be closed. Thanks.– utdrmac ♦Sep 25, 2020 at 11:36
-
@utdrmac In the comments I asked if the txid + raw hex could be found in the same file. Still waiting to see if that is the case. Sep 25, 2020 at 12:37
-
1@ThorkilVærge If you look at the file in the answer, then your answer is no. They are not found in the same file and adding them would require retooling all of the Tezos build scripts.– utdrmac ♦Sep 25, 2020 at 13:59
-
Looking at the file I don't think it solves the problem, as the
branch
of the operation is needed to calculate thetxid
, and that file does not includebranch
Sep 26, 2020 at 11:05