Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add blst_fp12 deserialization blst_fp12_from_bendian #167

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add from_bendian to PT class
  • Loading branch information
emlowe committed Jun 7, 2023
commit b85747d7980ea61083364dd011f5274d0bd91a4e
4 changes: 4 additions & 0 deletions bindings/blst.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,10 @@ class PT {
bool in_group() const { return blst_fp12_in_group(&value); }
void to_bendian(byte out[48*12]) const
{ blst_bendian_from_fp12(out, &value); }
void from_bendian(const byte in[48 * 12]) const
{
blst_fp12_from_bendian(&value, in);
}

static bool finalverify(const PT& gt1, const PT& gt2)
{ return blst_fp12_finalverify(gt1, gt2); }
Expand Down