基于区块链的毕业设计Node Crypto Wallet Implemtation – 节点加密钱包实现

本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计Node Crypto Wallet Implemtation – 节点加密钱包实现 是一篇很好的国外资料

Node Crypto Wallet Implemtation

My Javascript implemtation on BTC, BCH, ETH, LTC, and XMR wallets. These wallets are designed only to spend funds. You must source your own blockchain API, such as fetching utxos/broadcasting txs.

This is not a package. This is a practical implemtation for a NodeJS Crypto wallet.

Bitcoin

HD Wallet. Extended Public and Private key needed. Exodus wallet does not currently support viewing your extended private key(xprv)

Extended Keys are used to generate children addresses. This wallet is programmed to search your children addresses for funds. All change is returned to the first child address.

var wallet = new BitcoinHDWallet("xpub", "xprv");  // Sends ~$45 to the recipient address (+$6 fee) var txid = await wallet.send("recipientAddress", 0.001, 0.00015);  // view your transaction on the mainnet console.log("https://blockchair.com/bitcoin/transaction/" + txid);

Bitcoin Cash

HD Wallet

var wallet = new BitcoinCashHDWallet("xpub", "xprv");  // Sends ~$45 to the recipient address (+6 cent fee) var txid = await wallet.send("recipientAddress", 0.045, 0.00006);  // view your transaction on the mainnet console.log("https://blockchair.com/bitcoin-cash/transaction/" + txid);

Ethereum

Wallet. Private key needed.

var wallet = new EthereumWallet("address", "privateKey");  // Sends ~$45 to the recipient address (+$13 fee) var txid = await wallet.send("recipientAddress", 0.012, 0.003);  // view your transaction on the mainnet console.log("https://etherscan.io/tx/" + txid);

Litecoin

HD Wallert

var wallet = new LitecoinHDWallet("xpub", "xprv");  // Sends ~$45 to the recipient address (+1 cent fee) var txid = await wallet.send("recipientAddress", 0.17, 0.00004);  // view your transaction on the mainnet console.log("https://blockchair.com/litecoin/transaction/" + txid);

(coming soon) Monero

Wallet

Dependencies Used

Package Purpose Required For
bitcore-lib Pure JS solution for creating and signing txs BTC, BCH, LTC
bitcore-lib-cash Creating and signing Bitcoin-Cash txs BCH
litecore-lib Creating and signing litecoin txs LTC
ethereumjs-tx Creating and signing ethereum txs ETH
monerolib Creating and signing Monero txs XMR
multicoin-address-validator Validates generated addresses All

About bitcore-explorers

Bitcore-explorers is now a defunct library. The Insights server, managed by Bitpay, is no longer usable. I recommend switching over to NOWNodes.io for your blockchain api.

About Monerolib

monerolib is not currently finished. Therefore, the Monero wallet is haulted until then.

Contrubiting

Feel free to open PRs and issues. If are you unsure of anything, don’t hesitate to ask.


节点加密钱包实施

我的Javascript在BTC、BCH、ETH、LTC和XMR钱包上的实现。这些钱包是专门用来花钱的。您必须提供自己的区块链blockchainAPI,例如获取utxos/广播txs

这不是包裹。这是一个实用的NodeJS加密钱包的实现

BTC

高清钱包。需要扩展的公钥和私钥。Exodus wallet目前不支持查看您的扩展私钥(xprv)

扩展密钥用于生成子级地址。这个钱包是用来搜索您的孩子的资金地址。所有更改都返回到第一个子地址

var wallet = new BitcoinHDWallet("xpub", "xprv");  // Sends ~$45 to the recipient address (+$6 fee) var txid = await wallet.send("recipientAddress", 0.001, 0.00015);  // view your transaction on the mainnet console.log("https://blockchair.com/bitcoin/transaction/" + txid);

BTC现金

HD Wallert

var wallet = new BitcoinCashHDWallet("xpub", "xprv");  // Sends ~$45 to the recipient address (+6 cent fee) var txid = await wallet.send("recipientAddress", 0.045, 0.00006);  // view your transaction on the mainnet console.log("https://blockchair.com/bitcoin-cash/transaction/" + txid);

以太坊eth

Wallet

var wallet = new EthereumWallet("address", "privateKey");  // Sends ~$45 to the recipient address (+$13 fee) var txid = await wallet.send("recipientAddress", 0.012, 0.003);  // view your transaction on the mainnet console.log("https://etherscan.io/tx/" + txid);

莱特币

Bitcore explorers现在是一个废弃的库。由Bitpay管理的Insights服务器不再可用。我建议切换到NOWNodes.io以获取区块链blockchainapi

var wallet = new LitecoinHDWallet("xpub", "xprv");  // Sends ~$45 to the recipient address (+1 cent fee) var txid = await wallet.send("recipientAddress", 0.17, 0.00004);  // view your transaction on the mainnet console.log("https://blockchair.com/litecoin/transaction/" + txid);

(即将推出)Monero

monerolib当前尚未完成。因此,莫内罗钱包一直拖到那时

使用的依赖关系

Package Purpose Required For
用于创建和签署txs,LTC创建和签署BTC现金tx XMR 多输入地址验证程序
验证生成的地址 全部 BCH
litecore-lib Creating and signing litecoin txs LTC
ethereumjs-tx Creating and signing ethereum txs ETH
monerolib Creating and signing Monero txs XMR
multicoin-address-validator Validates generated addresses All

关于bitcore explorers

随时打开PRs和问题。如果你有什么不确定的地方,尽管问

关于Monerolib

monerolib is not currently finished. Therefore, the Monero wallet is haulted until then.

控制

Feel free to open PRs and issues. If are you unsure of anything, don’t hesitate to ask.

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/22467.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计Node Crypto Wallet Implemtation – 节点加密钱包实现

提供最优质的资源集合

立即查看 了解详情