这是indexloc提供的服务,不要输入任何密码
Skip to content

Feature: Hint relation between data visualizations #23

@dapplion

Description

@dapplion

Hint relation between data visualizations

Purpose

To teach users visually about Simple Serialize.

Proposal

If the user hovers over sections of the serialized bytes, each minimal block of data is highlighted and matched to the corresponding deserialized representation. Also, a popover can give info about the data type.

simple-serialize-data-location-hint

Issues

I believe ssz is run as a black box, so it may not be trivial to get the info required for this visualization. How could this mapping be extracted without coding a secondary deserialization algorithm?

It would be nice to get some sort of "AST" of the serialized bytes to render them as a sequence of inline elements. For example:

[
  {
    type: "offset",
    bytes: "94000000",
    path: "aggregationBits",
  },
  {
    type: "fixed",
    bytes: "0200000000000000",
    path: "data.slot",
  },
  {
    type: "fixed",
    bytes: "0400000000000000",
    path: "data.index",
  },
]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions