Class NoCrypto

java.lang.Object
at.qubic.api.crypto.NoCrypto
All Implemented Interfaces:
FourQ, SchnorrQubic

public class NoCrypto extends Object implements SchnorrQubic, FourQ
Use it if no shared qubic crypto library is installed but the functionality is not used by your code. Other implementations (QubicFourQ) will try to load the shared library and fail.
  • Constructor Details

    • NoCrypto

      public NoCrypto()
  • Method Details

    • ecc_mul_fixed

      public byte[] ecc_mul_fixed(byte[] in)
      Specified by:
      ecc_mul_fixed in interface FourQ
    • ecc_mul_fixed

      public void ecc_mul_fixed(byte[] in, byte[] out)
      Specified by:
      ecc_mul_fixed in interface FourQ
    • sign

      public byte[] sign(byte[] subSeed, byte[] publicKey, byte[] digest)
      Specified by:
      sign in interface SchnorrQubic
    • signWithNonceK

      public byte[] signWithNonceK(byte[] nonceK, byte[] publicKey, byte[] digest)
      Specified by:
      signWithNonceK in interface SchnorrQubic
    • verify

      public boolean verify(byte[] publicKey, byte[] messageDigest, byte[] signature)
      Specified by:
      verify in interface SchnorrQubic