Skip to content

Commit

Permalink
Fix PublicKeyRecover and SignatureShare args names.
Browse files Browse the repository at this point in the history
  • Loading branch information
furszy committed Jul 22, 2021
1 parent 4b9e9c0 commit 905fc4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/threshold.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ namespace bls {
return Poly::Evaluate(pks, id);
}

G1Element Threshold::PublicKeyRecover(const std::vector<G1Element>& sks, const std::vector<Bytes>& ids) {
return Poly::LagrangeInterpolate(sks, ids);
G1Element Threshold::PublicKeyRecover(const std::vector<G1Element>& pks, const std::vector<Bytes>& ids) {
return Poly::LagrangeInterpolate(pks, ids);
}

G2Element Threshold::SignatureShare(const std::vector<G2Element>& sigs, const Bytes& id) {
Expand Down
4 changes: 2 additions & 2 deletions src/threshold.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ namespace bls {
PrivateKey PrivateKeyRecover(const std::vector<PrivateKey>& sks, const std::vector<Bytes>& ids);

G1Element PublicKeyShare(const std::vector<G1Element>& pks, const Bytes& id);
G1Element PublicKeyRecover(const std::vector<G1Element>& sks, const std::vector<Bytes>& ids);
G1Element PublicKeyRecover(const std::vector<G1Element>& pks, const std::vector<Bytes>& ids);

G2Element SignatureShare(const std::vector<G2Element>& sks, const Bytes& id);
G2Element SignatureShare(const std::vector<G2Element>& sigs, const Bytes& id);
G2Element SignatureRecover(const std::vector<G2Element>& sigs, const std::vector<Bytes>& ids);

G2Element Sign(const PrivateKey& privateKey, const Bytes& vecMessage);
Expand Down

0 comments on commit 905fc4b

Please sign in to comment.