privateKeyToString function
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';
}
}