doImport static method

Bip32Key doImport(
  1. String key
)

Implementation

static Bip32Key doImport(String key) {
  // First we try the verify key as it's very cheap computationally.
  try {
    return Bip32VerifyKey(str2ByteArray(key));
  } catch (e) {
    return Bip32SigningKey(str2ByteArray(key));
  }
}