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

Method create

mlspp/src/treekem.cpp:73–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73TreeKEMPrivateKey
74TreeKEMPrivateKey::create(const TreeKEMPublicKey& pub,
75 LeafIndex from,
76 const bytes& leaf_secret)
77{
78 auto priv = TreeKEMPrivateKey{ pub.suite, from, {}, {}, {} };
79 priv.implant(pub, NodeIndex(from), leaf_secret);
80 return priv;
81}
82
83TreeKEMPrivateKey
84TreeKEMPrivateKey::joiner(const TreeKEMPublicKey& pub,

Callers

nothing calls this directly

Calls 2

NodeIndexClass · 0.85
implantMethod · 0.80

Tested by

no test coverage detected