parsePublicKey static method

EllipticCurvePoint parsePublicKey(
  1. String publicKey
)

parses a serialized elliptic curve poimnt

Implementation

static EllipticCurvePoint parsePublicKey(String publicKey) {
  List<String> publicKeyTokens = publicKey.split("/");
  return EllipticCurvePoint(BigInt.parse(publicKeyTokens[0], radix: 16),
      BigInt.parse(publicKeyTokens[1], radix: 16));
}