privateKeyToString function

String privateKeyToString(
  1. IKey key
)

Convert key to string (base-58) form */

Implementation

String privateKeyToString(IKey key) {
  if (key.type == KeyType.r1) {
    return keyToString(key, 'R1', 'PVT_R1_');
  } else {
    throw 'unrecognized private key format';
  }
}