Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bbjubjub2494 committed Nov 2, 2021
1 parent b3acfe5 commit 4a47d21
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/elements.cpp
Expand Up @@ -18,6 +18,8 @@

namespace bls {

const size_t G1Element::SIZE;

G1Element G1Element::FromBytes(const Bytes& bytes)
{
if (bytes.size() != SIZE) {
Expand Down Expand Up @@ -199,6 +201,8 @@ G1Element operator*(const bn_t& k, const G1Element& a) { return a * k; }



const size_t G2Element::SIZE;

G2Element G2Element::FromBytes(const Bytes& bytes)
{
if (bytes.size() != SIZE) {
Expand Down Expand Up @@ -382,6 +386,8 @@ G2Element operator*(const bn_t& k, const G2Element& a) { return a * k; }

// GTElement

const size_t GTElement::SIZE;

GTElement GTElement::FromBytes(const Bytes& bytes)
{
if (bytes.size() != SIZE) {
Expand Down

0 comments on commit 4a47d21

Please sign in to comment.