IBlock class abstract
Interface for content-addressed data blocks.
A block is the fundamental unit of data in IPFS, identified by its CID.
Constructors
- IBlock()
Properties
- cid → CID
-
The content identifier for this block.
no setter
- data → Uint8List
-
The raw binary data of this block.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
The size of this block in bytes.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBytes(
) → Uint8List - Serializes the block to bytes.
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
) → Future< bool> - Validates the block's content hash matches its CID.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited