this.digest = MessageDigest.getInstance(digest);
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
}
this.n = this.digest.getDigestLength();
<BUG>calculateLengths();
}</BUG>
public void generateKeyPair() {
generatePrivateKey();
generatePublicKey();

this.digest = MessageDigest.getInstance(digest);
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
}
this.n = this.digest.getDigestLength();
calculateLengths();
}
public void setAddress(OTSHashAddress otsAdrs){
this.otsAdrs = otsAdrs;
}
public void generateKeyPair() {
generatePrivateKey();
generatePublicKey();
