-
Notifications
You must be signed in to change notification settings - Fork 152
sr25519: switch from wasm to micro-sr25519 #1971
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
base: master
Are you sure you want to change the base?
Conversation
For the CI errors, it just needs a
I agree, (preaching to the choir per say). That being said the polkadot-js libs are huge, and so coupled that its hard to make headway with such little bandwidth to spare (Getting way more help soon which should really help move some things forward). That being said the dev infrastructure is all custom implementations or wrappers with no documentation which makes it even more annoying (I've been making some progress on changing that). All in all yes, I agree with your sentiment, when maintenance transferred over to me about a year ago I was left with a bunch of burning fires, a lot have been put out, but there is still much work to be done. Luckily bandwidth will be freeing up soon for me to focus on more QOL goals. As for the content of the PR, I need to look into this a bit more in depth this week - I love the noble libs as it is, and know a bit of your work (Thank you for all the useful libs you publish) - but I still need to do my due diligence as this would be a big change. |
@TarikGul micro-sr25519 was funded by polkadot treasury BTW. There was a proposal. |
Any updates? |
I did look into the error, but couldn't find the source of the issue (yet!). Will continue some efforts tomorrow. I read the treasury proposal - I'm under the assumption that there are ongoing audits and/or suppose to be audits in the future? |
Creator of proposal mentioned they could engage auditors; and I told them that the library should be tested somewhere before audit, because if, while testing, some changes would become necessary, that would invalidate the audit. Since we have kinda tested the library with this pull request, albeit in a limited way, i’m ok with deferring the merge until post-audit. |
This would be ideal. In the meantime I'll make sure I have a good understanding of this error/issue with the linter so the process for getting this in is smoother once the audit is complete. - Thanks |
@TarikGul @ShankarWarang @farwayer any news? |
Haven't heard anything yet from my end. |
We are currently blocked from integrating Polkadot into the Coin Wallet until polkadot-js migrates to the lightweight |
An audit just needs to be completed, and once I hear anything about it - we can start to integrate the following. |
We have evaluated the audit offerings with 3 firms. We will finalise one and curate an OpenGov proposal for the same. |
@ShankarWarang any updates on this? |
The audit engagement by Oak Security (selected firm out of the 3) have been started yesterday and we are expecting the first report on 23rd May. Timeline updates:
Upcoming:
|
We can add this back to the queue :) |
@TarikGul @valentinfernandez1 @ShankarWarang Any news? We won't be adding support for Polkadot until the library switches to a lightweight alternative to wasm. |
As the first audit is done, it's up to the maintainers to decide whether they want to use the @scure/sr25519 package now or wait for the additional security audit by the senior auditor/researcher which is scheduled for July 28th to August 1st. |
Hi @ShankarWarang has the August Audit been completed?? I will start the review as soon as we get confirmation on this. Also @paulmillr please run |
@valentinfernandez1 feel free to take over the PR. |
Yes, the review phase of the Additional Security Audit (3rd Stream) is now officially concluded and the final audit report is published just 2 hours back: @paulmillr, will we have a new release for the package or the current latest one is good to go? Thanks 🙌 |
I wanted to make all my packages ESM-only+node20+, since node.js v20.19+ finally supports loading ESM modules from Common.js. And most people seem to be using babel / other transpilers anyway. So, the question here is, what should be done here?
Node.js v18 and earlier are no longer supported and don't ship security updates. My suggestion is to also bump the min required ver of polkadot-js to v20. That would allow us to be synced. |
In fact, the only high-level thing changed from (already-released) sr25519 v0.2.0 is the RNG commit, which is really low-severity. I suggest using 0.2.0, if node v18 support is a must-have; then switching to ESM-only 0.3.0 if node v20 minimum is ok. |
@valentinfernandez1, @TarikGul, Please let us know if you need any assistance or further clarifications. Looking forward to the adoption of scure-sr25519. |
sr cryptography in 467 lines of js code: https://github.com/paulmillr/micro-sr25519
As a side note, this repo's dev infrastructure is slightly idiotic and urgently needs to be improved if the goal is to gain any new outside contributors. It took me 1 hour what should have taken 4 minutes. The test runner takes 3 minutes (too slow, not parallel) - would be great to have an option to crash on a first failed test. README and CONTRIBUTING.md have some bogus rules while not mentioning what's
polkadot-dev-run-test
and how it works. Linting is non-descriptive: for example, I don't understand what the rule above means (even though i've coded a few js libraries).This is not really something I "want". This is something that you folks struggle with daily. Imagine how much time you're losing!