diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2016-08-21 14:48:23 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2016-08-21 14:48:23 +0800 |
commit | a90c968b55d975bc0e958631892d1a1799ae97d5 (patch) | |
tree | 8111d4ee935f4a53bcb952811cda632fd151686f /src/bls.cpp | |
parent | 3b17399925767333832756ca5ccc04c3197eed4b (diff) | |
download | dexon-bls-a90c968b55d975bc0e958631892d1a1799ae97d5.tar dexon-bls-a90c968b55d975bc0e958631892d1a1799ae97d5.tar.gz dexon-bls-a90c968b55d975bc0e958631892d1a1799ae97d5.tar.bz2 dexon-bls-a90c968b55d975bc0e958631892d1a1799ae97d5.tar.lz dexon-bls-a90c968b55d975bc0e958631892d1a1799ae97d5.tar.xz dexon-bls-a90c968b55d975bc0e958631892d1a1799ae97d5.tar.zst dexon-bls-a90c968b55d975bc0e958631892d1a1799ae97d5.zip |
replace prv with sec
Diffstat (limited to 'src/bls.cpp')
-rw-r--r-- | src/bls.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bls.cpp b/src/bls.cpp index d9b8a6a..57c6dee 100644 --- a/src/bls.cpp +++ b/src/bls.cpp @@ -357,14 +357,14 @@ bool SecretKey::operator==(const SecretKey& rhs) const return id_ == rhs.id_ && self_->s == rhs.self_->s; } -std::ostream& operator<<(std::ostream& os, const SecretKey& prv) +std::ostream& operator<<(std::ostream& os, const SecretKey& sec) { - return os << prv.id_ << ' ' << prv.self_->s; + return os << sec.id_ << ' ' << sec.self_->s; } -std::istream& operator>>(std::istream& is, SecretKey& prv) +std::istream& operator>>(std::istream& is, SecretKey& sec) { - return is >> prv.id_ >> prv.self_->s; + return is >> sec.id_ >> sec.self_->s; } void SecretKey::init() @@ -408,10 +408,10 @@ void SecretKey::set(const MasterSecretKey& msk, int id) id_ = id; } -void SecretKey::recover(const std::vector<SecretKey>& prvVec) +void SecretKey::recover(const std::vector<SecretKey>& secVec) { Fr s; - LagrangeInterpolation(s, prvVec); + LagrangeInterpolation(s, secVec); self_->s = s; id_ = 0; } |