import method

Account import(
  1. dynamic prvHex
)

import account from hex string

Implementation

Account import(dynamic prvHex) {
  if (prvHex is String) {
    return Account._importFromString(prvHex);
  } else if (prvHex is BigInt) {
    return Account._importFromBigInt(prvHex);
  } else {
    return new Account();
  }
}