Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

adjust asserts in fc/crypto #54

Merged
merged 1 commit into from
Jun 7, 2018
Merged

adjust asserts in fc/crypto #54

merged 1 commit into from
Jun 7, 2018

Conversation

jmjatlanta
Copy link

@jmjatlanta jmjatlanta commented Jun 2, 2018

Issue bitshares/bitshares-core#992

Adjusted some asserts in the fc/crypto area. Some should have been static_assert or FC_ASSERT.

The impact of the change from assert to static_assert is minor (we can catch them at compile time, so why not?).

The 1 switch from assert to FC_ASSERT in elliptic_common.cpp is a bit more impactful. Please consider the side effects as you do your review.

Hat tip to the EOS folks. More information: EOSIO/eos#3560

@pmconrad
Copy link

pmconrad commented Jun 5, 2018

secexp = (seed + z) % order implies that secexp < order. order is well-known and constant, at least until we switch to another curve (which is extremely unlikely). The assertion cannot be triggered.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants