Skip to content

Allow setting local static key lazily in HandshakeState#62

Open
mmilata wants to merge 1 commit intoblckngm:masterfrom
trezor:lazy-s
Open

Allow setting local static key lazily in HandshakeState#62
mmilata wants to merge 1 commit intoblckngm:masterfrom
trezor:lazy-s

Conversation

@mmilata
Copy link

@mmilata mmilata commented Feb 10, 2026

Hello, nice library you've got there! I work for a company that would like to use it in its product with some changes, most of which don't belong upstream IMHO, except maybe this one?

It allows you to set the static key after HandshakeState is constructed - the idea is to set the key based on previous messages, e.g. based on remote's static key. Not sure whether to also add assert!(self.s.is_none()) to enforce setting it exactly once.

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