1

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

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

5
  • Still would be nice with everything contained in a file, though. Raw hex + operation hash. Sep 25 '20 at 7:25
  • @ThorkilVærge Please be sure to mark your questions as 'answered' so they can be closed. Thanks.
    – utdrmac
    Sep 25 '20 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 '20 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 '20 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 the txid, and that file does not include branch Sep 26 '20 at 11:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.