Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[serialization] Repair BCS serialization generator & tests #571

Merged
merged 2 commits into from
Feb 25, 2022
Merged

[serialization] Repair BCS serialization generator & tests #571

merged 2 commits into from
Feb 25, 2022

Conversation

huitseeker
Copy link
Contributor

@huitseeker huitseeker commented Feb 25, 2022

This re-plugs the serde_reflection generator for our serialized message format, and the unit test checking we do not drift from its output unintentionally.

Fixes #515

This equips the tracer for our BCS YAML auto-generated serialized format documentation and re-generates the corresponding YAML file
This tests we do not derive from the generator output.
Fixes #515
tracer.trace_value(&mut samples, &pk)?;

// We have two signature types: one for Authority Signatures, which don't include the PubKey ...
let sig: AuthoritySignature = kp.sign(b"hello world");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these like example code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, they are not. Think of them as fuzz samples, they're example values used by a reflection system to describe the involved types.

Here's the doc: https://github.com/novifinancial/serde-reflection

@huitseeker huitseeker merged commit eac8255 into MystenLabs:main Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[serde] re-generate serialization formats
2 participants