Currently, kFrags are very simple objects: `namedtuple('RekeyFrag', ['id', 'key'])` But how best to represent this object over the wire? Currently, we imagine the payload for a policy in NuCypher-KMS as: `msgpack.dumps({b"kf": bytes(self.kfrag), b"cp": msgpack.dumps(self.challenge_pack)})` However, we can't easily cast the kFrag to bytes. What's the one obvious way to do this?
Currently, kFrags are very simple objects:
namedtuple('RekeyFrag', ['id', 'key'])But how best to represent this object over the wire?
Currently, we imagine the payload for a policy in NuCypher-KMS as:
msgpack.dumps({b"kf": bytes(self.kfrag), b"cp": msgpack.dumps(self.challenge_pack)})However, we can't easily cast the kFrag to bytes. What's the one obvious way to do this?