deserializePrivateKeyFromJson function

ASEPrivateKey deserializePrivateKeyFromJson(
  1. Map<String, dynamic> m
)

Deserializes the private key from a parsed JSON object The object should contain the key 's'.

Implementation

ASEPrivateKey deserializePrivateKeyFromJson(Map<String, dynamic> m) {
  var sVec =
      (m['s'] as List).map((c) => Poly(List<int>.from(c as List))).toList();
  return ASEPrivateKey(PolyVec(sVec));
}