Skip to content

ed25519: use from_bytes instead of from in ed25519 serde::Deserializer #478

@ptrcnull

Description

@ptrcnull

Currently there's no way to catch the error when deserializing an invalid signature, because it uses Signature::from that panics:

deserializer
.deserialize_bytes(ByteArrayVisitor)
.map(Signature::from)

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