io.nem.sdk.openapi.jersey2.model.LockHashAlgorithmEnum Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-jersey2-client Show documentation
Show all versions of api-jersey2-client Show documentation
Generated Open API client for NEM
/*
* Catapult REST Endpoints
* OpenAPI Specification of catapult-rest 1.0.20.10
*
* The version of the OpenAPI document: 0.8.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package io.nem.sdk.openapi.jersey2.model;
import java.util.Objects;
import java.util.Arrays;
import io.swagger.annotations.ApiModel;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* Algorithm used to hash te proof: * 0 (Op_Sha3_256) - Proof is hashed using SHA3-256. * 1 (Op_Keccak_256) - Proof is hashed using Keccak (ETH compatibility). * 2 (Op_Hash_160) - Proof is hashed twice: first with SHA-256 and then with RIPEMD-160 (bitcoin's OP_HASH160). * 3 (Op_Hash_256) - Proof is hashed twice with SHA3-256 (bitcoin's OP_HASH256).
*/
public enum LockHashAlgorithmEnum {
NUMBER_0(0),
NUMBER_1(1),
NUMBER_2(2),
NUMBER_3(3);
private Integer value;
LockHashAlgorithmEnum(Integer value) {
this.value = value;
}
@JsonValue
public Integer getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static LockHashAlgorithmEnum fromValue(Integer value) {
for (LockHashAlgorithmEnum b : LockHashAlgorithmEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}