writeKeyWithHint static method

Uint8List writeKeyWithHint(
  1. String key,
  2. String hint
)

Implementation

static Uint8List writeKeyWithHint(
  String key,
  String hint,
) {
  if (hint == 'edsk' ||
      hint == 'edpk' ||
      hint == 'sppk' ||
      hint == 'spsk' ||
      hint == 'p2pk' ||
      hint == '2bf64e07' ||
      hint == '0d0f25d9') {
    return bs58check.decode(key).sublist(4);
  } else
    throw Exception("Unrecognized key hint, '$hint'");
}