MCPcopy Create free account
hub / github.com/dfinity/examples / decrypt_ciphertexts

Function decrypt_ciphertexts

rust/vetkeys/basic_timelock_ibe/backend/src/lib.rs:258–297  ·  view source on GitHub ↗

In the canister, using the IBE key derived from the identity decrypt a vector of ciphertexts, which makes them public. Returns a vector, where each value is either a decrypted plaintext or an error message.

(
    identity: Vec<u8>,
    encrypted_values: Vec<&[u8]>,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

decrypt_bidsFunction · 0.85

Calls 4

deserializeFunction · 0.85
key_idFunction · 0.70
get_ibe_public_keyFunction · 0.70
as_refMethod · 0.45

Tested by

no test coverage detected