Package com.swmansion.starknet.crypto
Class Keccak
-
- All Implemented Interfaces:
public final class Keccak
-
-
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. -
-
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
-
-
-
-