MCPcopy Create free account
hub / github.com/docknetwork/crypto / batch_size

Method batch_size

utils/src/elgamal.rs:263–265  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

261 }
262
263 pub fn batch_size(&self) -> usize {
264 self.encrypted.len()
265 }
266
267 /// Return a OTP (One Time Pad) by hashing the shared secret along with the message index.
268 pub fn otp<D: FullDigest>(shared_secret: &G, msg_idx: u32) -> G::ScalarField {

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected