libsignal offers pretty nice primitives for handling generating keys along with associated data (such as signatures).
However, KyberPreKeyRecord unlike other state types does not expose a constructor, only a static generate() function. The current workaround is to create a record by deserializing a SignedPreKeyRecordStructure protobuf.
This works but is quite clunky and error prone. Alternatively we could just store the serialized bytestring but that would limit further possibilities.
libsignal
offers pretty nice primitives for handling generating keys along with associated data (such as signatures).However,
KyberPreKeyRecord
unlike other state types does not expose a constructor, only a staticgenerate()
function. The current workaround is to create a record by deserializing aSignedPreKeyRecordStructure
protobuf.This works but is quite clunky and error prone. Alternatively we could just store the serialized bytestring but that would limit further possibilities.