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.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.Arrays;
|
||||
import java.util.Objects;
|
||||
|
||||
@ -61,8 +62,15 @@ public class V3Pubkey extends V2Pubkey {
|
||||
@Override
|
||||
public void write(OutputStream out) throws IOException {
|
||||
writeBytesToSign(out);
|
||||
Encode.varInt(signature.length, out);
|
||||
out.write(signature);
|
||||
Encode.varBytes(signature, out);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(ByteBuffer buffer) {
|
||||
super.write(buffer);
|
||||
Encode.varInt(nonceTrialsPerByte, buffer);
|
||||
Encode.varInt(extraBytes, buffer);
|
||||
Encode.varBytes(signature, buffer);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user