Blockchain Research: Scaling Sketch
Shard assignment toy algorithm.
def shard_id(address: bytes, n_shards: int) -> int:
return int.from_bytes(keccak(address), 'big') % n_shards
Cross-shard receipt idea:
tx -> shard A executes -> emits receipt -> relayed to shard B -> finalize