1

Consider this a follow up to this other question that someone else asked: Where is stored off-chain code?

My question: Without a dapp store how does one deploy a Plutus script in a fully Decentralized manner? Would you have to do what SundaeSwap did and get some node operators to run the off chain code for you?

Or perhaps what happens is a user goes to a dapp developers website , clicks on something like “install dapp to Nami wallet”,then the wallet copies the dapp code from the dapp developers server to the users wallet and they then run the off chain code on their browser ? Is that how it works?

1 Answer 1

1

The purpose of a dApp store is for script curation, not script availability. Perhaps "dApp Store" is a bit of a misnomer, because software here isn't being sold in the traditional sense. Instead, it is being submitted to the open source community in a setting where professionals can audit/debug the code and report their findings to the community. This is imperative for decentralization because we can't expect everyone to have the level of expertise necessary to know whether the code they are using is sufficient for their purposes. By having trusted entities validate scripts and sign off on them allows us to outsource the code audit to an entity who has a reputation to maintain.

As far as deploying the actual script, the code is run on the client machine (your computer) and the hash of the operation is posted on chain. This is analogous to how simple transactions work - sending/receiving addresses are not stored on chain for each transaction, only the hashes of TX outputs are stored.

2
  • So how does the code get onto the users machine? It sounds like the code will originate from a centralized entity (SundaeSwap servers & SundaeSwap website ?) and then run on users browsers and interact with users wallet as need be? Have I got that right?
    – Reddspark
    Dec 2, 2021 at 20:55
  • 1
    @user1761806 yes, that is one of the ways. It really doesn't matter where the user gets the script from -- he could get it from a friend, a contract deployer, compile from source himself, fetch from ipfs.
    – andycandy
    Dec 3, 2021 at 8:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.