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

Expose serialization size parameters directly. #2

Merged
merged 1 commit into from
Feb 10, 2024

Conversation

dkg
Copy link
Contributor

@dkg dkg commented Feb 8, 2024

These are fixed in the specification and cannot change. Better for dependent projects to get these numbers from this crate than to encode them by hand.

These are fixed in the specification and cannot change.
Better for dependent projects to get these numbers from
this crate than to encode them by hand.
@dkg
Copy link
Contributor Author

dkg commented Feb 8, 2024

I've been trying to write some simple code that uses this module, and found it was useful to be able to get at these sizes without having to instantiate objects and inspect them.

Adding these consts to the public API of the crate doesn't seem to risk any future API churn, as these values are static in the specification draft itself.

@integritychain integritychain merged commit baa06c3 into integritychain:main Feb 10, 2024
@integritychain
Copy link
Owner

You are absolutely right - thank you for this!

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.

2 participants