HashAlg
Represents different hash algorithms.
- Full name: \Bloock\Entity\Authenticity\HashAlg
Constants
| Constant | Visibility | Type | Value | 
|---|---|---|---|
| SHA_256 | public | "SHA_256" | |
| KECCAK_256 | public | "KECCAK_256" | |
| POSEIDON | public | "POSEIDON" | |
| NONE | public | "NONE" | |
| UNRECOGNIZED | public | "UNRECOGNIZED" | 
Methods
fromProto
public static fromProto(int $alg): string
- This method is static.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $alg | int | 
toProto
public static toProto(string $type): int
- This method is static.
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $type | string | 
Automatically generated on 2024-04-17