Skip to content

impl_array_newtype in FFI should not autoderive std::Hash #463

@apoelstra

Description

@apoelstra

In our FFI module we implement the std::Hash trait by hashing the contents of the inner array ... but the contents of these arrays for FFI types is not guaranteed to be consistent between different copies of the library. We shoud instead be serializing the data and comparings serializations.

The same applies to Ord and Eq.

related #462

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions