MerkleTree<T>.fromJson constructor

MerkleTree<T>.fromJson(
  1. Map<String, dynamic> json,
  2. String hashFunction(
    1. T
    )
)

Creates tree from JSON representation

Implementation

factory MerkleTree.fromJson(
  Map<String, dynamic> json,
  String Function(T) hashFunction,
) {
  // Note: This is a simplified reconstruction
  // Full reconstruction would require the complete tree structure
  return MerkleTree<T>(hashFunction: hashFunction);
}