Skip to content

Verify_element function to generalise verify_bottom_constant #26

@luigilunardon

Description

@luigilunardon

It might be sensible to have a function called verify_element which gets as arguments a byte string element and a position in the stack position and checks that the element at position position is equal to element. This function could be used to verify a constant n by calling it on encode_num(n) but it could also be used to verify the correctness of byte strings (think about future compatibility here).

Originally posted by @BarbacoviF in #19 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions