Skip to content

Conversation

@spalmer25
Copy link

Context

A proof field has been introduced in the protocol Seoul.
Its encoding is described in tezos/tezos

I may wrongly understand how forging are handled in pytezos, but the proof field seems wrongly encoded in forge_reveal

Solution

  • A ff tag (True) need to be added in the same way as the 00 tag (False) is added if proof is absent.
  • A 4-bytes size representing the size of the proof is need.

A proof field has been introduced in the protocol Seoul.
Its encoding is described here: https://gitlab.com/tezos/tezos/-/blob/octez-v23.0/src/proto_023_PtSeouLo/lib_protocol/operation_repr.ml#L686

If proof is required:
 - A `ff` tag (True) need to be added in the same way as the `00`
 tag (False) is added if proof is absent.
 - A 4-bytes size representing the size of the proof is need.
@spalmer25 spalmer25 changed the title fix proof field forging for reveal Fix proof field forging for reveal Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant