Giter VIP home page Giter VIP logo

csl-mobile-bridge's People

Contributors

banklesss avatar dependabot[bot] avatar lisicky avatar pedromtcosta avatar stackchain avatar v-almonacid avatar vsubhuman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

csl-mobile-bridge's Issues

Command PhaseScriptExecution failed with a nonzero exit code

I got the issue when run on ios from xcode
Screenshot 2023-08-01 at 16 27 59

My step when install the lib:

  1. yarn add @emurgo/csl-mobile-bridge
  2. cd ios && npx pod-install
  3. Open Xcode and run

I tried some solution from community but still not work:

  • change source="$(readlink "${source}")" -> source="$(readlink -f"${source}")"
  • Tick on Build Phrases/[CP]Embed Pods Frameworks/For install builds only

System:
"react-native": "0.71.3",
"@emurgo/csl-mobile-bridge": "^5.1.2",

Macos: Ventura - Version 13.3.1 (a) (22E772610a)
Xcode: Version 14.3 (14E222b)

Please give me some idea to resolve this problem. Thanks your work a lot!

[Android] Accessing blockchain from Android iOS code

image

I am having trouble getting the react-native-haskell-shelley to build as I run up against the following error when building.

“Task with name ‘cargoBuild’ not found in project ‘:@emurgo_react-native-haskell-shelley’”
Which seems to be from the android build.gradle line

Verifying signature is missing

Hi there,

So first things first, great works, so far we base our work on this repo to be able to use the cardano lib through a flutter app (so using the iOS/C wrapper).

But unfortunately even if we can generate signature it seems that the verify function from the cardano-serialization-lib is missing.

We saw some comment on the Android (nothing in the iOS one) version saying that it was a pending thing waiting for something, but it seems it may not be the case anymore? https://github.com/Emurgo/react-native-haskell-shelley/blob/master/rust/src/android/public_key.rs

// TODO: cannot implement yet since Ed25519Signature is missing.
// #[allow(non_snake_case)]
// #[no_mangle]
// pub unsafe extern "C" fn Java_io_emurgo_rnhaskellshelley_Native_publicKeyVerify(

Is there any reason to not have this function available, like a technical impossibility that we did not catch?

Thanks.

Install Error react-native-haskell-shelley on react native

Dear team, I'm using your lib to integrate with Cardano chain. In process setup, I have error relate cc on my Mac (m1 pro, Mac OS Monterey 12.6) and xCode 14.0.1

Screen Shot 2022-10-06 at 13 57 05

react-native: 0.67.4 "@emurgo/react-native-haskell-shelley": "3.1.4",

getting start fail

npm install @emurgo/react-native-haskell-shelley --save
npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "@emurgo/react-native-haskell-shelley" under a package
npm ERR! also called "@emurgo/react-native-haskell-shelley". Did you name your project the same
npm ERR! as the dependency you're installing?
npm ERR!
npm ERR! For more information, see:
npm ERR! https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm

Could not get unknown property 'DEFAULT_NDK_API_LEVEL'

Hi!
When I try to build my react-native app for android I get this error:

FAILURE: Build failed with an exception.

  • Where:
    Build file '/home/piotr/Workspace/bonfire/node_modules/@emurgo/react-native-haskell-shelley/android/build.gradle' line: 89

  • What went wrong:
    A problem occurred evaluating project ':@emurgo_react-native-haskell-shelley'.

Could not get unknown property 'DEFAULT_NDK_API_LEVEL' for object of type com.nishtahir.CargoExtension.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

I'm using version ^4.0.0-beta.3 of react-native-haskell-shelley.
Any ideas what could be the issue here? Thanks!

does not find the function

hi, I was trying to test the libraries by calling them from c ++ using the dynamic .so library that was compiled in the rust folder. but apparently it does not recognize the function when compiling.

I want to compile this test code:

#include "react_native_haskell_shelley.h" 
...........
int main(){
std::string b32="addr1qxxxxxxxxxxxxxxxxxxxx";
bool estado;
const char **error=nullptr;
RPtr q;
estado=address_from_bech32(b32.c_str(), &q, error);
std::cout<<error<<std::endl;
std::cout<<estado<<std::endl; 
return 0;
}

I compile with this command (the library is in the same folder)

g++ -Wall -o test main.cpp -L. -lreact_native_haskell_shelley

I get this error

/tmp/cceT6kUo.o: En la función `main':
main.cpp:(.text+0xa1): referencia a `address_from_bech32' sin definir
collect2: error: ld returned 1 exit status

Add support for version of cardano-serialization-lib that supports Babbage era

What the title says: would it be possible to update the bindings so that they support latest versions of cardano-serialization-lib, and thus Babbage era new features (reference inputs, etc.)? This is a serious blocker in one of our projects. More generally, is react-native-haskell-shelley still being actively developed?

build error Mac OS for Simulator

Can you please check if the issue from #81 has been addressed?

After npm installing the new package and building it for a Simulator on Mac OS I get the same error

image

The workaround for the error, is to comment out the line with "Mac.OSX.sdk" from the build.sh file. After that, it compiles successfully for a simulator

Compiling for release doesn't require a workaround, and works as intended out of the box. Therefore the issue seems to be related to just the simulator target

All the best

Error with cargo build

Hello, I was trying to compile the library that is inside the rust folder with the following command:
cargo build
but it threw me this error:
error: failed to get cardano-serialization-lib as a dependency of package react-native-haskell-shelley v0.0.8

I am not familiar with rust, but I saw that its dynamic library could be used so that it can interact with c ++.
I have done some small tests with simple codes and the calls to the rust libraries work with c ++, and well, I would like to try this repositories because it contains the extern "c" and # [no_mangle] that I read that it is necessary for it to work.
only that I have not been able to compile to generate that .so library for me.

I noticed that this compilation also generates a .h library, which I found fantastic to be able to know the functions that the dynamic library has.

If you could help me compile this library, I would really appreciate it.

Always return same value in hex while converting pointer to hex.

After build transaction, set witnesses. I added this code, but it always return same hex

const transaction = await Transaction.new(
txBody,
witnesses,
undefined // transaction metadata
);
console.log("-------transaction", transaction);

const transactionHash = Buffer.from(
  await transaction.to_bytes(),
  "utf8"
).toString("hex");

result key : 84a400800180021a0007a120030aa10081825820aac6f71be249b3aa2fb1f4a354d7a2673186422e0abf3924689d7f7dd97ddaf75840d248976b04d4a0cd836a16476e56677fa7549ff0bcb6300a0a05df690ede20076af7ffef433be35b3e09d6935bdfdec1c2c58b3d5bf00081501a3c8c30b9940ef5f6

upgarde to latest cardano-serialization-lib 10.0.4

Hi, can you upgrade the code to use the latest cardano-serialization-lib version 10.0.4 please

There are breaking changes between v9 and v10, so developing a Web DApp to use v10 and Mobile app to use v9 would lead to significant code duplication

Thanks

Mnemonics to Shelley Address

How can I create a shelley address from mnemonics using react-native-haskell-shelley npm? I can't see any test case related to mnemonics.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.