Class IdbSignature

java.lang.Object
de.tsenger.vdstools.idb.IdbSignature

public class IdbSignature extends Object
  • Field Details

  • Constructor Details

    • IdbSignature

      public IdbSignature(byte[] plainSignatureBytes)
  • Method Details

    • getDerSignatureBytes

      public byte[] getDerSignatureBytes()
      Returns signature in format ECDSASignature ::= SEQUENCE { r INTEGER, s INTEGER }
      Returns:
      ASN1 DER encoded signature as byte array
    • getPlainSignatureBytes

      public byte[] getPlainSignatureBytes()
      Returns signature in plain format: r||s
      Returns:
      r||s signature byte array
    • getEncoded

      public byte[] getEncoded() throws IOException
      Throws:
      IOException
    • fromByteArray

      public static IdbSignature fromByteArray(byte[] rawBytes) throws IOException
      Throws:
      IOException