decrypt static method

Uint8List decrypt(
  1. String jsonString,
  2. String password
)

Decrypt a JSON-style keystore back into a private key.

Implementation

static Uint8List decrypt(String jsonString, String password) {
  Wallet wallet = Wallet.fromJson(jsonString, password);
  var ethKey = wallet.privateKey;

  return ethKey.privateKey;
}