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

Ed25519LittleEndianEncoding is not serializable #61

Open
MatthewPhinney opened this issue May 18, 2018 · 0 comments
Open

Ed25519LittleEndianEncoding is not serializable #61

MatthewPhinney opened this issue May 18, 2018 · 0 comments

Comments

@MatthewPhinney
Copy link

I wrote an AttributeConverter to map an EdDSAPublicKey to/from bytes, but when testing it, I found

org.springframework.orm.jpa.JpaSystemException: could not serialize; nested exception is org.hibernate.type.SerializationException: could not serialize
Caused by: java.io.NotSerializableException: net.i2p.crypto.eddsa.math.ed25519.Ed25519LittleEndianEncoding

This can easily be fixed by making Encoding serializable. Ed25519ScalarOps must also be serializable for the Hibernate converter to work, and it may be sensible to have BigIntegerScalarOps serializable as well.

@sappenin sappenin mentioned this issue Jan 9, 2019
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

Successfully merging a pull request may close this issue.

1 participant