Package com.swmansion.starknet.crypto
Object Poseidon
-
- All Implemented Interfaces:
public class PoseidonStarknet poseidon utilities.
Class with utility methods related to starknet poseidon hash calculation.
-
-
Method Summary
Modifier and Type Method Description final static FeltposeidonHash(Felt x)Compute poseidon hash on single Felt. final static FeltposeidonHash(Felt x, Felt y)Compute poseidon hash on two Felts. final static FeltposeidonHash(List<Felt> values)Compute poseidon hash on many Felts. final static FeltposeidonHash(Felt values)Compute poseidon hash on variable number of arguments. -
-
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- Felty- 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
-
-
-
-