Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/brech1/keaki
/ functions
Functions
57 in github.com/brech1/keaki
⨍
Functions
57
◇
Types & classes
12
↓ 15 callers
Function
commit
Commits to a polynomial.
src/kzg.rs:89
↓ 15 callers
Function
open
Computes an opening (proof) for a polynomial at a point.
src/kzg.rs:104
↓ 9 callers
Function
verify
Verifies an opening proof for a polynomial commitment at a point.
src/kzg.rs:127
↓ 7 callers
Method
load
Loads the file.
src/kzg/ptau.rs:110
↓ 4 callers
Function
encapsulate
Encapsulation. Generates a key for a commitment and a point-value pair.
src/kem.rs:13
↓ 4 callers
Method
get
Returns the section information.
src/kzg/ptau.rs:148
↓ 4 callers
Function
setup_kzg
(rng: &mut impl Rng)
src/kem.rs:82
↓ 2 callers
Function
open_fk
Computes n openings using the FK23 algorithm. The amount of openings will depend on the length of the polynomial. The openings points are the roots of
src/kzg.rs:157
↓ 2 callers
Method
section_index
Returns the section index for the section ID.
src/kzg/ptau.rs:55
↓ 2 callers
Function
setup_kzg
(rng: &mut impl Rng)
src/enc.rs:65
↓ 1 callers
Method
g1_pow
Returns the powers of tau in G1.
src/kzg.rs:73
↓ 1 callers
Method
receive
( &self, encrypted_sets: Vec<Vec<Ciphertext<E>>>, )
tests/laconic_ot.rs:39
↓ 1 callers
Method
send
( &self, rng: &mut impl rand::Rng, private_set: &[Vec<Vec<u8>>], )
tests/laconic_ot.rs:75
↓ 1 callers
Method
tau_g2
Returns [tau]_2
src/kzg.rs:83
↓ 1 callers
Function
vec_commit
Vector commitment. Returns the commitment and the proofs for each index.
src/vec.rs:22
↓ 1 callers
Function
verify_metadata
Verifies file metadata.
src/kzg/ptau.rs:325
Function
decapsulate
Decapsulation. Generates a key for an opening and a ciphertext. The generated key will be the same as the one generated during encapsulation for a val
src/kem.rs:55
Function
decrypt
Decrypts a ciphertext with a proof. Returns the decrypted message.
src/enc.rs:44
Function
encrypt
Encrypts a message using a commitment, point, and value. Returns two ciphertexts: - `key_ct`: used to generate the decryption key. - `msg_ct`: the enc
src/enc.rs:19
Method
filepath
Returns the path to the file.
src/kzg/ptau.rs:105
Method
g1_aff
Returns the powers of tau in G1 - Affine representation.
src/kzg.rs:78
Function
get_powers_from_file
Returns the G1 and G2 powers of tau.
src/kzg/ptau.rs:347
Method
new
Creates a new instance.
src/kzg/ptau.rs:100
Method
new
( kzg_setup: KZGSetup<E>, rng: &mut impl rand::Rng, choices: Vec<E::ScalarField>,
tests/laconic_ot.rs:25
Method
new_from_data
Create a new instance
src/kzg/ptau.rs:168
Method
new_from_file
Setup from `ptau` file.
src/kzg.rs:33
Method
parse
Parse the sections from the file data.
src/kzg/ptau.rs:131
Method
setup
Setup from secret. Don't use this.
src/kzg.rs:55
Function
test_decapsulation_invalid_ciphertext
()
src/kem.rs:159
Function
test_decapsulation_invalid_proof
()
src/kem.rs:119
Function
test_decapsulation_wrong_point
()
src/kem.rs:193
Function
test_decrypt_invalid_proof
()
src/enc.rs:100
Function
test_encapsulation_decapsulation
()
src/kem.rs:88
Function
test_encrypt
()
src/enc.rs:71
Function
test_file_loader
()
src/kzg/ptau.rs:401
Function
test_file_sections
()
src/kzg/ptau.rs:427
Function
test_header_section
()
src/kzg/ptau.rs:461
Function
test_kzg_commit
()
src/kzg.rs:242
Function
test_kzg_commit_polynomial_too_large
()
src/kzg.rs:261
Function
test_kzg_open_and_verify
()
src/kzg.rs:311
Function
test_kzg_open_fk
()
src/kzg.rs:471
Function
test_kzg_open_polynomial_too_large
()
src/kzg.rs:280
Function
test_kzg_setup
()
src/kzg.rs:219
Function
test_kzg_verify_wrong_alpha
()
src/kzg.rs:334
Function
test_kzg_verify_wrong_beta
()
src/kzg.rs:366
Function
test_kzg_verify_wrong_commitment
()
src/kzg.rs:438
Function
test_kzg_verify_wrong_proof
()
src/kzg.rs:398
Function
test_laconic_ot
()
tests/laconic_ot.rs:127
Function
test_powers_of_tau
()
src/kzg/ptau.rs:509
Function
test_section_id
()
src/kzg/ptau.rs:393
Function
test_section_info
()
src/kzg/ptau.rs:417
Function
test_tau_g1_section
()
src/kzg/ptau.rs:477
Function
test_tau_g2_section
()
src/kzg/ptau.rs:493
Function
test_verify_metadata
()
src/kzg/ptau.rs:409
Method
try_from
(value: u8)
src/kzg/ptau.rs:75
Function
vec_decrypt
Vector Decryption.
src/vec.rs:72
Function
vec_encrypt
Vector Encryption.
src/vec.rs:52