Skip to content

Commit

Permalink
Add a constructor that takes bits (#128)
Browse files Browse the repository at this point in the history
* Add a constructor that takes bits

* Update integer.h
  • Loading branch information
bl4ck5un authored May 18, 2021
1 parent 95cb70d commit df363bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions emp-tool/circuits/integer.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ class Integer : public Swappable<Integer>, public Comparable<Integer> { public:
vector<Bit> bits;
Integer(){
}
Integer(const vector<Bit>& bits): bits(bits) {
}
Integer(int length, int64_t input, int party = PUBLIC);

template<typename T>
Expand Down

0 comments on commit df363bf

Please sign in to comment.