public String gen(RandomSource randomSource, String[] args) throws GenException { Opt opt = opt(); String res = GeneratorTool.defaultProcess(opt, args); if (res != null) { return res; } String keypairString = opt.getStringValue("keypair"); int certainty = opt.getIntValue("-cert", DEFAULT_CERT); try { SignatureKeyPair keypair = Marshalizer.unmarshalHexAux_SignatureKeyPair(keypairString, randomSource, certainty); return Marshalizer.marshalToHexHuman(keypair.getPKey(), opt.getBooleanValue("-v")); } catch (EIOException eioe) { throw new GenException("Malformed key pair!", eioe); } }