Added some POW code, it probably doesn't work yet

(takes very long and uses lots of battery, but I didn't get a result yet)
This commit is contained in:
2015-04-11 16:16:41 +02:00
parent 9b383e3bcd
commit daa9a9911b
10 changed files with 371 additions and 35 deletions

View File

@ -63,14 +63,14 @@ public class Factory {
case 2:
return new V2Pubkey.Builder()
.streamNumber(streamNumber)
.behaviorBitfield(Decode.int64(stream))
.behaviorBitfield((int) Decode.int64(stream))
.publicSigningKey(Decode.bytes(stream, 64))
.publicEncryptionKey(Decode.bytes(stream, 64))
.build();
case 3:
V3Pubkey.Builder v3 = new V3Pubkey.Builder()
.streamNumber(streamNumber)
.behaviorBitfield(Decode.int64(stream))
.behaviorBitfield((int) Decode.int64(stream))
.publicSigningKey(Decode.bytes(stream, 64))
.publicEncryptionKey(Decode.bytes(stream, 64))
.nonceTrialsPerByte(Decode.varInt(stream))