Package com.casper.sdk.model.key
Class EntryPointKey
- java.lang.Object
-
- com.casper.sdk.model.key.AbstractSerializedKeyTaggedHex<KeyTag>
-
- com.casper.sdk.model.key.Key
-
- com.casper.sdk.model.key.EntryPointKey
-
- All Implemented Interfaces:
CasperSerializableObject,SerializableObject
public class EntryPointKey extends Key
A `Key` under which a entrypoint record is written.
-
-
Constructor Summary
Constructors Constructor Description EntryPointKey()EntryPointKey(EntryPointAddr entryPointAddr, EntityAddr entityAddr, byte[] hashAddr, byte[] namedBytes, long selector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddeserializeCustom(DeserializerBuffer deser)protected voidfromStringCustom(java.lang.String strKey)EntityAddrgetEntityAddr()The entry point address.EntryPointAddrgetEntryPointAddr()The addr of the entity.byte[]getHashAddr()The 32 byte hash of the name of the entry point.byte[]getNamedBytes()The 32 byte hash of the name of the V1 entry pointlonggetSelector()The selector for a V2 entry point.voidsetEntityAddr(EntityAddr entityAddr)The entry point address.voidsetEntryPointAddr(EntryPointAddr entryPointAddr)The addr of the entity.voidsetHashAddr(byte[] hashAddr)The 32 byte hash of the name of the entry point.voidsetNamedBytes(byte[] namedBytes)The 32 byte hash of the name of the V1 entry pointvoidsetSelector(long selector)The selector for a V2 entry point.java.lang.StringtoString()-
Methods inherited from class com.casper.sdk.model.key.Key
canEqual, create, deserialize, equals, fromTaggedHexString, generateAccountHash, hashCode
-
Methods inherited from class com.casper.sdk.model.key.AbstractSerializedKeyTaggedHex
getAlgoTaggedHex, getKey, getTag, serialize, setKey, setTag
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.casper.sdk.model.clvalue.serde.CasperSerializableObject
serialize
-
-
-
-
Constructor Detail
-
EntryPointKey
public EntryPointKey(EntryPointAddr entryPointAddr, EntityAddr entityAddr, byte[] hashAddr, byte[] namedBytes, long selector)
-
EntryPointKey
public EntryPointKey()
-
-
Method Detail
-
fromStringCustom
protected void fromStringCustom(java.lang.String strKey)
- Overrides:
fromStringCustomin classKey
-
deserializeCustom
protected void deserializeCustom(DeserializerBuffer deser) throws java.lang.Exception
- Overrides:
deserializeCustomin classKey- Throws:
java.lang.Exception
-
getEntryPointAddr
public EntryPointAddr getEntryPointAddr()
The addr of the entity.
-
getEntityAddr
public EntityAddr getEntityAddr()
The entry point address.
-
getHashAddr
public byte[] getHashAddr()
The 32 byte hash of the name of the entry point.
-
getNamedBytes
public byte[] getNamedBytes()
The 32 byte hash of the name of the V1 entry point
-
getSelector
public long getSelector()
The selector for a V2 entry point.
-
setEntryPointAddr
public void setEntryPointAddr(EntryPointAddr entryPointAddr)
The addr of the entity.
-
setEntityAddr
public void setEntityAddr(EntityAddr entityAddr)
The entry point address.
-
setHashAddr
public void setHashAddr(byte[] hashAddr)
The 32 byte hash of the name of the entry point.
-
setNamedBytes
public void setNamedBytes(byte[] namedBytes)
The 32 byte hash of the name of the V1 entry point
-
setSelector
public void setSelector(long selector)
The selector for a V2 entry point.
-
-