givelotus / lotus-vase

A simple reference wallet for Lotus which supports mobile devices.
GNU General Public License v3.0
4 stars 2 forks source link

Fix another issue with key encodings #130

Closed schancel closed 3 years ago

schancel commented 3 years ago

In some cases, an xprivkey cannot be generated because the normal serialization is less than 33 bytes. This means the CKDSerializer class blows up, because it currently makes bad assumptions. The quick fix is to move padding to 33 bytes into the CKD Serializer class. However, upon further investigation, this class needs to be refactored itself.