Conversation
…ft-kotlin-js # Conflicts: # Cargo.lock # rust/core/Cargo.toml # rust/core/src/bridge.rs # rust/core/src/constraints.rs # rust/core/src/crypto.rs # rust/core/src/error.rs # rust/core/src/lib.rs # rust/core/src/types.rs # rust/core/src/verification.rs # rust/uniffi-bindings/src/lib.rs # rust/wasm/src/lib.rs
…n permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…n permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
| // Ensure WASM is initialized | ||
| await initIDKit() | ||
|
|
||
| // Validate bridge URL (optional for v3) |
There was a problem hiding this comment.
now clear how best to handle the v3/2 switching @andy-t-wang
| statusDiv.style.display = 'block'; | ||
| statusText.textContent = 'Creating verification request...'; | ||
|
|
||
| await store.createClient({ |
There was a problem hiding this comment.
I generally prefer example html files to just be barebones so it's easier to find relevant code from reading. No need for all the styling
js/packages/core/src/lib/hashing.ts
Outdated
| export function packAndEncode(input: [string, unknown][]): HashFunctionOutput { | ||
| // For now, we'll convert to string representation | ||
| // TODO: Implement proper ABI encoding in WASM | ||
| const packed = input.map(([type, value]) => `${type}:${value}`).join(',') |
There was a problem hiding this comment.
I think this will break on chain verifications if not implemented properly
| } | ||
|
|
||
| // Remove once restriction lifted in world app | ||
| if (!test_url.hostname.endsWith('.worldcoin.org') && !test_url.hostname.endsWith('.toolsforhumanity.com')) { |
There was a problem hiding this comment.
probably good to add world.org here too
js/packages/core/src/types/config.ts
Outdated
| /** | ||
| * @deprecated in IDKit@1.0.0, use VerificationLevel instead | ||
| */ | ||
| export enum CredentialType { |
There was a problem hiding this comment.
good time to clean this up and get rid of it since we are going to 3.0 now
| let deferred2_0; | ||
| let deferred2_1; | ||
| try { | ||
| const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); |
There was a problem hiding this comment.
Are these functions auto generated or implemented. Otherwise good to have some tests here too
There was a problem hiding this comment.
autogenerated
| const store = useWorldBridgeStore() | ||
|
|
||
| // 2. Create client - returns immutable client object | ||
| const client = await store.createClient({ |
There was a problem hiding this comment.
This is kind of similar to the session hook. But, I like it!
https://docs.world.org/world-id/id/web-react#session-hook
No description provided.