stringToPrivateKey function
Convert key in s
to binary form
Implementation
IKey stringToPrivateKey(String s) {
if (s.substring(0, 7) == 'PVT_R1_') {
return stringToKey(s.substring(7), KeyType.r1, privateKeyDataSize, 'R1');
} else {
throw 'unrecognized private key format';
}
}