Stake pool metadata hash length in test vectors #278
-
Pool registration metadata hash has a length of 20 in the test vectors, while CDDL says it's type is $hash32 (should have length of 64). Is Ogmios using a different (non base16) encoding for it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Indeed. Ogmios' tests rely on arbitrary generator coming from the consensus and ledger code bases. Sadly however, some of those generators aren't completely faithful when it comes to hashes (stake pool metadata hash being one of them). While this could be patched on-the-fly in Ogmios, I think that the proper way to fix it is rather upstream, in cardano-ledger. |
Beta Was this translation helpful? Give feedback.
Indeed. Ogmios' tests rely on arbitrary generator coming from the consensus and ledger code bases. Sadly however, some of those generators aren't completely faithful when it comes to hashes (stake pool metadata hash being one of them). While this could be patched on-the-fly in Ogmios, I think that the proper way to fix it is rather upstream, in cardano-ledger.