Skip to content

Make fields length and hashes mandatory on MetadataDescription #104

@heartsucker

Description

@heartsucker

The spec says they can be left out at times, but we might as well include them and bolt them down to be required and match in all cases. This would add a small amount of additional security during checks, but it would add additional security to the internals of the lib by preventing misusing the struct to not include fields when it should.

I can't think of a reason not to do this (other than saving bytes in transit). @trishankkarthik, any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions