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

sealable-trie: remove dependency on CryptoHash being borsh-serialisable #60

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

mina86
Copy link
Collaborator

@mina86 mina86 commented Oct 26, 2023

We need to change sealable-trie to support multiple borsh crate
versions. Since it’s borsh-serialising CryptoHash, this by extension
means that lib needs to support all the same versions of borsh.

To avoid the latter, rather than serialising and deserialising
CryptoHash, deal with the underlying arrays of bytes. This makes
sealable-trie code slightly more verbose but removes the need for lib
to support multiple borsh versions.

(We’ll see whether the support will need to be eventually added. So
far this simplifies stuff a bit).

We need to change sealable-trie to support multiple borsh crate
versions.  Since it’s borsh-serialising CryptoHash, this by extension
means that lib needs to support all the same versions of borsh.

To avoid the latter, rather than serialising and deserialising
CryptoHash, deal with the underlying arrays of bytes.  This makes
sealable-trie code slightly more verbose but removes the need for
lib to support multiple borsh versions.

(We’ll see whether the support will need to be eventually added.
So far this simplifies stuff a bit).
@mina86 mina86 requested a review from dhruvja October 26, 2023 13:29
@mina86 mina86 enabled auto-merge (squash) October 26, 2023 13:30
@mina86 mina86 merged commit 16854d8 into master Oct 26, 2023
4 checks passed
@mina86 mina86 deleted the mpn/d branch October 26, 2023 13:44
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