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

Add test_account_hash #5

Open
wants to merge 1 commit into
base: mantis/dev
Choose a base branch
from
Open

Add test_account_hash #5

wants to merge 1 commit into from

Conversation

mina86
Copy link

@mina86 mina86 commented Aug 9, 2024

The account hashing function is not exposed in public interface of any of the Solana crates so when we need to use it in the light client we need to copy the code. Copying may introduce bugs so it’s crucial to test other implementations.

Add a test_account_hash which calculates account hash with fixed values. The main purpose of this test is that other implementations of account hashing can copy it over to verify their code.

The account hashing function is not exposed in public interface of any
of the Solana crates so when we need to use it in the light client we
need to copy the code.  Copying may introduce bugs so it’s crucial to
test other implementations.

Add a test_account_hash which calculates account hash with fixed
values.  The main purpose of this test is that other implementations
of account hashing can copy it over to verify their code.
@mina86 mina86 requested a review from vmarkushin August 9, 2024 03:11
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.

1 participant