MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / join

Method join

mlspp/src/session.cpp:174–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174Session
175Session::Inner::join(const HPKEPrivateKey& init_priv,
176 const HPKEPrivateKey& leaf_priv,
177 const SignaturePrivateKey& sig_priv,
178 const KeyPackage& key_package,
179 const bytes& welcome_data)
180{
181 auto welcome = tls::get<Welcome>(welcome_data);
182
183 auto state = State(
184 init_priv, leaf_priv, sig_priv, key_package, welcome, std::nullopt, {});
185 auto inner = std::make_unique<Inner>(state);
186 return { inner.release() };
187}
188
189bytes
190Session::Inner::fresh_secret() const

Callers 4

packageMethod · 0.80
shutdownMethod · 0.80
~thread_poolMethod · 0.80
cleanupMethod · 0.80

Calls 1

StateClass · 0.50

Tested by

no test coverage detected