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

Replace node-rsa with webcrypto api (removes the need for polyfills in browser) #101

Merged
merged 39 commits into from
May 2, 2024

Conversation

clangenb
Copy link
Member

@clangenb clangenb commented May 1, 2024

Unit tests can successfully send stuff to the worker, and it also works in the incognitee-campaign.

This means that we no-longer have to go through the polyfill hassle @encointer/worker-api is used in the browser.

@clangenb clangenb marked this pull request as draft May 1, 2024 12:56
@@ -11,7 +11,7 @@ import { parseDegree } from "@encointer/types";
import {u64, Vec} from "@polkadot/types";
import {Option} from "@polkadot/types-codec";
import type {Moment} from "@polkadot/types/interfaces/runtime";
import assert from "assert";
// import assert from "assert";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a node-js type and it gave me some polyfill errors in the integritee-campaign page

@clangenb clangenb marked this pull request as ready for review May 2, 2024 09:35
@clangenb clangenb changed the title Replace node-rsa with webcrypto api and remove the need for polyfills Replace node-rsa with webcrypto api (removes the need for polyfills in browser) May 2, 2024
@clangenb clangenb merged commit 36dd5f4 into master May 2, 2024
2 of 3 checks passed
@clangenb clangenb deleted the cl/webcrypto-api branch May 2, 2024 09:46
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

Successfully merging this pull request may close these issues.

1 participant