Package io.aether.api.common
Class WorkProofBCrypt
- java.lang.Object
-
- io.aether.api.common.WorkProofConfig
-
- io.aether.api.common.WorkProofBCrypt
-
- All Implemented Interfaces:
io.aether.utils.ToString
public class WorkProofBCrypt extends WorkProofConfig implements io.aether.utils.ToString
-
-
Field Summary
Fields Modifier and Type Field Description protected bytecostBCryptprotected intmaxHashValstatic io.aether.net.fastMeta.FastMetaType<WorkProofBCrypt>METAstatic io.aether.net.fastMeta.FastMetaType<WorkProofBCrypt>META_BODYprotected bytepoolSize
-
Constructor Summary
Constructors Constructor Description WorkProofBCrypt(byte costBCrypt, byte poolSize, int maxHashVal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)intgetAetherTypeId()bytegetCostBCrypt()intgetMaxHashVal()bytegetPoolSize()inthashCode()voidtoString(io.aether.utils.AString sb)
-
-
-
Field Detail
-
META_BODY
public static final io.aether.net.fastMeta.FastMetaType<WorkProofBCrypt> META_BODY
-
META
public static final io.aether.net.fastMeta.FastMetaType<WorkProofBCrypt> META
-
costBCrypt
protected final byte costBCrypt
-
poolSize
protected final byte poolSize
-
maxHashVal
protected final int maxHashVal
-
-
Method Detail
-
getAetherTypeId
public int getAetherTypeId()
- Specified by:
getAetherTypeIdin classWorkProofConfig
-
getCostBCrypt
public byte getCostBCrypt()
- Specified by:
getCostBCryptin classWorkProofConfig
-
getPoolSize
public byte getPoolSize()
- Specified by:
getPoolSizein classWorkProofConfig
-
getMaxHashVal
public int getMaxHashVal()
- Specified by:
getMaxHashValin classWorkProofConfig
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classWorkProofConfig
-
hashCode
public int hashCode()
- Overrides:
hashCodein classWorkProofConfig
-
toString
public void toString(io.aether.utils.AString sb)
- Specified by:
toStringin interfaceio.aether.utils.ToString- Overrides:
toStringin classWorkProofConfig
-
-