Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Web assembly issue with React-Native #7816

Closed
Tracked by #7226
Balanced02 opened this issue Nov 23, 2022 · 6 comments
Closed
Tracked by #7226

Web assembly issue with React-Native #7816

Balanced02 opened this issue Nov 23, 2022 · 6 comments
Assignees
Milestone

Comments

@Balanced02
Copy link

Expected behavior

  • Should encrypt a message with password successfully

Actual behavior

  • Throws an error while calling Lisk.cryptography.encrypt.encryptMessageWithPassword function with right arguments

Screenshot 2022-11-23 at 14 41 20

Steps to reproduce

  • Try encrypting a message on a react-native project

I've tried using these modules to add webassembly to global object on react-native

Which version(s) does this affect? (Environment, OS, etc...)

@bobanm
Copy link
Contributor

bobanm commented Dec 2, 2022

Could you please provide more context to help us look into it?
What were the right arguments that you have passed to the function?

@ishantiw
Copy link
Contributor

ishantiw commented Dec 2, 2022

Related issue created on Hash wasm Daninet/hash-wasm#41

@shuse2 shuse2 self-assigned this Dec 5, 2022
@Madhulearn Madhulearn added this to the Sprint 84 milestone Dec 5, 2022
@shuse2
Copy link
Collaborator

shuse2 commented Dec 6, 2022

Try building https://github.com/Balanced02/BufferIssue, but failed with

error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening BufferProject.xcworkspace.
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace BufferProject.xcworkspace -configuration Debug -scheme BufferProject -destination id=D0C9D1C4-0C87-4AA6-95DF-2CA8062F2B8C

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES
The following build commands failed:
        Ld /Library/Developer/Xcode/DerivedData/BufferProject-dgbyrlfypdgtqkeskbtqabxqpoov/Build/Products/Debug-iphonesimulator/BufferProject.app/BufferProject normal (in target 'BufferProject' from project 'BufferProject')
(1 failure)

Also, it shows some version requirement while doing yarn
@Balanced02 could you check the installation process for the sample project?

Also, it would be nice to detail out the error on the issue Daninet/hash-wasm#41 so we can get the help from author as well

@clemente-xyz
Copy link

clemente-xyz commented Dec 19, 2022

Related issue created on Hash wasm Daninet/hash-wasm#41

@ishantiw , this was already solved on RN 0.70.0 release. We need to debug what's happening with SDK internally

@Madhulearn Madhulearn modified the milestones: Sprint 84, Sprint 85 Dec 19, 2022
@Madhulearn Madhulearn modified the milestones: Sprint 85, Sprint 86 Jan 3, 2023
@Madhulearn Madhulearn modified the milestones: Sprint 86, Sprint 87 Jan 17, 2023
@Madhulearn Madhulearn modified the milestones: Sprint 87, Sprint 88 Jan 30, 2023
@Madhulearn Madhulearn modified the milestones: Sprint 88, Sprint 89 Feb 13, 2023
@ManuGowda
Copy link
Contributor

@shuse2 the README is up to date now, we tried with @ishantiw to setup and it worked for him.

@Madhulearn Madhulearn modified the milestones: Sprint 89, Sprint 90 Feb 28, 2023
@shuse2 shuse2 removed this from the Sprint 90 milestone Mar 2, 2023
@shuse2
Copy link
Collaborator

shuse2 commented Aug 21, 2023

There were no JavaScript library available which can work in React Native (Android). Therefore, the solution was to use native binding for Android

@shuse2 shuse2 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 21, 2023
@shuse2 shuse2 removed their assignment Aug 21, 2023
@github-project-automation github-project-automation bot moved this from Backlog to Done in Lisk SDK Version 6.0.0 Aug 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants