serializePublicKey function
Serializes the public key to JSON format
Implementation
String serializePublicKey(ASEPublicKey pk) => jsonEncode({
'A': pk.A.map((pv) => pv.vec.map((p) => p.coeffs).toList()).toList(),
'b': pk.b.vec.map((p) => p.coeffs).toList(),
});