Fixed write(ByteBuffer)
This commit is contained in:
parent
869d2e0386
commit
811625c051
@ -22,6 +22,7 @@ import ch.dissem.bitmessage.utils.Encode;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
import java.nio.ByteBuffer;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@ -61,8 +62,15 @@ public class V3Pubkey extends V2Pubkey {
|
|||||||
@Override
|
@Override
|
||||||
public void write(OutputStream out) throws IOException {
|
public void write(OutputStream out) throws IOException {
|
||||||
writeBytesToSign(out);
|
writeBytesToSign(out);
|
||||||
Encode.varInt(signature.length, out);
|
Encode.varBytes(signature, out);
|
||||||
out.write(signature);
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void write(ByteBuffer buffer) {
|
||||||
|
super.write(buffer);
|
||||||
|
Encode.varInt(nonceTrialsPerByte, buffer);
|
||||||
|
Encode.varInt(extraBytes, buffer);
|
||||||
|
Encode.varBytes(signature, buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user