drv-core

所属分类:工具库
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2023-04-09 04:48:45
上 传 者sh-1993
说明:  用于在去中心化网络中传递价值的点对点库。
(A peer-to-peer library for communicating value in decentralized networks.)

文件列表:
.babelrc (90, 2023-08-26)
.eslintrc.json (4327, 2023-08-26)
api/ (0, 2023-08-26)
api/fs/ (0, 2023-08-26)
api/fs/index.js (111, 2023-08-26)
api/fs/search/ (0, 2023-08-26)
api/fs/search/index.js (616, 2023-08-26)
api/fs/store/ (0, 2023-08-26)
api/fs/store/index.js (604, 2023-08-26)
api/index.js (169, 2023-08-26)
api/price/ (0, 2023-08-26)
api/price/get-price/ (0, 2023-08-26)
api/price/get-price/index.js (1032, 2023-08-26)
api/price/index.js (75, 2023-08-26)
api/transaction/ (0, 2023-08-26)
api/transaction/create-transaction/ (0, 2023-08-26)
api/transaction/create-transaction/index.js (1163, 2023-08-26)
api/transaction/get-transaction/ (0, 2023-08-26)
api/transaction/get-transaction/index.js (97, 2023-08-26)
api/transaction/get-transactions/ (0, 2023-08-26)
api/transaction/get-transactions/index.js (360, 2023-08-26)
api/transaction/index.js (333, 2023-08-26)
api/transaction/load-transactions/ (0, 2023-08-26)
api/transaction/load-transactions/index.js (792, 2023-08-26)
enforcements/ (0, 2023-08-26)
enforcements/broadcast.js (1043, 2023-08-26)
enforcements/index.js (77, 2023-08-26)
errors.js (293, 2023-08-26)
events/ (0, 2023-08-26)
events/create-on-transaction.js (358, 2023-08-26)
events/index.js (239, 2023-08-26)
events/on-transaction.js (604, 2023-08-26)
events/on-valuation.js (1759, 2023-08-26)
index.js (2854, 2023-08-26)
numbers.js (88, 2023-08-26)
package-lock.json (286285, 2023-08-26)
package.json (580, 2023-08-26)
statuses.js (67, 2023-08-26)
... ...

# Decentralized Record of Value (DRV) ## Privacy DRV records may be announced publicly in the form of a publicly-viewable blockchain that can be read from a number of random peers. The public can see the amount and kind of currency transferred in every transaction, but the identities of the parties involved are obfuscated behind their respective address hashes in order to maintain a level of individual privacy. In non-fungible systems (like [Dereva](https://github.com/bennyschmidt/dereva)), any data stored in files on the blockchain can be made viewable by the public, but the sender's & recipient's identities are still obfuscated by default. If the magnet URI is known, the file can be displayed in a browser (in JSON format). ## Dereva [Dereva](https://github.com/bennyschmidt/dereva) is a deployable Node.js [service](https://github.com/bennyschmidt/node-service-library) that extends basic ledger functionality with native content types and file storage, enabling robust non-fungible records in addition to fungible transactions. You can install & use it as a library, or deploy this code as a REST API. For fungible systems, it allows any user with quantifiable Dereva to alias & denominate their own token to sell or freely distribute. There is no requirement to use Dereva with `drv-core`. ## Consensus Anyone can determine the validity of a transaction against a certain confidence threshold by counting how many instances have validated it versus the total being queried. As more peers run a transaction, confidence is built, and upon a certain threshold determined by the user a transaction may be deemed valid. When performing a basic balance inquiry or when transferring DRV to another user, like any other request the values are determined functionally - in other words, calculated at the time it's needed to be across a number of peer instances until the provided confidence threshold is met. ## Enforcements Enforcements are lifecycle hooks that run after a transaction has completed. The [Broadcast](https://github.com/bennyschmidt/drv-core/blob/master/enforcements/broadcast.js) enforcement included in this distribution ensures that a transaction is broadcasted to peers in a network (defined by peer lists). But DRV is not limited to just peer-to-peer activity. An enforcement could, for example, activate a machine in a device network, or run a callback script.

近期下载者

相关文件


收藏者