Object Poseidon

  • All Implemented Interfaces:

    
    public class Poseidon
    
                        

    Starknet poseidon utilities.

    Class with utility methods related to starknet poseidon hash calculation.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static Poseidon INSTANCE
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Felt poseidonHash(Felt x) Compute poseidon hash on single Felt.
      final static Felt poseidonHash(Felt x, Felt y) Compute poseidon hash on two Felts.
      final static Felt poseidonHash(List<Felt> values) Compute poseidon hash on many Felts.
      final static Felt poseidonHash(Felt values) Compute poseidon hash on variable number of arguments.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • poseidonHash

         final static Felt poseidonHash(Felt x)

        Compute poseidon hash on single Felt.

        Parameters:
        x - single Felt
      • poseidonHash

         final static Felt poseidonHash(Felt x, Felt y)

        Compute poseidon hash on two Felts.

        Parameters:
        x - Felt
        y - Felt
      • poseidonHash

         final static Felt poseidonHash(List<Felt> values)

        Compute poseidon hash on many Felts.

        Parameters:
        values - List of Felts
      • poseidonHash

         final static Felt poseidonHash(Felt values)

        Compute poseidon hash on variable number of arguments.

        Parameters:
        values - any number of Felts