serializePublicKey function

String serializePublicKey(
  1. ASEPublicKey pk
)

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(),
    });