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

Why compare address? #496

Open
sctarget opened this issue May 25, 2023 · 1 comment
Open

Why compare address? #496

sctarget opened this issue May 25, 2023 · 1 comment

Comments

@sctarget
Copy link

When I read context from a serialized string and use the context, my program crashed.
The reason is "Context mismatch" or "inconsistent contexts".
So I wonder why compare the address of context?

@crockeea
Copy link

I think this is caused by

// VJS-NOTE: why are we comapring contexts, rather

There's a comment that asks "Why are we comparing contexts rather than addresses", and the answer is "because of serialization, the context in the ciphertext may be different from the context in the secret key".

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

No branches or pull requests

2 participants