Comments (16)
- Ciphertext Validity Checking - must be done before creating a decryption share
- #38
tpke/src/iphertext.rs
:
pub fn check_ciphertext_validity<E: PairingEngine>(
c: &Ciphertext<E>,
aad: &[u8],
) -> bool {
let g_inv = E::G1Prepared::from(-E::G1Affine::prime_subgroup_generator());
let hash_g2 = E::G2Prepared::from(construct_tag_hash::<E>(
c.commitment,
&c.ciphertext[..],
aad,
));
E::product_of_pairings(&[
(E::G1Prepared::from(c.commitment), hash_g2),
(g_inv, E::G2Prepared::from(c.auth_tag)),
]) == E::Fqk::one()
}
which is used by pub fn checked_decrypt
and fn decrypt_with_shared_secret
.
Also, in file tpke/src/api
we have:
pub fn to_decryption_share(&self) -> DecryptionShare {
// TODO: Add verification steps
Verification is missing from this function.
from ferveo.
Yes, these are from the original Ferveo source code, and I'd like to figure out what they do, how to use them, whether we need them etc.
from ferveo.
- Verifying Decryption Shares - must be done before combining decryption shares
from ferveo.
- We don't use weights, but the indexing is still important
from ferveo.
- Are we going to be aggregating decryption shares?
from ferveo.
- Are we going to be aggregating decryption shares?
No, my understanding is that this makes sense for Ferveo original implementation, where a node (with a single private blinding key ek_i
) may have many private shares, and the corresponding decryption shares can be aggregated.
from ferveo.
yeah, i couldn't think of any scenario where it would make sense for our use case
from ferveo.
I found some other checks that I would like to document and verify.
Moved to issue description
from ferveo.
oh nice, these are from the code and we need to verify the maths?
from ferveo.
We don't use weights, but the indexing is still important
Marking as complete since ferveo
validators have a share_index
attributed to them.
Are we going to be aggregating decryption shares?
Marking as solved.
I've aggregated the remaining checks into the issue description.
from ferveo.
Not sure how to compute 4.4.4 for a simple tDec variant. In this variant, Fqk
(product of pairing), but we need to be G1Prepared
for
from ferveo.
verify_blinding
doesn't work i.e. the original code seems to be implemented incorrectly. I can't find a reference to this operation in the docs or in the whitepaper.
@cygnusv, is this something we would like to explore further, or should we drop verify_blinding
?
from ferveo.
If blinding_key
, PublicKey::encryption_key
of DKG validator, then verify_blinding
in tpke
is effectively the same check that verify_full
in ferveo
does:
-
$e(G_1, \hat{Y}{i,\omega_j}) = e(A_{i,\omega_j}, ek_i)$ verify_full
-
$e(g, Y_i) = e(A_i, [b] H)$ ,verify_blinding
If verify_blinding
is supposed to check.
from ferveo.
Not sure how to compute 4.4.4 for a simple tDec variant. In this variant, Di is of type
Fqk
(product of pairing), but we need to beG1Prepared
for e(Di,Bi) to work.
The naive rewrite doesn't make sense here anyway, since in simple tDec decryption share is defined as
Marking this as a candidate for a research item in #42
from ferveo.
Found this earlier rewrite of verify_blinding
.
from ferveo.
Closing this as the work will be continued in separate issues mentioned in OP.
from ferveo.
Related Issues (20)
- Get rid of g_inv and h_inv in the API HOT 2
- Decide on instructions for running Ferveo tests
- Replace deprecated `actions-rs/*` GH Actions
- Add header and payload to Ciphertext bindings HOT 7
- Derive `Eq` for `DkgPublicKey`
- Track domain points (aka "x coordinates") mapping to validators HOT 3
- Transcript epoch versioning HOT 1
- Protocol objects and methods for handling share updates between participants
- Design high-level protocols for refresh & recovery
- Rename group_threshold_cryptography crate to ferveo-tpke
- Delete references to ed25519
- Relax DKG ceremony constraints
- Expose `decrypt_private_key_share` to allow caching private key shares HOT 2
- Verifiability of Update Transcripts
- Add encryption to Update Transcripts HOT 2
- Aggregate transcript from a subset of participants HOT 2
- Expose `Ciphertext` methods in the Rust API
- Design protocol & related structures for onboarding and offboarding validators HOT 1
- Precomputed variant should work with a threshold number of shares and not need all of them HOT 2
- Share recovery failure at a random point when using new_decryption_share HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ferveo.