是否有必要使用加密货币通过区块链进行付款?

时间:2019-02-18 18:28:39

标签: blockchain

我正在记录这个区块链世界。基本上,我想制作一些Web应用程序,用户决定在其中进行捐赠,并希望了解谁进行捐赠以及向哪个实体捐赠。我有几个疑问,第一个:

1-是否可以使用JavaScript使用区块链? (可以使用javascript完成智能合约吗?)

2-如果捐赠是使用区块链进行的,是否有必要使用加密货币?或者您可以使用真实货币进行交易(使用贝宝等方式)

3-可以通过诸如Paypal之类的方式使用区块链转移真实货币吗?

非常感谢,您的回答将为我提供更多记录

2 个答案:

答案 0 :(得分:0)

是否可以通过JavaScript使用区块链? (可以使用javascript完成智能合约吗?)

 Every blockchain has a SDK, the part of the software which lets you 
 interact   with the real blockchain( A decentralise ledger). There 
 are  generally two parts in the Blockchain , One is client and one 
 is processor. 

As you must have guessed, Client is the one who sends the transaction, 
This transaction must satisfy certain rules in order to be accepted by 
the transaction processor. If the transaction gets validated by 
transaction processor, The transaction will be added to the block alongwith 
other transactions and this block will then be added to the blockchain. 
Copied to all other nodes (Forks are a different story)

Generally Most blockchains lets you interact with the blockchain through 
ABCI which is just an interface to convert your transaction into 
a format understandable by the blockchain processor.

Some blockchains has their fixed transaction processing logic like Ethereum for 
security and some lets you write your own transaction processing logic like 
Sawtooth, Fabric etc.

Permissioned and some public blockchains like Hyperledger projects and 
cosmos SDK lets you write your own application layer logic for Blockchain, 
So yes, You can write those transactions in Javascript or any other programming 
language, as long as it satisfies the interface.

Public blockchain deals with tokens having real worth. Their transaction logic 
is already fixed, but some of them does provide javascript API's like NEO 
(Not   sure about that)

2-如果捐赠是使用区块链进行的,是否有必要使用加密货币?或者您可以使用真实货币进行交易(使用贝宝等方式)

 You can do that and put the donation receipt on Blockchain linked with 
 real identities of people. This way if anybody wants to check who pays 
 how much donation, They can query blockchain for the user address.

3-可以通过诸如Paypal之类的方式使用区块链转移真实货币吗?

This can also be done, but this will involve using a crypt exchange,
centralised or decentralise. You can convert the real money into crypto 
of your choice at one end and vice versa at the other hand.

注意:这是基于我对加密货币的有限了解。在采取此建议之前,请先咨询更多的人或任何专业公司。

答案 1 :(得分:0)

我不认为任何协议都可以在Java Script中实现其智能合约,但是您可以在这两种语言之间构建一个转换器,这可能使开源社区中的其他人受益。

因此,您需要一些工程师为您做一些工作,在这种情况下,请构建一个Web应用程序。有几种方法可以完成此操作,这里有一些想法:

a)发行基于您的新业务成功而获利的令牌,您也许可以在不依赖于任何特定加密货币或法定货币的协议上进行此操作。 用户可以使用交易所将您的令牌转换为自己喜欢的令牌。

b)接触私募股权或风险投资基金,并让他们为之付款。

c)忘记了区块链,只需将项目支付给您最喜欢的工程师即可。