public class DSASignatureCodec extends Object implements SignatureCodec
| Modifier and Type | Field and Description |
|---|---|
static int |
SIGNATURE_SIZE |
| Constructor and Description |
|---|
DSASignatureCodec(byte[] encodedData)
Create a signature from an already encoded signature data
|
DSASignatureCodec(io.netty.buffer.ByteBuf buf)
Create a codec from a buffer, where the signature data is encoded
|
public static final int SIGNATURE_SIZE
public DSASignatureCodec(byte[] encodedData)
throws IOException
encodedData - the signature (encoded)IOExceptionpublic DSASignatureCodec(io.netty.buffer.ByteBuf buf)
buf - the buffer holding the signature at the next reader indexpublic byte[] encode()
encode in interface SignatureCodecpublic SignatureCodec write(io.netty.buffer.ByteBuf buf)
SignatureCodecwrite in interface SignatureCodecbuf - the buffer to write the signature intopublic Number160 number1()
public Number160 number2()
public int signatureSize()
signatureSize in interface SignatureCodecCopyright © 2015. All rights reserved.