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

PT constructor with node.js binding #224

Closed
ilge-ustun opened this issue Jun 15, 2024 · 1 comment
Closed

PT constructor with node.js binding #224

ilge-ustun opened this issue Jun 15, 2024 · 1 comment

Comments

@ilge-ustun
Copy link

ilge-ustun commented Jun 15, 2024

Hello!
I'm using node.js bindings, and while new P1 and new P2 work well, I encounter problems with PT constructor:

const _p1: P1 = new blst.P1();
const p1: P1 = _p1.hash_to(...); // expected result
const p2: P2 = new blst.P2(...); // also works

const p: PT = new blst.PT(p1, p2); // Error: Illegal arguments for construction of _exports_PT

I also need the PT.one() value, and can't get it too.

Any idea or code examples for node.js where PT was used?

@ilge-ustun
Copy link
Author

UPD: had to compile blst_wrap.cpp myself and it works

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

No branches or pull requests

1 participant