ggmpc.serialization.ecdsa¶
Serialization functions for ECDSA data.
Module Contents¶
Functions¶
Serialize point. |
|
|
Deserialize a point. |
|
Serialize a p-share. |
|
Deserialize a p-share. |
|
Serialize an n-share. |
|
Deserialize an n-share. |
|
Serialize an x-share. |
|
Deserialize an x-share. |
|
Serialize a y-share. |
|
Deserialize a y-share. |
|
Serialize an h-share. |
|
Deserialize an x-share. |
|
Serialize a y-share. |
|
Deserialize a y-share. |
|
Serialize a w-share. |
|
Deserialize a w-share. |
|
Serialize a k-share. |
|
Deserialize a k-share. |
|
Serialize a beta-share. |
|
Deserialize a beta-share. |
|
Serialize an alpha-share. |
|
Deserialize an alpha-share. |
|
Serialize a gamma-share. |
|
Deserialize a gamma-share. |
|
Serialize a mu-share. |
|
Deserialize a mu-share. |
|
Serialize an omicron-share. |
|
Deserialize a omicron-share. |
|
Serialize a delta-share. |
|
Deserialize a delta-share. |
|
Serialize an s-share. |
|
Deserialize a s-share. |
|
Serialize a signature. |
Deserialize a signature. |
- ggmpc.serialization.ecdsa.serialize_point(p)¶
Serialize point.
- Parameters:
p – Point to serialize.
- Returns:
Serialization of p.
- Return type:
bytes
- ggmpc.serialization.ecdsa.deserialize_point(ser)¶
Deserialize a point.
- Parameters:
ser (bytes) – Serialized data.
- Returns:
The remainder of the serialized data and the deserialized point.
- Return type:
tuple
Serialize a p-share.
- Parameters:
share (dict) – P-share to serialize.
- Returns:
Serialization of share.
- Return type:
bytes
Deserialize a p-share.
- Parameters:
ser (bytes) – Serialized data.
- Returns:
The remainder of the serialized data and the deserialized p-share.
- Return type:
tuple
Serialize an n-share.
- Parameters:
share (dict) – N-share to serialize.
- Returns:
Serialization of share.
- Return type:
bytes
Deserialize an n-share.
- Parameters:
ser (bytes) – Serialized data.
- Returns:
The remainder of the serialized data and the deserialized n-share.
- Return type:
tuple
Serialize an x-share.
- Parameters:
share (dict) – X-share to serialize.
- Returns:
Serialization of share.
- Return type:
bytes
Deserialize an x-share.
- Parameters:
ser (bytes) – Serialized data.
- Returns:
The remainder of the serialized data and the deserialized x-share.
- Return type:
tuple
Serialize a y-share.
- Parameters:
share (dict) – Y-share to serialize.
- Returns:
Serialization of share.
- Return type:
bytes
Deserialize a y-share.
- Parameters:
ser (bytes) – Serialized data.
- Returns:
The remainder of the serialized data and the deserialized y-share.
- Return type:
tuple
Serialize an h-share.
- Parameters:
share (dict) – H-share to serialize.
- Returns:
Serialization of share.
- Return type:
bytes
Deserialize an x-share.
- Parameters:
ser (bytes) – Serialized data.
- Returns:
The remainder of the serialized data and the deserialized x-share.
- Return type:
tuple
Serialize a y-share.
- Parameters:
share (dict) – Y-share to serialize.
- Returns:
Serialization of share.
- Return type:
bytes
Deserialize a y-share.
- Parameters:
ser (bytes) – Serialized data.
- Returns:
The remainder of the serialized data and the deserialized y-share.
- Return type:
tuple
Serialize a w-share.
- Parameters:
share (dict) – W-share to serialize.
- Returns:
Serialization of share.
- Return type:
bytes
Deserialize a w-share.
- Parameters:
ser (bytes) – Serialized data.
- Returns:
The remainder of the serialized data and the deserialized w-share.
- Return type:
tuple
Serialize a k-share.
- Parameters:
share (dict) – K-share to serialize.
- Returns:
Serialization of share.
- Return type:
bytes
Deserialize a k-share.
- Parameters:
ser (bytes) – Serialized data.
- Returns:
The remainder of the serialized data and the deserialized k-share.
- Return type:
tuple
Serialize a beta-share.
- Parameters:
share (dict) – Beta-share to serialize.
- Returns:
Serialization of share.
- Return type:
bytes
Deserialize a beta-share.
- Parameters:
ser (bytes) – Serialized data.
- Returns:
The remainder of the serialized data and the deserialized beta-share.
- Return type:
tuple
Serialize an alpha-share.
- Parameters:
share (dict) – Alpha-share to serialize.
- Returns:
Serialization of share.
- Return type:
bytes
Deserialize an alpha-share.
- Parameters:
ser (bytes) – Serialized data.
- Returns:
The remainder of the serialized data and the deserialized w-share.
- Return type:
tuple
Serialize a gamma-share.
- Parameters:
share (dict) – Gamma-share to serialize.
- Returns:
Serialization of share.
- Return type:
bytes
Deserialize a gamma-share.
- Parameters:
ser (bytes) – Serialized data.
- Returns:
The remainder of the serialized data and the deserialized gamma-share.
- Return type:
tuple
Serialize a mu-share.
- Parameters:
share (dict) – Mu-share to serialize.
- Returns:
Serialization of share.
- Return type:
bytes
Deserialize a mu-share.
- Parameters:
ser (bytes) – Serialized data.
- Returns:
The remainder of the serialized data and the deserialized mu-share.
- Return type:
tuple
Serialize an omicron-share.
- Parameters:
share (dict) – Omicron-share to serialize.
- Returns:
Serialization of share.
- Return type:
bytes
Deserialize a omicron-share.
- Parameters:
ser (bytes) – Serialized data.
- Returns:
The remainder of the serialized data and the deserialized omicron-share.
- Return type:
tuple
Serialize a delta-share.
- Parameters:
share (dict) – Delta-share to serialize.
- Returns:
Serialization of share.
- Return type:
bytes
Deserialize a delta-share.
- Parameters:
ser (bytes) – Serialized data.
- Returns:
The remainder of the serialized data and the deserialized delta-share.
- Return type:
tuple
Serialize an s-share.
- Parameters:
share (dict) – S-share to serialize.
- Returns:
Serialization of share.
- Return type:
bytes
Deserialize a s-share.
- Parameters:
ser (bytes) – Serialized data.
- Returns:
The remainder of the serialized data and the deserialized s-share.
- Return type:
tuple
- ggmpc.serialization.ecdsa.serialize_signature(signature)¶
Serialize a signature.
- Parameters:
signature (dict) – Signature to serialize.
- Returns:
Serialization of signature.
- Return type:
bytes
- ggmpc.serialization.ecdsa.deserialize_signature(ser)¶
Deserialize a signature.
- Parameters:
ser (bytes) – Serialized data.
- Returns:
The remainder of the serialized data and the deserialized signature.
- Return type:
tuple