Skip to content

Commit

Permalink
Fix #286
Browse files Browse the repository at this point in the history
  • Loading branch information
bbjubjub2494 authored and mariano54 committed Nov 10, 2021
1 parent fe7112f commit 9ef1ac8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bls.cpp
Expand Up @@ -20,6 +20,8 @@

namespace bls {

const size_t BLS::MESSAGE_HASH_LEN;

bool BLSInitResult = BLS::Init();

Util::SecureAllocCallback Util::secureAllocCallback;
Expand Down
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
2 changes: 2 additions & 0 deletions src/privatekey.cpp
Expand Up @@ -16,6 +16,8 @@

namespace bls {

const size_t PrivateKey::PRIVATE_KEY_SIZE;

// Construct a private key from a bytearray.
PrivateKey PrivateKey::FromBytes(const Bytes& bytes, bool modOrder)
{
Expand Down

0 comments on commit 9ef1ac8

Please sign in to comment.