BlobEncoder class abstract

Encodes raw blob data into Walrus slivers and computes metadata.

The Walrus protocol requires blobs to be erasure-coded before registration on-chain. The encoding produces:

  • A Merkle root hash over the encoded slivers
  • A blob ID derived from the root hash, encoding type, and size
  • Encoded slivers for distribution to storage nodes

Phase 2 usage

Since the concrete encoder is Phase 3, Phase 2 users have two options:

  1. Upload Relay path: Provide raw blob data to the relay, which handles encoding server-side. Pre-computed metadata must still be supplied for on-chain registration.

  2. Custom encoder: Implement this interface with your own encoding logic and pass it to WalrusDirectClient.

Current

WalrusBlobEncoder provides canonical RS2 encoding via Rust FFI, enabling fully client-side encoding without the upload relay.

Implementers

Constructors

BlobEncoder()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

computeMetadata(Uint8List data, int numShards) Future<BlobMetadata>
Compute metadata for the given blob data without full encoding.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited