:py:mod:`ggmpc.serialization.ecdsa` =================================== .. py:module:: ggmpc.serialization.ecdsa .. autoapi-nested-parse:: Serialization functions for ECDSA data. Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: ggmpc.serialization.ecdsa.serialize_point ggmpc.serialization.ecdsa.deserialize_point ggmpc.serialization.ecdsa.serialize_p_share ggmpc.serialization.ecdsa.deserialize_p_share ggmpc.serialization.ecdsa.serialize_n_share ggmpc.serialization.ecdsa.deserialize_n_share ggmpc.serialization.ecdsa.serialize_x_share ggmpc.serialization.ecdsa.deserialize_x_share ggmpc.serialization.ecdsa.serialize_y_share ggmpc.serialization.ecdsa.deserialize_y_share ggmpc.serialization.ecdsa.serialize_h_share ggmpc.serialization.ecdsa.deserialize_h_share ggmpc.serialization.ecdsa.serialize_j_share ggmpc.serialization.ecdsa.deserialize_j_share ggmpc.serialization.ecdsa.serialize_w_share ggmpc.serialization.ecdsa.deserialize_w_share ggmpc.serialization.ecdsa.serialize_k_share ggmpc.serialization.ecdsa.deserialize_k_share ggmpc.serialization.ecdsa.serialize_b_share ggmpc.serialization.ecdsa.deserialize_b_share ggmpc.serialization.ecdsa.serialize_a_share ggmpc.serialization.ecdsa.deserialize_a_share ggmpc.serialization.ecdsa.serialize_g_share ggmpc.serialization.ecdsa.deserialize_g_share ggmpc.serialization.ecdsa.serialize_m_share ggmpc.serialization.ecdsa.deserialize_m_share ggmpc.serialization.ecdsa.serialize_o_share ggmpc.serialization.ecdsa.deserialize_o_share ggmpc.serialization.ecdsa.serialize_d_share ggmpc.serialization.ecdsa.deserialize_d_share ggmpc.serialization.ecdsa.serialize_s_share ggmpc.serialization.ecdsa.deserialize_s_share ggmpc.serialization.ecdsa.serialize_signature ggmpc.serialization.ecdsa.deserialize_signature .. py:function:: serialize_point(p) Serialize point. :param p: Point to serialize. :type x: ecdsa.ellipticcurve.PointJacobi :return: Serialization of `p`. :rtype: bytes .. py:function:: deserialize_point(ser) Deserialize a point. :param ser: Serialized data. :type ser: bytes :return: The remainder of the serialized data and the deserialized point. :rtype: tuple .. py:function:: serialize_p_share(share) 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_n_share(share) Serialize an n-share. :param share: N-share to serialize. :type share: dict :return: Serialization of `share`. :rtype: bytes .. py:function:: deserialize_n_share(ser) Deserialize an n-share. :param ser: Serialized data. :type ser: bytes :return: The remainder of the serialized data and the deserialized n-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_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_h_share(share) Serialize an h-share. :param share: H-share to serialize. :type share: dict :return: Serialization of `share`. :rtype: bytes .. py:function:: deserialize_h_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_j_share(share) Serialize a y-share. :param share: Y-share to serialize. :type share: dict :return: Serialization of `share`. :rtype: bytes .. py:function:: deserialize_j_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_w_share(share) Serialize a w-share. :param share: W-share to serialize. :type share: dict :return: Serialization of `share`. :rtype: bytes .. py:function:: deserialize_w_share(ser) Deserialize a w-share. :param ser: Serialized data. :type ser: bytes :return: The remainder of the serialized data and the deserialized w-share. :rtype: tuple .. py:function:: serialize_k_share(share) Serialize a k-share. :param share: K-share to serialize. :type share: dict :return: Serialization of `share`. :rtype: bytes .. py:function:: deserialize_k_share(ser) Deserialize a k-share. :param ser: Serialized data. :type ser: bytes :return: The remainder of the serialized data and the deserialized k-share. :rtype: tuple .. py:function:: serialize_b_share(share) Serialize a beta-share. :param share: Beta-share to serialize. :type share: dict :return: Serialization of `share`. :rtype: bytes .. py:function:: deserialize_b_share(ser) Deserialize a beta-share. :param ser: Serialized data. :type ser: bytes :return: The remainder of the serialized data and the deserialized beta-share. :rtype: tuple .. py:function:: serialize_a_share(share) Serialize an alpha-share. :param share: Alpha-share to serialize. :type share: dict :return: Serialization of `share`. :rtype: bytes .. py:function:: deserialize_a_share(ser) Deserialize an alpha-share. :param ser: Serialized data. :type ser: bytes :return: The remainder of the serialized data and the deserialized w-share. :rtype: tuple .. py:function:: serialize_g_share(share) Serialize a gamma-share. :param share: Gamma-share to serialize. :type share: dict :return: Serialization of `share`. :rtype: bytes .. py:function:: deserialize_g_share(ser) Deserialize a gamma-share. :param ser: Serialized data. :type ser: bytes :return: The remainder of the serialized data and the deserialized gamma-share. :rtype: tuple .. py:function:: serialize_m_share(share) Serialize a mu-share. :param share: Mu-share to serialize. :type share: dict :return: Serialization of `share`. :rtype: bytes .. py:function:: deserialize_m_share(ser) Deserialize a mu-share. :param ser: Serialized data. :type ser: bytes :return: The remainder of the serialized data and the deserialized mu-share. :rtype: tuple .. py:function:: serialize_o_share(share) Serialize an omicron-share. :param share: Omicron-share to serialize. :type share: dict :return: Serialization of `share`. :rtype: bytes .. py:function:: deserialize_o_share(ser) Deserialize a omicron-share. :param ser: Serialized data. :type ser: bytes :return: The remainder of the serialized data and the deserialized omicron-share. :rtype: tuple .. py:function:: serialize_d_share(share) Serialize a delta-share. :param share: Delta-share to serialize. :type share: dict :return: Serialization of `share`. :rtype: bytes .. py:function:: deserialize_d_share(ser) Deserialize a delta-share. :param ser: Serialized data. :type ser: bytes :return: The remainder of the serialized data and the deserialized delta-share. :rtype: tuple .. py:function:: serialize_s_share(share) Serialize an s-share. :param share: S-share to serialize. :type share: dict :return: Serialization of `share`. :rtype: bytes .. py:function:: deserialize_s_share(ser) Deserialize a s-share. :param ser: Serialized data. :type ser: bytes :return: The remainder of the serialized data and the deserialized s-share. :rtype: tuple .. py:function:: serialize_signature(signature) Serialize a signature. :param signature: Signature to serialize. :type signature: 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