Package com.swmansion.starknet.crypto
Object Poseidon
-
- All Implemented Interfaces:
public class Poseidon
Starknet poseidon utilities.
Class with utility methods related to starknet poseidon hash calculation.
-
-
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. -
-
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
-
-
-
-