:py:mod:`ggmpc.serialization.eddsa` =================================== .. py:module:: ggmpc.serialization.eddsa .. autoapi-nested-parse:: Serialization functions for EdDSA data. Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: ggmpc.serialization.eddsa.serialize_secret ggmpc.serialization.eddsa.deserialize_secret ggmpc.serialization.eddsa.serialize_u_share ggmpc.serialization.eddsa.deserialize_u_share ggmpc.serialization.eddsa.serialize_y_share ggmpc.serialization.eddsa.deserialize_y_share ggmpc.serialization.eddsa.serialize_p_share ggmpc.serialization.eddsa.deserialize_p_share ggmpc.serialization.eddsa.serialize_j_share ggmpc.serialization.eddsa.deserialize_j_share ggmpc.serialization.eddsa.serialize_x_share ggmpc.serialization.eddsa.deserialize_x_share ggmpc.serialization.eddsa.serialize_r_share ggmpc.serialization.eddsa.deserialize_r_share ggmpc.serialization.eddsa.serialize_g_share ggmpc.serialization.eddsa.deserialize_g_share ggmpc.serialization.eddsa.serialize_signature ggmpc.serialization.eddsa.deserialize_signature .. py:function:: serialize_secret(sk) Serialize a secret. :param sk: The secret to serialize. :type sk: dict :return: Serialization of `secret`. :rtype: bytes .. py:function:: deserialize_secret(ser) Deserialize a secret. :param ser: Serialized data. :type ser: bytes :return: The remainder of serialized data and the deserialized secret. :rtype: tuple .. py:function:: serialize_u_share(share) Serialize a u-share. :param share: U-share to serialize. :type share: dict :return: Serialization of `share`. :rtype: bytes .. py:function:: deserialize_u_share(ser) Deserialize a u-share. :param ser: Serialized data. :type ser: bytes :return: The remainder of the serialized data and the deserialized u-share. :rtype: tuple .. py:function:: serialize_y_share(share) Serialize a y-share. :param share: Y-share to serialize. :type share: dict :return: Serialization of `share`. :rtype: bytes .. py:function:: deserialize_y_share(ser) Deserialize a y-share. :param ser: Serialized data. :type ser: bytes :return: The remainder of the serialized data and the deserialized y-share. :rtype: tuple .. py:function:: serialize_p_share(P_i) Serialize a p-share. :param share: P-share to serialize. :type share: dict :return: Serialization of `share`. :rtype: bytes .. py:function:: deserialize_p_share(ser) Deserialize a p-share. :param ser: Serialized data. :type ser: bytes :return: The remainder of the serialized data and the deserialized p-share. :rtype: tuple .. py:function:: serialize_j_share(P_j) Serialize a j-share. :param share: J-share to serialize. :type share: dict :return: Serialization of `share`. :rtype: bytes .. py:function:: deserialize_j_share(ser) Deserialize a j-share. :param ser: Serialized data. :type ser: bytes :return: The remainder of the serialized data and the deserialized j-share. :rtype: tuple .. py:function:: serialize_x_share(share) Serialize an x-share. :param share: X-share to serialize. :type share: dict :return: Serialization of `share`. :rtype: bytes .. py:function:: deserialize_x_share(ser) Deserialize an x-share. :param ser: Serialized data. :type ser: bytes :return: The remainder of the serialized data and the deserialized x-share. :rtype: tuple .. py:function:: serialize_r_share(share) Serialize an r-share. :param share: R-share to serialize. :type share: dict :return: Serialization of `share`. :rtype: bytes .. py:function:: deserialize_r_share(ser) Deserialize an r-share. :param ser: Serialized data. :type ser: bytes :return: The remainder of the serialized data and the deserialized r-share. :rtype: tuple .. py:function:: serialize_g_share(share) Serialize a g-share. :param share: G-share to serialize. :type share: dict :return: Serialization of `share`. :rtype: bytes .. py:function:: deserialize_g_share(ser) Deserialize a g-share. :param ser: Serialized data. :type ser: bytes :return: The remainder of the serialized data and the deserialized g-share. :rtype: tuple .. py:function:: serialize_signature(signature) Serialize a signature. :param share: Signature to serialize. :type share: dict :return: Serialization of `signature`. :rtype: bytes .. py:function:: deserialize_signature(ser) Deserialize a signature. :param ser: Serialized data. :type ser: bytes :return: The remainder of the serialized data and the deserialized signature. :rtype: tuple