Module software.sava.core
Record Class ConfidentialMintBurn
java.lang.Object
java.lang.Record
software.sava.core.accounts.token.extensions.ConfidentialMintBurn
- All Implemented Interfaces:
MintTokenExtension,TokenExtension,Serializable
public record ConfidentialMintBurn(byte[] confidentialSupply, byte[] decryptableSupply, PublicKey supplyElGamalPubKey, byte[] pendingBurn)
extends Record
implements MintTokenExtension
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfidentialMintBurn(byte[] confidentialSupply, byte[] decryptableSupply, PublicKey supplyElGamalPubKey, byte[] pendingBurn) Creates an instance of aConfidentialMintBurnrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the value of theconfidentialSupplyrecord component.byte[]Returns the value of thedecryptableSupplyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intl()byte[]Returns the value of thependingBurnrecord component.static ConfidentialMintBurnread(byte[] data, int offset) Returns the value of thesupplyElGamalPubKeyrecord component.final StringtoString()Returns a string representation of this record class.intwrite(byte[] data, int offset) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.sava.core.accounts.token.extensions.MintTokenExtension
ordinalMethods inherited from interface software.sava.core.serial.Serializable
reusable, write, write
-
Field Details
-
BYTES
public static final int BYTES- See Also:
-
-
Constructor Details
-
ConfidentialMintBurn
public ConfidentialMintBurn(byte[] confidentialSupply, byte[] decryptableSupply, PublicKey supplyElGamalPubKey, byte[] pendingBurn) Creates an instance of aConfidentialMintBurnrecord class.- Parameters:
confidentialSupply- the value for theconfidentialSupplyrecord componentdecryptableSupply- the value for thedecryptableSupplyrecord componentsupplyElGamalPubKey- the value for thesupplyElGamalPubKeyrecord componentpendingBurn- the value for thependingBurnrecord component
-
-
Method Details
-
read
-
extensionType
- Specified by:
extensionTypein interfaceTokenExtension
-
write
public int write(byte[] data, int offset) - Specified by:
writein interfaceSerializable
-
l
public int l()- Specified by:
lin interfaceSerializable
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
confidentialSupply
public byte[] confidentialSupply()Returns the value of theconfidentialSupplyrecord component.- Returns:
- the value of the
confidentialSupplyrecord component
-
decryptableSupply
public byte[] decryptableSupply()Returns the value of thedecryptableSupplyrecord component.- Returns:
- the value of the
decryptableSupplyrecord component
-
supplyElGamalPubKey
Returns the value of thesupplyElGamalPubKeyrecord component.- Returns:
- the value of the
supplyElGamalPubKeyrecord component
-
pendingBurn
public byte[] pendingBurn()Returns the value of thependingBurnrecord component.- Returns:
- the value of the
pendingBurnrecord component
-