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

Method SecretTree

mlspp/src/key_schedule.cpp:85–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83///
84
85SecretTree::SecretTree(CipherSuite suite_in,
86 LeafCount group_size_in,
87 bytes encryption_secret_in)
88 : suite(suite_in)
89 , group_size(LeafCount::full(group_size_in))
90 , root(NodeIndex::root(group_size))
91 , secret_size(suite_in.secret_size())
92{
93 secrets.emplace(root, std::move(encryption_secret_in));
94}
95
96bytes
97SecretTree::get(LeafIndex sender)

Callers

nothing calls this directly

Calls 2

secret_sizeMethod · 0.80
emplaceMethod · 0.80

Tested by

no test coverage detected