Skip to content

Add serde feature to our stack #2773

@Neotamandua

Description

@Neotamandua

Summary

Introduce a serde feature to execution-core that allows serde Serialize & Deserialize to be used on structs that are also used on the integration side (for example, all event structs from the genesis contracts).

Edit:
We want to implement the serde feature on every type where rkyv is also implemented for.

The decision has been made to use the following encodings:

  • Use base58 as the encoding for any type related to keys. (This includes PublicKey, Address, Signature, SecretKey, etc.)
  • use hex/base16 for other types unrelated to keys that have meaning in our stack
  • use base64 for any opaque type that cannot be represented in any useful way (e.g. unknown payloads, proofs)

Additional context

Relevant issues:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions