aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2016-08-15 15:52:31 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2016-08-15 15:52:31 +0800
commitd3d6bf8848950be1bafae4b90c8e83085b894d16 (patch)
tree3a99f4c04eed5c33400962aafabcded4f27043ab /include
parent08a5785b10a75a155af82db43793d2e4f0da0615 (diff)
downloaddexon-bls-d3d6bf8848950be1bafae4b90c8e83085b894d16.tar
dexon-bls-d3d6bf8848950be1bafae4b90c8e83085b894d16.tar.gz
dexon-bls-d3d6bf8848950be1bafae4b90c8e83085b894d16.tar.bz2
dexon-bls-d3d6bf8848950be1bafae4b90c8e83085b894d16.tar.lz
dexon-bls-d3d6bf8848950be1bafae4b90c8e83085b894d16.tar.xz
dexon-bls-d3d6bf8848950be1bafae4b90c8e83085b894d16.tar.zst
dexon-bls-d3d6bf8848950be1bafae4b90c8e83085b894d16.zip
add coment
Diffstat (limited to 'include')
-rw-r--r--include/bls.hpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/include/bls.hpp b/include/bls.hpp
index 7d40ee3..23bff1c 100644
--- a/include/bls.hpp
+++ b/include/bls.hpp
@@ -21,6 +21,15 @@ struct MasterPublicKey;
} // bls::impl
+/*
+ e : G2 x G1 -> Fp12
+ Q in G2 ; fixed global parameter
+ H : {str} -> G1
+ s : private key
+ sQ ; public key
+ s H(m) ; signature of m
+ verify ; e(sQ, H(m)) = e(Q, s H(m))
+*/
void init();
class Sign {
@@ -48,7 +57,11 @@ public:
};
/*
- Feldman's verifiable secret sharing
+ (Q, sQ, c_1 Q, ..., c_{k-1}Q)
+ s = c_0 ; private key
+ c_1, ..., c_{k-1} ; secret sharing
+ f(x) = c_0 + c_1 x + ... + c_{k-1} x^{k-1}
+ f(id) ; private key for user id(>0)
*/
class MasterPublicKey {
impl::MasterPublicKey *self_;
@@ -65,6 +78,9 @@ public:
friend std::istream& operator>>(std::istream& is, MasterPublicKey& mpk);
};
+/*
+ sQ ; public key
+*/
class PublicKey {
impl::PublicKey *self_;
int id_;