BDCash Smart Contracts what is it and how does it work?

Bdcash Protocol
2 min readDec 22, 2021

In the BDCash Blockchain, Smart Contracts are considered to all intents and purposes as an extension of the NodeSH, useful for creating additional features.

Inside the NodeSH the npm module Bdcash Protocol/vm is called which allows you to create a virtual trustless environment and which allows the smart contract to execute code inside the host machine.

BDCash Smart Contracts are not directly inspired by Ethereum Smart Contracts. Consequently, BDCash’s approach to Smart Contrats cannot be the same as with Ethereum.

BDCash Smart Contracts are not automatically hosted in all nodes of the network (NodeSHs)
They cannot manage BDCASH funds or hold private keys
They do not write information on behalf of the user but it is the user who writes information within the blockchain: the smart contract can validate information and maintain its status or be recalled from a data written directly in the blockchain by the user
They are not a single entity (smart contracts coexist in all the NodeSHs that replicate them and can only agree on the status in a given block)

They are really automatic, that is, they self-execute each block or upon receipt of information in the mempool
They are immutable but updatable, i.e. the code is immutable (because it is publicly displayed within a transaction) but can be updated by publishing a new version. The update is entrusted to each owner of NodeSH.
They are written with Javascript and expose their methods through the NodeSH.
Although they cannot write on behalf of the user, they can * generate * formally valid transactions and delegate the signature and broadcast to the user.
They have consent features whereby each client can ask if that node is trusted or not.

With them we can create basically anything we can imagine in a fast and safe way.

--

--

Bdcash Protocol

#BDECO is a peer-to-peer project based on and forked #PIVX code with consensus #POS and #MN, but with major changes to its protocol, making our code unique.