Skip to content

Make extension snapshotter interface safer to use #11824

Closed
@yihuang

Description

Summary

CosmWasm/wasmd#816 (comment)
When implementing wasm extension snapshotter, we found that "a plugin can break another one without knowing" with current interface.

Problem Definition

The Restore api expects the extension to return the last parsed item if it's not an extension payload message, because that could be the extension boundary, extension implementer may not be aware of such contract, better to enforce it with the API design.

Proposal

Create SnapshotExtension and RestoreExtension methods for ExtensionSnapshotter, which will handle payload stream specifically.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

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