Ciphertext class
A batch-encryption ciphertext.
Corresponds to the Rust type
aptos_batch_encryption::shared::ciphertext::Ciphertext.
- Inheritance
-
- Object
- Serializable
- Ciphertext
Constructors
- Ciphertext(Uint8List vk, BIBECiphertext bibeCt, Uint8List associatedDataBytes, Uint8List signature)
Properties
- associatedDataBytes → Uint8List
-
final
- bibeCt → BIBECiphertext
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signature → Uint8List
-
ed25519 signature, fixed 64 bytes.
final
- vk → Uint8List
-
ed25519 verification key, 32 bytes (length-prefixed on the wire).
final
Methods
-
bcsToBytes(
) → Uint8List -
Serializes a Serializable value to its BCS representation.
This function is the Dart SDK equivalent of
bcs::to_bytesin Move.inherited -
bcsToHex(
) → Hex -
Converts the BCS-serialized bytes of a value into a Hex instance.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
Serializer serializer) → void -
override
-
toString(
) → String -
Returns the hex string representation of the value with the 0x prefix.
inherited
-
toStringWithoutPrefix(
) → String -
Returns the hex string representation of the value without the 0x prefix.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
deserialize(
Deserializer deserializer) → Ciphertext