Skip to content

feat: share serialization/deserialization #5

Description

@lonerapier

Motivation

Allow persistent and interoperable storage of Share values with versioned formats behind a feature flag and optional serde integration

Approach

  • Implement a compact binary format: [magic][version][field_id][poly_id][x][y][checksum?]
  • Provide APIs:
    • Share::to_bytes() -> Vec<u8>
    • Share::from_bytes(&[u8]) -> Result<Self, ShareError>
    • Add optional serde feature

Tasks

  • Define and document share format.
  • Implement encode/decode functions.
  • Integrate serde (behind feature flag).
  • Add roundtrip tests and fuzzing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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