There are available JSON serialization and deserialization functions for PartialDecryptionZKP.
It is worth considering to move these to separate json package and cover remaining types for consistency. For now these two functions stay in the bson package.
BSON/JSON serialization and deserialization were moved to separate `bson` package.
Encoding was split into separate files per each type which is converted.
New public functions had been exposed for objects conversion. These functions should be called for conversion between BSON/JSON and structures.
```
func SerializeCypher(cypher *paillier.Cypher) ([]byte, error)
func DeserializeCypher(data []byte) (*paillier.Cypher, error)
func SerializePartialDecryptionZKP(pdzkp *paillier.PartialDecryptionZKP) ([]byte, error)
func DeserializePartialDecryptionZKP(data []byte) (*paillier.PartialDecryptionZKP, error)
func SerializePrivateKey(key *paillier.PrivateKey) ([]byte, error)
func DeserializePrivateKey(data []byte) (*paillier.PrivateKey, error)
func SerializePublicKey(publicKey *paillier.PublicKey) ([]byte, error)
func DeserializePublicKey(data []byte) (*paillier.PublicKey, error)
func SerializeThresholdPublicKey(key *paillier.ThresholdPublicKey) ([]byte, error)
func DeserializeThresholdPublicKey(data []byte) (*paillier.ThresholdPublicKey, error)
```
There are available JSON serialization and deserialization functions for `PartialDecryptionZKP`.
It is worth considering to move these to separate `json` package and cover remaining types for consistency. For now these two functions stay in the `bson` package.
```
func JsonSerializePartialDecryptionZKP(pdzkp *paillier.PartialDecryptionZKP) ([]byte, error)
func JsonDeserializePartialDecryptionZKP(data []byte) (*paillier.PartialDecryptionZKP, error)
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
BSON/JSON serialization and deserialization were moved to separate
bsonpackage.Encoding was split into separate files per each type which is converted.
New public functions had been exposed for objects conversion. These functions should be called for conversion between BSON/JSON and structures.
There are available JSON serialization and deserialization functions for
PartialDecryptionZKP.It is worth considering to move these to separate
jsonpackage and cover remaining types for consistency. For now these two functions stay in thebsonpackage.For the original discussion around how we approached this and why the interface is as it is, see keep-network/paillier#4.
Excellent job, I am merging the pull request right now.
Many thanks,
didier