Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derive Serialize trait for Signature #161

Open
Fiono11 opened this issue Feb 17, 2021 · 1 comment
Open

Derive Serialize trait for Signature #161

Fiono11 opened this issue Feb 17, 2021 · 1 comment

Comments

@Fiono11
Copy link

Fiono11 commented Feb 17, 2021

How can I derive the Serialize trait for Signature? I don't find any Signature struct, only InternalSignature. Are they the same? This is confusing.

@isislovecruft
Copy link
Member

The naming of InternalSignature is due to my writing the crate as originally having a Signature struct, however this had a naming conflict once we started using @tarcieri's signature traits crate. We could potentially derive Serialize for InternalSignature, but to my knowledge there were issues with some serialisation formats not round-tripping, and hence the preferred way to serialise was to call to_bytes().

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

No branches or pull requests

2 participants