Finally fixed address creation and private key import

This commit is contained in:
2015-05-16 16:33:26 +02:00
parent cb1392e0f4
commit 07f185be35
7 changed files with 46 additions and 34 deletions

View File

@ -96,8 +96,8 @@ public class Factory {
}
}
public static BitmessageAddress generatePrivateAddress(long stream, Pubkey.Feature... features) {
return new BitmessageAddress(new PrivateKey(stream, 1000, 1000, features));
public static BitmessageAddress generatePrivateAddress(boolean shorter, long stream, Pubkey.Feature... features) {
return new BitmessageAddress(new PrivateKey(shorter, stream, 1000, 1000, features));
}
static ObjectPayload getObjectPayload(long objectType, long version, long streamNumber, InputStream stream, int length) throws IOException {