Class Keccak

  • All Implemented Interfaces:

    
    public final class Keccak
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Felt starknetKeccak(ByteArray input) Compute a keccak hash.
      final static BigInteger keccak(ByteArray input) Compute a keccak hash.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • starknetKeccak

         final static Felt starknetKeccak(ByteArray input)

        Compute a keccak hash.

        Computes a keccak of provided input and applies 250bit mask to fit it in a felt.

        Parameters:
        input - a ByteArray from which keccak will be generated
      • keccak

         final static BigInteger keccak(ByteArray input)

        Compute a keccak hash.

        Computes a keccak of provided input.

        Parameters:
        input - a ByteArray from which keccak will be generated