ed25519-java icon indicating copy to clipboard operation
ed25519-java copied to clipboard

Ed25519LittleEndianEncoding is not serializable

Open MatthewPhinney opened this issue 6 years ago • 0 comments

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.

MatthewPhinney avatar May 18 '18 21:05 MatthewPhinney