Code Monkey home page Code Monkey logo

Comments (13)

bhoudebert avatar bhoudebert commented on May 3, 2024

It was not very clear to me, how signing/security will happen, until I read your issue, so thank you.

From testing/emulator we never saw anything about a smart contract endpoint producing an output as link but it really seems to be a right answer for security which is similar to my wondering issue about signing too.

But then It starts to be confusing, to me at least, because our current (from tutorials to examples) pab smart contract are using functions like submitTx and even some awaitTxConfirmed and they obviously not saying anything about any external signing flow (which is great for testing so)

Does that mean that these functions should not be used for real code? Are we able currently to generate such kind of links?

from plutus-apps.

bhoudebert avatar bhoudebert commented on May 3, 2024

I have also found this https://github.com/input-output-hk/plutus/blob/master/notes/smart-contract-backend/scb.md which should cover the expected process.

from plutus-apps.

bhoudebert avatar bhoudebert commented on May 3, 2024

ok google was my friend this time:

https://input-output-hk.github.io/cardano-wallet/user-guide/common-use-cases/pab

It was way much clear in the process definition, still wondering if we have to create explicitely balance Tx from smart contract code.

from plutus-apps.

mikekeke avatar mikekeke commented on May 3, 2024

@bhoudebert Here is some more details on PAB: https://plutus-apps.readthedocs.io/en/latest/plutus/explanations/pab.html

from plutus-apps.

bhoudebert avatar bhoudebert commented on May 3, 2024

Thxs I already read this =)

I just found that we have to run the PAB with runWith (found it in plutus-app instead of starter) instead of Simulator.

For now calling a PAB endpoint is sending an unbalanced tx to the cardano-wallet which I assume triggers something like ask the client to sign it.

Not too far from there as I face an issue with the wallet endpoints mock wallet versus pab expectations (apparently not aligned)

from plutus-apps.

mikekeke avatar mikekeke commented on May 3, 2024

@bhoudebert
Maybe this will be useful: how to PAB
This is 1st iteration of our "how-to". Questions, suggestions and corrections are welcome =)

from plutus-apps.

bhoudebert avatar bhoudebert commented on May 3, 2024

@mikekeke I will have a look thanks, I did use also some docker for several parts (mostly wallet+node) but I think had issue again with some wallet validation.

I also saw something like signingProcessConfig did you achieve by chance to trigger this kind of process?

from plutus-apps.

mikekeke avatar mikekeke commented on May 3, 2024

@bhoudebert , also readme here has some instructions: https://github.com/input-output-hk/plutus-apps/tree/main/plutus-pab/test-node

I also saw something like signingProcessConfig did you achieve by chance to trigger this kind of process?

I'm not quiet sure yet what is it atm. For our tests we used cardano-wallet integration and transaction signing was performed by cardano-wallet.

from plutus-apps.

bhoudebert avatar bhoudebert commented on May 3, 2024

@mikekeke yes I used also this part but I remember that we using the local cluster the wallet was not aligned v2 api was missing.

That's why I was trying to run it also from sources. The docker-compose from cardano-wallet is a good start for that (just miss the chain index in it) letting us run our pab from sources.

Yeah I can confirm current issue is dapps/pab is sending a balancedTx on /v2/wallets/$WALLET_ID/transactions-balance and it fails because of wrong alignment contract: Expected String got JSON.

I'll try to have a look at sources to see if it is a version used issue or else

NB: feels really weird to have hardcoded mock mention in https://github.com/input-output-hk/plutus-apps/blob/main/plutus-pab/src/Plutus/PAB/Webserver/API.hs

from plutus-apps.

bhoudebert avatar bhoudebert commented on May 3, 2024

Added: POST /wallets/{walletId}/transactions-balance (warning under development, may not behave as expected) it is not totally ready so that is maybe why PAB could be not aligned.

I think a lot of issues could be related to plutus-starter that was based on plutus-starter-devcontainer/v1.0.14 and not the latest re-release/release of plutus-apps (v2021-11-05)

from plutus-apps.

alexandru-calinoiu avatar alexandru-calinoiu commented on May 3, 2024

I think this PR #119 should solve one part of the problem, unfortunately don't see yet in it any updates to the samples or readme.

from plutus-apps.

bhoudebert avatar bhoudebert commented on May 3, 2024

Yeah I just saw that too, they are starting it!

from plutus-apps.

silky avatar silky commented on May 3, 2024

Hey all; I'm going to close this issue as it's a little bit unwieldy; but please do feel free to open more specific tickets so that we can address them :)

Thanks!

from plutus-apps.

Related Issues (20)

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.