MixinNetwork / libsignal_protocol_dart

Signal Protocol library for Dart/Flutter
https://pub.dev/packages/libsignal_protocol_dart
GNU General Public License v3.0
159 stars 42 forks source link

Deserialize IdentityKey #52

Closed cremfert closed 2 years ago

cremfert commented 2 years ago

I'm trying to deserialize an identity key that I stored in a file. For this, I used .serialize the key and then, to load it again, I use the IdentityKey.fromBytes method.

Here is a parameter required called offset. Is this always 0 or does it have a different meaning?

Thanks a lot!

Tougee commented 2 years ago

Seems like a redundant parameter here, welcome PR to fix this.

crossle commented 2 years ago

The offset means if it's a DjbECPublicKey has a type on the prefix.