WO2022217267A1 - Service meshes and smart contracts for zero-trust systems - Google Patents
Service meshes and smart contracts for zero-trust systems Download PDFInfo
- Publication number
- WO2022217267A1 WO2022217267A1 PCT/US2022/071616 US2022071616W WO2022217267A1 WO 2022217267 A1 WO2022217267 A1 WO 2022217267A1 US 2022071616 W US2022071616 W US 2022071616W WO 2022217267 A1 WO2022217267 A1 WO 2022217267A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- network
- service
- network service
- blockchain
- application
- Prior art date
Links
- 230000009471 action Effects 0.000 claims description 22
- 238000004891 communication Methods 0.000 claims description 21
- 230000000116 mitigating effect Effects 0.000 claims description 14
- 238000009434 installation Methods 0.000 claims description 8
- 238000000034 method Methods 0.000 description 66
- 230000008569 process Effects 0.000 description 37
- 230000006870 function Effects 0.000 description 29
- 238000007726 management method Methods 0.000 description 26
- 238000003860 storage Methods 0.000 description 23
- 238000012546 transfer Methods 0.000 description 19
- 230000008859 change Effects 0.000 description 17
- 238000013459 approach Methods 0.000 description 14
- 238000005516 engineering process Methods 0.000 description 10
- 230000000875 corresponding effect Effects 0.000 description 8
- 239000008186 active pharmaceutical agent Substances 0.000 description 7
- 230000003993 interaction Effects 0.000 description 7
- 238000012790 confirmation Methods 0.000 description 6
- 238000009826 distribution Methods 0.000 description 6
- 238000013475 authorization Methods 0.000 description 5
- 230000010354 integration Effects 0.000 description 5
- 238000012384 transportation and delivery Methods 0.000 description 5
- RTZKZFJDLAIYFH-UHFFFAOYSA-N Diethyl ether Chemical compound CCOCC RTZKZFJDLAIYFH-UHFFFAOYSA-N 0.000 description 4
- RWSOTUBLDIXVET-UHFFFAOYSA-N Dihydrogen sulfide Chemical compound S RWSOTUBLDIXVET-UHFFFAOYSA-N 0.000 description 4
- 230000008901 benefit Effects 0.000 description 4
- 239000003795 chemical substances by application Substances 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 4
- 230000006855 networking Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 4
- 235000014435 Mentha Nutrition 0.000 description 3
- 241001072983 Mentha Species 0.000 description 3
- 230000006399 behavior Effects 0.000 description 3
- 238000013523 data management Methods 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 235000014569 mints Nutrition 0.000 description 3
- 230000008520 organization Effects 0.000 description 3
- 230000002085 persistent effect Effects 0.000 description 3
- 230000001105 regulatory effect Effects 0.000 description 3
- 238000013468 resource allocation Methods 0.000 description 3
- 241000287219 Serinus canaria Species 0.000 description 2
- 230000002547 anomalous effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 239000010432 diamond Substances 0.000 description 2
- PCHJSUWPFVWCPO-UHFFFAOYSA-N gold Chemical compound [Au] PCHJSUWPFVWCPO-UHFFFAOYSA-N 0.000 description 2
- 239000010931 gold Substances 0.000 description 2
- 229910052737 gold Inorganic materials 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 239000000243 solution Substances 0.000 description 2
- 206010009691 Clubbing Diseases 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000013474 audit trail Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 239000000969 carrier Substances 0.000 description 1
- 238000013070 change management Methods 0.000 description 1
- 238000005056 compaction Methods 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 238000012517 data analytics Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000037406 food intake Effects 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 238000002347 injection Methods 0.000 description 1
- 239000007924 injection Substances 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 229910052751 metal Inorganic materials 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000003607 modifier Substances 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
- 230000000644 propagated effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000013341 scale-up Methods 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
- GOLXNESZZPUPJE-UHFFFAOYSA-N spiromesifen Chemical compound CC1=CC(C)=CC(C)=C1C(C(O1)=O)=C(OC(=O)CC(C)(C)C)C11CCCC1 GOLXNESZZPUPJE-UHFFFAOYSA-N 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
- 230000005641 tunneling Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3236—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
- H04L9/3239—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/50—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/04—Large scale networks; Deep hierarchical networks
- H04W84/042—Public Land Mobile systems, e.g. cellular systems
Definitions
- the present invention relates to systems and methods for improving the linking smart contracts in transactions on a blockchain network.
- Blockchain is a distributed and public ledger which maintains records of all the transactions.
- a blockchain network is a truly peer-to-peer network and it does not require a trusted central authority or intermediaries to authenticate or to settle the transactions or to control the network infrastructure. Users can interact and transact with the blockchain networks through Externally Owned Account (EOAs), which are owned and controlled by the users.
- EOAs Externally Owned Account
- Each EOA has a balance (in certain units of a Cryptocurrency associated with the Blockchain network) associated with it. EOAs do not have any associated code. All transactions on a blockchain network are initiated by EOAs. These accounts can send transactions to other EOAs or contract accounts. Another type of accounts support by second generation programmable Blockchain platforms are the Contract Accounts.
- Blockchain networks can either be public or private. Public blockchain networks are free and open to all and any user can create an account and participate in the consensus mechanism on a public blockchain and view all the transactions on the network. Private blockchain networks are usually controlled and operated by a single organization and the transactions can be viewed only by the users within the organization. Public blockchain networks are usually unpermissioned or permissionless, as any node can participate in consensus process. Some public blockchain networks adopt a permissioned model where the consensus process is controlled by a pre-selected set of nodes. Private blockchain networks usually adopt the permissioned model. While public blockchain networks can be considered as fully decentralized, private blockchain networks are partially decentralized.
- Organizations can have multiple private blockchain networks where each network is dedicated to a specific use case or department or business vertical.
- the blockchain networks within an organization may be created either using the same blockchain platform or technology or with different platforms or technologies.
- EOAs Externally Owned Accounts
- Each Externally Owned Account (EOA) has a public-private keypair associated with it.
- the account address is derived from the public key.
- a keyfile is created which has the public and private keys associated with the account.
- the private key is encrypted with the password which is provided while creating the account. For sending transactions to other accounts, the private key and the account password are required.
- embodiments of the present invention are directed to a system and associated methods for exchange of information, value or tokens within and between blockchain networks and the real physical world.
- the systems, apparatus and methods allow creation and deployment of scalable blockchain applications that rely on a large number of smart contracts that interact with each other through the use of either a cloud-based billboard architecture or a blockchain-based billboard architecture.
- This architecture allows extension of existing blockchain applications to deploy smart contracts that use global shared variables (within languages, such a Solidity) to exchange information with each other.
- the billboard architecture allows the integration of scalable information exchange between the real-world (e.g., triggers such as loan payments or sales of products) and the systems of smart contracts and oracles, seamlessly and efficiently.
- Several familiar programming models such as push/pull, publish/subscribe and consumer/producer may be easily supported for production deployment.
- GVNS Variable Name System
- one smart contract can send a transaction to another contract or reference public state variables of other contracts.
- calls and variable references must be coded in the smart contract and the contract code once deployed cannot be changed. If one contract in a system of linked contracts must be changed then it would need re-deployment of all the other linked contracts as the code has to be changed.
- BBMF and GVNS technologies allow the seamless integration of scalable information exchange between the real-world and the systems of smart contracts and oracles, seamlessly and efficiently.
- legacy blockchain-based code can be seamlessly upgraded and functionality modified through change in the BBMF framework through new mapping and distribution from older public state variables to new or redefined ones.
- the method and systems may further comprise fintech and enterprise applications, including but not limited retail payments, loyalty rewards and peer-to-peer lending application (referred as nCash mobile application) and an associated platform (referred as nCash Network) that provide the following features:
- Scalable blockchain architecture that links to the real-world: Decentralized applications and systems that are based on a very large number of interacting smart contracts that are coupled with and responsive to real world triggers and events, using a novel billboard-based information and value distribution system.
- the platform is built on second generation programmable Blockchain network (such as Ethereum) and allows individuals to securely send and receive payments.
- second generation programmable Blockchain network such as Ethereum
- the nCash application allows users to spend crypto or fiat currencies managed by the platform at affiliated merchant stores.
- Loyalty Rewards & Offers Users can get exclusive loyalty rewards, discount offers and cashbacks by paying with nCash app at affiliated merchant stores.
- the nCash mobile application wallet is capable of managing multiple layers of currencies (fiat currency, cryptocurrency and ERC-20 tokens). Users can buy the native tokens named nCash Coins (NCC) by paying with credit or debit card, ACH bank transfer, or any of the supported cryptocurrencies (including Bitcoin, Ether, Litecoin, and more).
- NCC nCash Coins
- NCC nCash coins
- ERC20 Token nCash coins (NCC) are based on the ERC-20 token standard. NCC tokens can be purchased with any of the supported fiat or crypto currencies in the nCash app.
- Chat & Transact with Contacts With nCash users can chat and send payments, or request payments from their contacts.
- nCash application includes a lending marketplace and supports borrowing and lending of nCash coins.
- nCash application supports customer, merchant admin and merchant operator account types.
- embodiments of the present invention are directed to a method of exchanging value across a blockchain network comprising receiving a first transaction smart contract, that may be a transaction, comprising a transaction amount global variable name request and a transaction amount, recording the first transaction to a second transaction smart contract on a first blockchain network, and registering the first transaction amount global variable name to a global variable name system, defining a transaction amount global variable.
- the method further comprises defining a value of the transaction amount global variable responsive to the transaction amount, receiving a second transaction smart contract, which may also be a financial transaction, comprising a second transaction global variable name request and a second transaction amount, and registering the second transaction global variable name request to the global variable name system, defining a second transaction global variable.
- the method further comprises defining a value of the second transaction global variable responsive to the second transaction amount, receiving a transaction notification comprising the second transaction global variable name and a transaction value, recording the transaction notification to the second smart contract, and updating the value of the second transaction global variable responsive to the transaction value.
- updating the value of the second transaction global variable may comprise publishing the updated value of the second transaction global variable to a first managed topic on a first messaging server and transmitting the content published to the managed topic to a first subscriber.
- the receipt of the content published to the first managed topic by the first subscriber may initiate a smart contract transaction for a first smart contract, the first smart contract being recorded on a first blockchain network.
- Registering the transaction amount global variable, registering the second transaction global variable, and registering the registering the second transaction global variable each comprise performing a global variable registration process may comprise receiving a request for to register a global variable name at a global variable name registrar from a user, defining a new global variable, defining an owner for the new global variable at a global variable name registry, defining a resolver for the new global variable at the global variable name registry, and defining a value of the new global variable.
- the method may further comprise performing an updating procedure to update the value of the new global variable, the updating procedure comprising receiving a trigger generated by a smart contract data source on a first messaging server, the trigger comprising an updated value of the new global variable, publishing the updated value comprised by the trigger to a first managed topic associated with the new global variable on the first messaging server, and transmitting the updated value comprised by the trigger that is published to the managed topic to a first subscriber. Receipt of the content published to the first managed topic by the first subscriber may initiate a smart contract transaction for a first smart contract, the first smart contract being recorded on the first blockchain network.
- the method may further comprise receiving a collateral input and recording the collateral input to a collateral smart contract on the first blockchain network.
- the collateral input may be a collateral token generated by receiving a tangible asset collateral deposit, generating a collateral token associated with the tangible asset collateral deposit, and transmitting the collateral token.
- the tangible asset may be received by a third party and the collateral token may be generated by the third party.
- the method may further comprise receiving a repayment notification, recording the repayment notification to the second transaction smart contract, updating the value of the second transaction global variable, and recording a collateral release to the collateral smart contract.
- the method may further comprise receiving a default notification, recording the default notification to the second transaction smart contract, updating the value of the second transaction global variable, and recording a collateral release to the collateral smart contract directed to the second transaction global variable.
- the collateral input may comprise at least one of cryptocurrency or a collateral token.
- the method may further comprise receiving an installation payment, recording an installation payment notification to the second transaction smart contract, updating the second transaction global variable responsive to a value of the installation payment, and transferring at least a portion of the value of the installation payment to an entity associated with the second transaction global variable.
- the first transaction smart contract may further comprise a loan duration and a loan interest rate, collectively defining borrower conditions, the method further comprising registering a loan duration global variable name to the global variable name system, defining a loan duration global variable, defining a value of the loan duration global variable responsive to the transaction amount, registering a loan interest rate global variable name to the global variable name system, defining a loan interest rate global variable, and defining a value of the loan interest rate global variable responsive to the loan interest rate.
- the method may further comprise receiving a plurality of lending offers from a plurality of lenders, each lending offer comprising an amount to lend, a loan duration, and expected returns, collectively defining lending pool conditions, recording the plurality of lending offers, defining a lending pool, to a second transaction smart contract on the first blockchain network, the values of the lending offers of the plurality of lending offers defining lending pool conditions, determining if the borrower conditions match the lending pool conditions, matching a lending offer from the second transaction smart contract to the first transaction, recording a borrower smart contract between the borrower and the second transaction smart contract, and recording a lender smart contract between the lender associated with the matched lending offer and the second transaction smart contract.
- the method may further comprise receiving multiple pluralities of lending offers from a plurality of lenders, each lending offer comprising an amount to lend, a loan duration, and expected returns, recording each plurality of lending offers, defining a lending pool, to a second transaction smart contract on the first blockchain network, the values of the lending offers of the plurality of lending offers defining lending pool conditions, recording a plurality of second transaction smart contracts to a pool of pools smart contract on the first blockchain network, determining if the borrower conditions match the lending pool conditions of any of the plurality of second transaction smart contracts comprised by the pool of pools smart contract, matching a lending offer from the pool of pools smart contract to the first transaction, recording a borrower smart contract between the borrower and the pool of pools smart contract, recording a pool-to-pool smart contract between the pool of pools smart contract and the second transaction smart contract, and recording a lender smart contract between the lender associated with the matched lending offer and the second transaction smart contract.
- the method may further comprise receiving borrower identity information associated with a borrower, receiving a borrower credit rating, and recording the borrower credit rating to a credit rating and reputation smart contract on the first blockchain network.
- Additional embodiments of the inventions may be directed to a system for exchanging value across a blockchain network comprising a processor, a data store positioned in communication with the processor, and a network communication device positioned in communication with each of the processor, the data store, and a network.
- the network communication device may be operable to receive a first transaction smart contract comprising a transaction amount global variable name request and a transaction amount.
- the processor may be operable to record the first transaction to a second transaction smart contract on a first blockchain network and register the first transaction amount global variable name to a global variable name system, defining a transaction amount global variable.
- the network communication device may be operable to receive a second transaction smart contract comprising a second transaction global variable name request and a second transaction amount.
- the processor may be operable to register the second transaction global variable name request to the global variable name system, defining a second transaction global variable.
- the network communication device may be operable to receive a transaction notification comprising the second transaction global variable name and a transaction value.
- the processor may be operable to record the transaction notification to the second transaction smart contract and update a value of the second transaction global variable responsive to the transaction value.
- Embodiments of the invention may also be directed to a blockchain-enabled network and application service mesh network architecture comprising a network service mesh network comprising a plurality of network service domains configured to communicate with each other, each network service domain comprising a plurality of network service endpoints configured to communicate with a network service client and a network service manager configured to broadcast the availability of the plurality of network service endpoints to network service clients.
- the architecture may further comprise an application service mesh network positioned in communication with the network service mesh network, the application service mesh network comprising a plurality of applications configured to communicate with each other and a network service domain of the plurality of network service domains.
- a plurality of smart contracts comprising network slicing information from the network service mesh network and the application service mesh network are recorded to a blockchain network.
- the network service mesh network may further comprise a global variable name system comprising a plurality of registered global variables and a bulletin board server configured to update information about the plurality of registered global variables responsive to messages received from the plurality of applications by the bulletin board server.
- the plurality of smart contracts may comprise registered global variables.
- the plurality of smart contracts may be configured to be updated responsive to changes in registered global variables comprised thereby.
- the bulletin board server may comprise a plurality of topics, each topic comprising a registered global variable, and the topics of the plurality of topics may be configured to be subscribed to by the plurality of applications, such that information regarding updates to the registered global variable comprised by the topic is sent to applications that subscribe to the topic.
- malicious traffic coming from an application may be identified by comparing traffic coming therefrom to a smart contract associated with an application, and the bulletin board server is configured to perform a mitigation action responsive to the malicious traffic.
- the mitigation action may comprise at least one of advertising the attach through the global variable name system, isolating the affected application, and migrating tasks to be performed by the application to another application of the plurality of applications.
- a first plurality of smart contracts comprising a first set of network slicing information from the network service mesh network may be recorded to a first blockchain network and a second plurality of smart contracts comprising a second set of network slicing information from the application service mesh network may be recorded to a second blockchain network.
- the architecture may further comprise a global variable name system comprising a plurality of registered global variables and a bulletin board server configured to update information about the plurality of registered global variables responsive to messages received from users by the bulletin board server.
- the first and second pluralities of smart contracts may comprise registered global variables the first and second pluralities of smart contracts may be configured to be updated responsive to changes in registered global variables comprised thereby.
- the plurality of applications may comprise at least one of a containerized network function, a virtual network function, a worker node, a server, a container, a pod, and a virtual machine.
- at least a subset of the plurality of network service domains may be managed by a Kubernetes installation.
- FIG. 1 is a schematic diagram of a retail payments, loyalty rewards and peer-to-peer lending system that uses smart contracts and blockchain.
- FIG. 2 is an illustration of a process for retail payments where a customer pays in cash at a merchant kiosk/application/point of sale application or hardware device that is aware of the nCash platform, and instead of receiving loose change back receives digital tokens in the nCash mobile application wallet, according to an embodiment of the invention.
- FIG. 3 is an illustration of a process for retail payments where a customer pays in cash and instead of receiving loose change back receives digital tokens from a merchant account in the nCash mobile application, according to an embodiment of the invention.
- FIG. 4 is an illustration of the components of the nCash mobile application wallet, according to an embodiment of the invention.
- FIG. 5 is an illustration a process for QR-code based payment request and authorization, according to an embodiment of the invention.
- FIG. 6 is an illustration of a process for buying coins with credit or debit card, according to an embodiment of the invention.
- FIG. 7 is an illustration of a process for buying coins with ACH Bank Transfer, according to an embodiment of the invention.
- FIG. 8 is an illustration of a process for buying coins with Cryptocurrencies, according to an embodiment of the invention.
- FIG. 9 is an illustration a process for withdrawing coins to a linked bank account, according to an embodiment of the invention.
- FIG. 10 is an illustration of the smart contracts involved in the nCash retail payments, loyalty rewards and peer-to-peer lending platform, according to an embodiment of the invention.
- FIG. 11 is an illustration of a process for peer-to-peer lending, according to an embodiment of the invention.
- FIG. 12 is a schematic diagram of the blockchain-based peer-to-peer lending system, according to an embodiment of the invention.
- FIG. 13 is an illustration the multi-signature collateral contract used by the peer-to-peer lending system, according to an embodiment of the invention.
- FIG. 14 is an illustration of a process for chaining of loans, according to an embodiment of the invention.
- FIG. 15 is an illustration of a process for lending with cryptocurrency or tokens as collateral where the borrower successfully repays the loan, according to an embodiment of the invention.
- FIG. 16 is an illustration of a process for lending with cryptocurrency or tokens as collateral where the borrower fails to repay the loan, according to an embodiment of the invention.
- FIG. 17 is an illustration of a process for lending with physical assets as collateral, according to an embodiment of the invention.
- FIG. 18 is an illustration of the transaction fee involved for buying and selling of coins, according to an embodiment of the invention.
- FIG. 19 is an illustration of the smart contracts related to the lending platform and the interactions of borrowers and lenders with the smart contracts, according to an embodiment of the invention.
- FIG. 20 is an illustration of a process for issuing cashback and discounts using smart contracts, according to an embodiment of the invention.
- FIG. 21 is an illustration of a peer-to-pool-to-peer (P2P2P) lending model, according to an embodiment of the invention.
- P2P2P peer-to-pool-to-peer
- FIG. 22 is an illustration of a lending pool generator for generating lending pool smart contracts, according to an embodiment of the invention.
- FIG. 23 is an illustration of a matching engine for matching borrowers to lending pools, according to an embodiment of the invention.
- FIG. 24 is an illustration of feeding external data to lending pool contracts using an oracle, according to an embodiment of the invention.
- FIG. 25 is an illustration of channels and triggers for lending pools, according to an embodiment of the invention.
- FIG. 26 is an illustration of smart contracts involved in a lending pool, according to an embodiment of the invention.
- FIG. 27 is an illustration of a pool-of-pools comprised of multiple lending pools, according to an embodiment of the invention.
- FIG. 28 is an illustration of a lending pool smart contract structure and transactions, according to an embodiment of the invention.
- FIG. 29 is an exemplary classification of lending pools based on their risk and returns, according to an embodiment of the invention.
- FIG. 30 is an illustration of an alliance of merchants with interoperable loyalty points, according to an embodiment of the invention.
- FIG. 31 is an illustration of a distributed messaging framework called Bulletin Board Messaging Framework (BBMF) according to an embodiment of the invention.
- FIG. 32 is an illustration of consumer/subscriber actions supported in the publish-subscribe messaging framework illustrated in FIG. 31.
- BBMF Bulletin Board Messaging Framework
- FIG. 33 is an illustration of a smart contract data source that uses an external publisher client to publish messages to the publish-subscribe messaging framework, according to an embodiment of the invention.
- FIG. 34 is an illustration of a smart contract data source that uses an integrated publisher client to publish messages to the publish-subscribe messaging framework, according to an embodiment of the invention.
- FIG. 35 is an illustration of the message format for the publish-subscribe messaging framework, according to an embodiment of the invention.
- FIG. 36 is an illustration of a global variable name system being updated by a consumer of the publish-subscribe messaging framework, according to an embodiment of the invention.
- FIG. 37 is an illustration of the architecture of a global variable name system, according to an embodiment of the invention.
- FIG. 38 is an illustration of a blockchain checkpointing approach in the publish-subscribe messaging framework, according to an embodiment of the invention.
- FIG. 39 is an illustration of global variable sharing across smart contracts, according to an embodiment of the invention.
- FIG. 40 is an exemplary implementation of a Bulletin Board Publisher/Producer client and Consumer/Subscriber client, according to an embodiment of the invention.
- FIG. 41 is an exemplary interface of the nCash mobile application, according to an embodiment of the invention.
- FIG. 42 is an exemplary interface of the nCash mobile application showing peer-to-peer lending options, according to an embodiment of the invention.
- FIG. 43 is an exemplary interface of the nCash mobile application showing different types of transactions, according to an embodiment of the invention.
- FIG. 44 is an exemplary interface of the nCash mobile application showing chats and payments interface, according to an embodiment of the invention.
- FIG. 45 is an illustration of the nCash mobile application features for different types of accounts, according to an embodiment of the invention.
- FIG. 46 is an illustration of the evolution of Network Function Virtualization from virtual machines to containers.
- FIG. 47 is an illustration of the Kubernetes architecture.
- FIG. 48 is an illustration of the architecture of an application service mesh.
- FIG. 49 is an illustration of the architecture of a network service mesh.
- FIG. 50 is an illustration of an Application Service Mesh over a Network Service Mesh, according to an embodiment of the invention.
- FIG. 51 is an illustration of a Blockchain-Secured Service Mesh, according to an embodiment of the invention.
- FIG. 52 is an illustration of the process for Logging Traffic on Blockchain through Bulletin Board Messaging Framework (BBMF) and Global Variable Name System (GVNS), according to an embodiment of the invention.
- BBMF Bulletin Board Messaging Framework
- GVNS Global Variable Name System
- FIG. 53 is an illustration of the Smart Contracts involved in the Blockchain- Secured Service Mesh, according to an embodiment of the invention.
- FIG. 54 is an illustration of the steps for detecting and mitigating attacks (such as DDoS) with the Blockchain-Secured Service Mesh, according to an embodiment of the invention.
- FIG. 55 is an illustration of the challenges and requirements for Containerized Network Functions (CNFs) at different layers, according to an embodiment of the invention.
- CNFs Containerized Network Functions
- FIG. 56 is an illustration of the multi-layer protection approach using a Blockchain-Secured Application Service Mesh and Blockchain-Secured Network Service Mesh, according to an embodiment of the invention.
- FIG. 57 is an illustration of the multi-layer protection approach using different blockchains at different layers, according to an embodiment of the invention.
- FIG. 58 is an illustration of the super-chain and sub-chains in multi-layer protection approach, according to an embodiment of the invention.
- FIG. 59 is an illustration of BlockGrid architecture for multi-layer protection, according to an embodiment of the invention.
- FIG. 60 is an illustration of relationships between blocks on different blockchains within the BlockGrid architecture, according to an embodiment of the invention.
- FIG. 61 is an illustration of Blockchain Identity & Access Management platform, according to an embodiment of the invention.
- FIG. 62 is an illustration of the interactions between the B-IAM system and other blockchain networks and decentralized applications, according to an embodiment of the invention.
- FIG. 63 is an illustration of Blockchain-Enabled Network & Application Service Mesh (BENASM), according to an embodiment of the invention.
- BENASM Blockchain-Enabled Network & Application Service Mesh
- FIG. 64 is an illustration of Blockchain-Enabled Network & Application Service Mesh with Identity (BENASMI), according to an embodiment of the invention.
- FIG. 65 is an illustration of cross-cluster/cross-domain connectivity, identity and observability with Blockchain-Enabled Network & Application Service Mesh with Identity (BENASMI), according to an embodiment of the invention.
- FIG. 66 is an illustration of a microservices architecture, according to an embodiment of the invention.
- FIG. 67 is an illustration of dynamic allocation of resources in 5G using virtualization and containerization, according to an embodiment of the invention.
- FIG. 68 is an illustration of network slice coins, according to an embodiment of the invention.
- FIG. 69 is an illustration network slice management using blockchain, according to an embodiment of the invention.
- FIG. 70 is an illustration of hierarchical consensus models in 5G, according to an embodiment of the invention.
- FIG. 1 a schematic diagram of a retail payments, loyalty rewards and peer-to-peer lending system that uses smart contracts and blockchain, is described in more detail.
- a user 100 and a merchant 102 may complete a transaction through use of an application and presentation layer 104.
- the application and presentation layer 104 may comprise a web interface 106 and/or a mobile application
- the platform/application services layer 110 may comprise security features 112, such as a user identity and access management system 114.
- the platform/application services layer 110 may further comprise integration services 116, such as, for example, a messaging service 118 or a connector service for applications, cloud services, and token exchanges 120.
- the platform/application services layer 110 may further comprise configuration management features 122.
- the configuration management features 122 may include an nCash portal
- the platform/application services layer 110 may further comprise accounting and transaction services 130, such as a change management framework 132, a token framework 469, an incentives disbursement framework 136, a lending framework 138, and an nCash wallet
- the platform/application services layer 110 may further comprise data management and analytics services 142, such as analytics and reporting systems 144, an incentives bidding system 146, a loan matching system 148, a recommendation system 150, and an advertisement and promotions system 152.
- data management and analytics services 142 such as analytics and reporting systems 144, an incentives bidding system 146, a loan matching system 148, a recommendation system 150, and an advertisement and promotions system 152.
- an infrastructure layer 154 may comprise one or more of blockchain networks 156, decentralized storage platforms 158, decentralized messaging platforms 160, or cloud infrastructure 162, such as cloud computational resources, cloud storage resources, or cloud networking resources.
- FIG. 2 a process flow for retail payments where a customer pays in cash and instead of receiving loose change back, receives the change as digital tokens (nCash coins - “NCC”) in the nCash mobile application, is described in more detail.
- Customer 200 pays for the items purchased or rented at a store in cash at step 204.
- Customer 200 opens the nCash app and displays a barcode of the customer's nCash account number at step 206.
- the merchant kiosk/application/point of sale application or hardware device that is aware of the nCash platform 202 scans the barcode and an entry is added in the ledger to transfer the change to the nCash account at step 208. At some periodic interval, for example, at the end of the day, all the transactions to credit the change to nCash accounts are processed by the payment system.
- Customer 200 receives the change back in the nCash App at step 210.
- FIG. 3 a process flow for retail payments where a customer pays in cash and instead of receiving loose change back receives digital tokens from a merchant account in the nCash mobile application, is described in more detail.
- Customer 220 pays for the items purchased or rented at a store in cash at step 224.
- Customer 220 opens the nCash app and displays a QR code at step 226.
- the merchant/PoS agent 222 that has a mobile/tablet device with nCash mobile application installed scans the QR code and enters the change amount and transfers the amount instantly from the merchant administrator or operator account at step 228. Every PoS agent 222 has a Merchant nCash app to which some fixed amount is loaded by the store daily to pay as change.
- Customer 220 receives the change back in the nCash App at step 230.
- the nCash wallet 250 may comprise a Fiat currency wallet 252, a cryptocurrency wallet 258, a coupons and voucher management system 254, and ERC-20 token wallet 260, Escrow accounts 256, and prepaid credit accounts 262.
- a portion or prepaid deposit in fiat or cryptocurrency wallets 252, 258 can be considered.
- the wallet balance of one or both of the fiat and cryptocurrency wallets 252, 258 may be applied to Escrow 256 as well where the payment sent by a customer to a merchant is held in an Escrow account and released when an order is fulfilled.
- nCash mobile application uses nCash mobile application to display a QR code containing customer’s nCash wallet address and a one- time receive code at step 318.
- the QR code is scanned by a PoS machine 306 or nCash app with merchant account 308, and a request is sent including the customer address, the receive code, and the amount to the nCash network 300 at step 316.
- the nCash network 300 validates the receive code and sends a request to customer to authorize the payment at step 312.
- Customer 302 authorizes the payment from the nCash app at step 314.
- a payment confirmation is sent to the PoS machine 306 or nCash app with merchant account 308, at step 310.
- Customer 350 sends a request to load an amount to nCash wallet using credit or debit card at step 356.
- the nCash network 352 requests for credit or debit card details of customer 350 at step 358.
- Customer 350 enters credit or debit card information in the nCash mobile application at step 360.
- the card information is then sent to the fiat payment processor 354 directly without going through the nCash network 352 at step 360.
- the fiat payment processor 354 validates the card information and generates a token which is then sent to customer’s nCash mobile application at step 362.
- Customer 350 confirms the payment and sends a request containing the card token and payment amount at step 364.
- the nCash network 352 sends a request containing the token and the payment amount to charge the card to the fiat payment processor 354 at step 366.
- the fiat payment processor 354 charges the customer's card for the amount requested and a payment confirmation is sent to the nCash network 352 at step 368.
- the nCash network 352 mints new coins (digital tokens defined in the nCash Token smart contract) and the token smart contract 370.
- the nCash network 352 adds these new coins (digital tokens) the customer's nCash wallet account at step 372.
- FIG. 7 a process flow for buying coins with ACH Bank Transfer is described in more detail.
- Customer 400 sends a request to an nCash network 402 to load an amount to nCash wallet using ACH bank transfer at step 406.
- the nCash network 402 requests a temporary account details from a fiat payment processor 404 at step 408.
- the fiat payment processor 404 generates a temporary account and sends details about the temporary account to the nCash network 402 at step 410.
- the nCash network 402 then sends the temporary account details to the customer’s nCash mobile application.
- Customer 400 sends a payment to the temporary account using ACH bank transfer at step 414.
- the fiat payment processor 404 sends a payment confirmation to nCash network 402 at step 416.
- the nCash network 402 mints new coins (digital tokens defined in the nCash Token smart contract) and the token smart contract 418.
- the nCash network 402 adds these new coins (digital tokens) the customer's nCash wallet account at step 420.
- nCash network 452 requests a temporary account details from a crypto payment processor 454 at step 458.
- the crypto payment processor 454 generates temporary account and sends them to the nCash network 452 at step 460.
- the nCash network 452 then sends the temporary account details to the customer’s nCash mobile application at step 462.
- Customer 450 sends a payment to the temporary account using a cryptocurrency wallet at step 470.
- the crypto payment processor 454 sends a payment confirmation to nCash network 452 at step 472.
- the nCash network 452 mints new coins (digital tokens defined in the nCash Token smart contract) and the token smart contract 480.
- the nCash network 452 adds these new coins (digital tokens) the customer's nCash wallet account at step 482.
- FIG. 9 a process flow for withdrawing coins to a linked bank account is described in more detail.
- Customer 500 sends a request to a nCash network 502 to withdraw a certain amount of tokens to customer's linked bank account in a bank 506 at step 508.
- the nCash network 502 burns coins equivalent to the withdrawal amount from the customer’s account and updates the token smart contract 510.
- the nCash network 502 then sends a transfer request to the fiat payment processor 504 at step 512.
- the withdrawal amount is credited by the fiat payment processor 504 to the customer's linked bank account at the bank 506 at step 514.
- the fiat payment processor 504 then sends a transfer confirmation to nCash network 502 at step 518.
- a withdrawal confirmation is then sent to customer 500 at step 520.
- the nCash blockchain network 588 is a distributed ledger which maintains records of all the transactions on the nCash network.
- Users 554 interact and transact with the blockchain network 588 through Externally Owned Account (EOAs) 550, which are owned and controlled by the users.
- EOAs Externally Owned Account
- Each EOA 550 has an account address 556, account public- private keys 558 and a balance 560 (in certain units of a Cryptocurrency associated with the Blockchain network) associated with it.
- EOAs do not have any associated code.
- EOAs may interact 564 with bank accounts 552 also owned 566 by the user 554 via third party exchanges operable to exchange cryptocurrencies for fiat currency, which may be deposited in or withdrawn from the bank account 552.
- Token Contract 572 Token Contract provides the nCash token definition including token name, symbol, decimal places, token supply, method for token transfer, and method for checking token balance of an account.
- T oken Distribution Contract 580 T oken Distribution Contract defines the token distribution and pricing model and contains methods for purchasing and claiming tokens, and methods for withdrawing token sale proceeds.
- Incentives Contract 574 Incentives Contract defines the incentives and triggers and methods for distributing incentives.
- Bidding Contract 582 Bidding Contract defines the bidding mechanism for allowing merchants to compete, bid, or pay for the right to add incentives.
- loan Smart Contract 576 Loan Smart Contract is used to enforce loan terms, manage release, repayment or extension of loans.
- Identity Smart Contract 584 Identity Smart Contract is used to link blockchain accounts to real users (borrowers or lenders).
- Credit Rating & Reputation Smart Contract 578 Credit Rating & Reputation Smart Contract is Used to track credit scores and reputation of borrowers.
- Collateral Smart Contract 586 Collateral Smart Contract is used to manage locking up and release of collateral, such as cryptocurrency tokens or physical assets which may be represented in a tokenized form.
- a borrowing peer (borrower) 600 creates a first transaction smart contract in the form of a loan request at step 606.
- the lending platform 602 advertises the loan requests to the lending peers (lenders) 604 at step 616.
- the lending platform 602 may acquire a credit rating 612 associated with the borrowing peer 600 and include the credit rating with the request.
- the lending peers 604 bid for loans by sending second transaction smart contracts in the form of loan offers to the lending platform 602 at step 620.
- the borrowing peer 600 selects the best offer and the loan amount is sent to the borrowing peer at step 610.
- the borrowing peer 600 repays the loan amount plus the interest and lending platform fees to the lending platform 602 at step 608.
- the lending platform 602 returns the loan amount plus the profit to the lending peer 604 at step 618.
- the lending platform 602 may issue loyalty points 614 to borrowing peers 600 and lending peers 604 upon successful repayment of loans, to incentivize the borrowing and lending peers 600, 604 to use the lending platform again for borrowing and lending.
- the blockchain-based peer-to- peer lending system allows borrowing peers or borrowers 652 to send loan requests to a platform 650 which are advertised to lending peers or lenders 656.
- Lenders 656 can bid to send a loan at a particular rate and terms, including settlement date, that is enforced by a loan smart contract 668 deployed on a blockchain network 678.
- the lending platform 650 can co-exist with an electronic payments platform.
- a Borrowers 652 post loan requests to the platform and rates they can pay and lenders bid for loans with terms and rates.
- Platform 650 allows borrowers 652 to automatically repay loans from their nCash mobile application wallets (Borrower Crypto wallet) 662 or extend loan for another term if agreed to.
- Platform 650 can disburse loans in fiat or crypto currencies. When a loan is disbursed, the loan amount is transferred from the Lender Crypto wallet 672 (nCash mobile application wallet of the lender) to the Borrower Crypto wallet 662 (nCash mobile application wallet of the borrower).
- the interest rate is driven by the market. Higher risk means larger rate.
- Platform 650 may charge a percentage of the interest rate on every transaction. Borrower Identity Smart Contracts 658 comprised by the platform 650 maintain the identity information of the borrowers 652.
- Lender Identity Smart Contracts 670 comprised by the platform 650 maintain the identity information of the lenders 656.
- Borrower Reputation and Credit Rating Smart Contracts 660 comprised by the platform 650 maintain the reputation information of the borrowers 652 and their credit ratings.
- Collateral Smart Contracts 664 comprised by the platform 650 maintain collateral information for the loans.
- a reputation system and collaterals for loans makes the lending process more reliable.
- the lending platform 650 uses smart contracts to create a credit rating and reputation system for borrowers. Each repayment and successful loan adds points to the borrower's credit rating and if a loan is not repaid then points are deducted from the borrower's credit rating. Such payments may be transferred to a cryptocurrency wallet 672 for the lender 656.
- a borrower 652 requesting a loan does not repay as per conditions their credit rating/reputation drops and lenders 656 will charge extremely high rates and higher guarantees for any subsequent loan requests.
- the amount of loans could be against a collateral account by the borrower 652 or having pledges from guarantor 654 or other peers that they will guarantee a certain portion of loan.
- the risk score gets lower of a borrower has pledges to support him. If risk score suddenly changes existing lenders get an alert that they can opt for a higher rate or a shorter repayment term. This forces the borrower to borrow wisely to protect against these margin calls.
- Loans issued through the platform 650 may be secured (backed by collateral) or unsecured.
- a Matching Engine 666 of the platform 650 matches loan requests to loan offers and connects the borrowers to lenders.
- the platform matches borrowers to lenders by risk reputation, loan value and interest terms.
- borrowers 652 or their guarantors 654 may present collateral in the form of Crypto currency Tokens or Tokenized Assets.
- Cryptocurrency Tokens are presented as collateral such tokens are transferred by the borrower to a collateral contract where the tokens are held until the loan is not repaid.
- the tokens are released to the borrower 652. If the loan in not repaid, the tokens are released to the lender 656.
- Physical assets (such as gold, diamonds, real-estate property) may be tokenized and presented as a collateral.
- a third party may be engaged to verify the physical assets or keep the assets in their possession till the loan is repaid.
- the lending platform 602 may issue loyalty points 614 to borrowing peers 600 and lending peers 604 upon successful repayment of loans, to incentivize the borrowing and lending peers 600, 604 to use the lending platform again for borrowing and lending.
- Collateral tokens are stored in a multi-signature wallet contract 700.
- Borrower 702, Lender 706, Lending Platform 704 and optional third-parties 708 hold keys to the multisig wallet contract 700.
- the contract requires M-of-N signatures, typically a majority, (e.g. 2-of-3 or 3-of-5) to release collateral.
- the lending platform supports chaining loans where a borrowing/lending peer who has a good credit rating can borrow at low interest rates and lend to one or more peers who have low credit rating at higher interest rates.
- Peer C 752 has good credit rating and sends a loan request 760 and borrows 762 from Peer D 754 at low interest rates.
- Peer C 752 receives loan requests 758, 766 from Peers A and B 750, 756 who have low credit rating or risk profile, and then send loans 764, 768 to Peers A and B 750, 756, respectively, at higher interest rates.
- a loan can be partitioned into subloans with different terms.
- Lenders can fund a portion or fraction of a loan request. Thus a loan could be satisfied with a dozen microloans each at different rates. For example, once a big lender jumps in for 30% of loan, small lenders can jump in to lend at a lower interest rate. A borrower with low risk can float a loan but open only 25% for bid to a high value lenders (such as institutions or banks). The borrower may then open up the loan to the smaller lenders who know the high value lenders will have vetted this borrower. Lending peers can buy a bundle of loans at a particular risk for a price or resell loans.
- the lending platform allows creating a market for users to buy, pool and resell loans. The lending platform may allow a loan to be written off if certain conditions may be met. For example, if a philanthropist funds a clinic and they treat five hundred patients in a month, then their loans can get a reduced rate, or if a farmer creates two jobs his loan may be forgiven.
- a Borrower 800 creates a loan request with amount requested and loan terms at step 808.
- the lending platform 802 creates a loan contract 810 and advertises the loan request to lenders at step 812.
- a Lender 804 agrees to fund the loan at step 814.
- the Borrower 800 deposits cryptocurrency or tokens as collateral in a collateral contract 818 at step 816.
- the Lender 804 funds the loan at step 820.
- the loan amount is released to the Borrower 800 at step 822.
- the Borrower 800 pays loan installments to the Lending Platform 802 at steps 824 and 828 which are released to the Lender 804 at steps 826 and 830.
- the Collateral is released to the Borrower 800 at step 832, such release being recorded to the collateral contract 818.
- a Borrower 850 creates a loan request on a lending platform 852 with an amount requested and loan terms at step 858.
- the lending platform 852 creates a loan contract 860 and advertises the loan request to lenders at step 862.
- a Lender 854 of N lenders 856 to whom the loan request is advertised agrees to fund the loan at step 864.
- the Borrower 850 deposits cryptocurrency or tokens as collateral in a collateral contract 868 at step 866.
- the Lender 854 funds the loan at step 870.
- the loan amount is released to the borrower at step 872.
- a Borrower 902 creates a loan request on a lending platform 904 with an amount requested and loan terms at step 858.
- the lending platform 904 creates a loan contract 910 and advertises the loan request to lenders at step 912.
- a Lender 906 agrees to fund the loan at step 914.
- the Borrower 902 transfers physical assets (such as gold, diamonds or title to real-estate property) to a Third Party 900 at step 916.
- the Third Party 900 tokenizes the assets and transfers the tokens to the borrower at step 918.
- the Borrower 902 deposits these tokens as collateral to the lending platform 904 in a Collateral Contract 922 at step 920.
- the Lender 906 funds the loan at step 924.
- the loan amount is released to Borrower at step 926.
- the Borrower repays the loan installment to the lending platform 904 at step 931 and the funds are released to the lender 906 at step 930.
- the lending platform 904 releases the Collateral (tokens) is released to the Borrower 902 at step 932.
- the Borrower 902 transfers tokens to the third-party 900 at step 934.
- the third-party 900 then returns the physical assets to the Borrower 902 at step 936.
- nCash coins can be purchased by paying in a fiat currency (such as USD) using credit/debit card 950 or ACH bank transfer 952, or by paying in a cryptocurrency 954 (such as Bitcoin, Ether).
- a fiat currency such as USD
- ACH bank transfer a cryptocurrency 954
- For transactions between the nCash network 956 (such as sending coins to another user or merchant) does not involve any transaction fee.
- a transaction fee for selling coins and withdrawing coins to a linked bank account 958. for automated transactions through an app 866 or manual transactions 968. is involved.
- An Identity Smart Contract 1012 is used to link blockchain accounts to real users, such as an account of a borrower 1000 or a lender 1002.
- the identity information provided by the borrower 1000 at step 1004 is recorded in the identity smart contract 1012 in original or hashed form.
- the identity information provided by the lender 1002 at step 1020 is recorded in the identity smart contract 1012 in original or hashed form.
- a Credit Rating & Reputation Smart Contract 1014 is used to track credit scores and reputation of a borrower 1000.
- the credit score of the borrower 1000 is recorded at step 1006 and updated on each new loan request, loan repayment or loan default.
- a Collateral Smart Contract 1016 is used to manage locking up and release of collateral, such as cryptocurrency tokens or physical assets which may be represented in a tokenized form.
- the borrower 1000 deposits the collateral tokens to the collateral smart contract 1016 at step 1008.
- a Loan Smart Contract 1018 is used to enforce loan terms and manage release, repayment or extension of loans.
- the information related to the borrower’s 1000 loan requests, loan disbursement received or loan repayment completion is recorded in the loan smart contract 1018.
- the information related to the lender’s 1002 loan offers, loan disbursement completion, or loan repayment received is recorded in the loan smart contract 1018.
- the smart contracts 1012, 1014, 1016 and 1018 are deployed on the blockchain network 1026.
- a customer 1050 makes a transaction to a merchant with coupon code meeting cashback or discount conditions at step 1052.
- An incentives smart contract 1054 checks cashback or discount rules comprised thereby and triggers a cashback or discount if the transaction meets the cashback or discount criteria at step 1056.
- the token contract 1058 is updated and tokens are transferred from the merchant’s account to the customer’s account.
- the customer 1050 receives a cashback or discount notification at step 1060.
- the smart contracts 1054 and 1058 are deployed on the blockchain network 1064 at step 1062.
- the lenders 1100, 1102, 1104 contribute to a lenders pool 1108 with conditions.
- a lender’s condition to lend money may include the amount to lend, the duration of the loans, expected returns, and loan settlement dates.
- the loans are distributed from the lenders pool 1108 with conditions.
- Borrowers 1118, 1120, 1122 may submit borrower's requests 1114 from the lenders pool 1108 through a lending platform 1110.
- Each borrower request may comprise the borrower’s conditions for a loan.
- a borrower’s condition for borrowing money may include the amount to borrow, the duration of the loan, and an acceptable interest rate.
- a matching engine 1112 in the lending platform 1110 uses smart contracts 1116 to ensure the high level (pool level) and low level (borrower and lender) constraints are satisfied.
- a borrower’s requests to borrow money are matched automatically to the lenders 1100, 1102, 1104 and lending pool’s 1108 conditions using smart contracts 1116.
- Each lender pool (such as pool 1108) is represented by a smart contract (such as smart contract 1124) in the lending platform 1110 which controls the pool level behavior and handles conditions such as different time periods and expected returns for the lenders 1100, 1102, 1104 and substitution of lenders who exit the pool 1108 with new lenders, as some of the lenders to the pool 1108 may have different time periods and they will exit and be substituted by new lenders.
- Loans are distributed from lender pools 1108 with conditions.
- the peer-to-pool-to-peer (P2P2P) lending model is more efficient than the existing peer-to-peer (P2P) lending models, especially when there are large number of lenders/investors who want to lend loans.
- Each lender/investor contributes a different amount of money and specifies the minimum interest they would like to receive and the period of their loan amounts.
- the borrowers specify similar terms such as the amount of money to borrow, duration and acceptable rate of interest.
- the lender’s money is pooled into one lending pool and then lent out to multiple borrowers, while smart contracts assure payouts to lenders and payments to borrowers, while some lenders exist and some borrowers’ payback.
- loan requests may also take the form of other transfers of value aside from fiat currency, such as requests for cryptocurrency, credit towards a future transaction, an exchange of tokens having value, and the like.
- security offers may be received from offerors and comprising offer terms, and security seller requests may be received from sellers and comprising seller terms.
- the security offers may be recorded to security offer smart contracts, which may then be recorded to security offer pool smart contract, defining security offer pools, the same as for lending pools.
- the terms of the security offers may define the security offer pool terms.
- the terms of the security seller may be compared to the security offer pool terms and, upon determining the security seller terms fall within the security offer pool terms, the security seller request smart contract may be recorded to the security offer pool smart contract.
- Such securities include, but are not limited to, options contracts.
- a buyer option may be received and recorded to a buyer option smart contract, which may include at least one offer term which may comprise at least one of a designation of the asset associated with the buyer option smart contract, a quantity of the associated asset, an expiration date, a transaction type (e.g. a call or put, as known in the art), and/or a strike price or range of strike prices for the asset.
- a buyer option smart contract may be recorded to a blockchain network similar to the recordation of lender smart contracts described hereinabove.
- a seller option may be received and recorded to a smart contract may comprise the same fields as the buyer option, with the seller being obligated to either sell the associated asset at the strike price in exchange currency, fiat or crypto, at the strike price on the expiration date for a call, or purchase the associated asset at the strike price using currency, either fiat or crypto, on the expiration date for a put.
- security offers may be received and interpreted to determine their type (e.g. loan, offer, etc.) with the determined security offer type being recorded to the associated security offer smart contract.
- security seller requests may be received and have their type determined, the determined security seller type being recorded to the associated security seller smart contract.
- An indication of the security offer types and the security seller requests may be recorded to the respective associated security offer smart contracts and security seller request smart contracts.
- FIG. 22 an illustration of a lending pool generator for generating lending pool smart contracts is described in more detail.
- Each lender 1200, 1202, 1204 contributes 1206 to a lending pool with conditions including the amount of money to lend, duration of lending and expected returns.
- Lenders 1200, 1202, 1204 can have different conditions and may contribute to one or more lending pools.
- a lending pool smart contract generator 1208 is used to generate smart contracts 1210, 1212, 1214 which represent the lending pools.
- FIG. 23 an illustration of a matching engine for matching borrowers to lending pools is described in more detail.
- Each borrower 1250, 1252, 1254, 1256 requests money with conditions including the amount of money to borrow, duration for which money is to be borrowed and acceptable rate of interest.
- a matching engine 1258 matches the borrowers 1250, 1252, 1254, 1256 to lending pool smart contracts 1260, 1262, 1264 such that the borrower level and pool level conditions are satisfied.
- a borrower 1250, 1252, 1254, 1256 may be matched to more than one lending pool.
- Lending pool and related smart contracts 1304 are deployed on a blockchain network 1306.
- An oracle 1302 is used to feed in external or dynamic information (such as exchange rates, market value of collateral) to the lending pool smart contracts.
- the oracle 1302 may obtain such information from external sources and the web 1300.
- Lending pools 1324, 1326, 1328 comprising Lenders 1320 and distributing to Borrowers 1330 can have channels 1332, 1334 between them for transfer of pooled funds between the pools based on external triggers 1322. Moving funds from one pool to another pool may be required when a pool is not performing well and the high-level (pool-level) and low-level (lender and borrower level) constraints are not being satisfied.
- the P2P2P lending platform may monitor the performance of each lending pool and generate triggers for transfer of funds from one pool to another.
- Each lender 1352 is represented by an individual smart contract 1358 in the lending pool 1350.
- each borrower 1354 is represented by an individual smart contract 1360 in the lending pool 1350.
- the lender smart contracts 1358 link lenders 1352 to the lending pool 1350 via the lending pool contract 1356.
- the borrower smart contracts 1360 link borrowers 1354 to the pool lending 1350 via the lending pool contract 1356.
- a seamless lending environment can be created with options to borrow or lend at certain rates and offer these derivatives for trading as well.
- FIG. 27 an illustration of pool-of-pools comprised of multiple lending pools, is described in more detail. Multiple lending pools can be clubbed together to create a pool-of-pools. The pool-of-pools approach is beneficial for highly volatile pools in which borrowers and lenders keep entering and exiting and it is difficult to meet the high-level (pool-level) and low-level (lender and borrower level) constraints. Combining multiple pools into a pool-of-pools brings stability to the P2P2P lending platform.
- a pool-of-pools approach may comprise a plurality of lending pools 1402, 1404, 1406, 1408 that each interact with a pool of pools 1400.
- Each of the plurality of lending pools 1402, 1404, 1406, 1408 may comprise borrower smart contracts with respective borrowers 1412, 1420, 1424, 1428 and lender smart contracts with respective lenders 1410, 1418, 1422, 1426. Additionally, some borrowers 1416 and lenders 1414 may interact directly with the pool of pools 1400.
- a contract owner (or the lending platform) 1522 creates and owns 1520 a lending pool contract 1500.
- the lending pool contract 1500 is created from an externally owned account (EOA) 1518 of the contract owner (or the lending platform) 1522 when a create contract transaction 1510 is performed by the EOA 1518 thereby creating 1502 the lending pool contract 1500.
- Lenders 1524 use their EOAs 1528 to send transactions 1532 to the lending pool contract 1500.
- a lender 1524 can join 1506 a lending pool by sending a joinPool transaction 1514.
- Borrowers 1526 use their EOAs 1530 to send transactions 1534 to the lending pool contract 1500.
- a borrower 1526 can repay a loan 1508 taken from the lending pool by sending a repayLoan transaction 1516.
- Lending pools are classified based on their risks and returns.
- the lending pools with lower risk have lower returns and the lending pools with higher risk have higher returns.
- the risk level for a lending pool is computed based on the reputation and credit scores of the borrowers and lenders linked to the pool.
- the pools which lend money to borrowers with high credit scores usually lend at low rates of interest as these loans are considered to be safe.
- the pools which lend money to borrowers with low credit scores usually lend at high rates of interest as these loans are considered to be risky.
- the loan risk may be categorized as low, medium, and high, and the returns may also be characterized as low, medium and high. This may result in risk-reward categories of low risk-high returns 1600, medium risk-high returns 1602, high risk-high returns 1604, low risk-medium returns 1608, medium risk-medium returns 1618, high risk-medium returns 1620, low risk-low returns 1612, medium risk-low returns 1614, and high risk-low returns 1616. Most lending pools will fall into one of low risk-low returns 1612, low risk-medium returns 1608, medium risk-medium returns 1618, medium risk-high returns 1602, and high risk-high returns 1604.
- FIG. 30 an illustration of an alliance of merchants with interoperable loyalty points is described in more detail.
- Customers 1150 and 1152 make payments 1154 at affiliated merchant stores 1156 using nCash.
- the merchant payments are processed 1158 by the nCash network 1160.
- Customer’s receive loyalty points that work at any merchant in the alliance or network or affiliated merchants 1156. These loyalty points are interoperable across all the merchants in the alliance and can be applied towards a discount for the next purchase.
- the distributed publish-subscribe messaging framework described here is referred to as Bulleting Board Messaging Framework (BBMF) or “Bulletin Board”.
- BBMF Bulleting Board Messaging Framework
- the Bulletin Board Server 1678 manages Topics 1680, 1682.
- Bulletin Board Clients can be Publisher/Producer Clients 1670, 1672 or
- the Publisher/Producer Clients 1670, 1672 publish data or messages to Topics 1680, 1682.
- Data pushed to the topics 1680, 1682 from the Publisher/Producer Clients 1670, 1672 may originate from data sources 1650, which may comprise smart contracts 1652, oracles 1654, logs 1656, sensors 1658, records 1660, databases 1662, streams 1664, and events 1668.
- Consumer/Subscriber Clients 1688, 1690 consume data from the Topics 1680, 1682, receiving messages 1684, 1686 from the Bulletin Board Server 1678.
- Bulletin Board Server 1678 supports a plug-in Message Storage Backend 1692 to store and replay messages.
- the Message Storage Backend 1692 persists the messages using two options: (1) a Cloud Database or Cloud Storage 1694, (2) Decentralized Storage Platform (such as IPFS or Swarm) 1698 with regular checkpointing of message hashes to a Blockchain 1696.
- Messages in the Bulletin Board can be either Ephemeral or Persistent. Ephemeral messages are not stored by the Message Storage Backend. For Persistent messages Time-to-Live (TTL) can be specified.
- TTL Time-to-Live
- the Producers and Consumers support both Cloud and Blockchain protocols such as HTTP-REST or Web3 for Ethereum. This allows existing Smart Contracts (such as Solidity smart contracts) to publish and consume data to/from the Bulletin board, and existing Oracles to feed-in data from the web to the smart contracts through the Bulletin board.
- a smart contract implemented in the Solidity language is a data source which generates notifications in the form of Solidity events which are published to the Bulletin Board server by a Publisher Client.
- Solidity smart contracts require an external Publisher Client to publish messages to the Bulletin board.
- Extensions to smart contract languages such as Solidity may be implemented to support Bulletin board APIs to publish data without the need for an external publisher client.
- These extensions and/or stubs can be through use of pragma directives that may be pre-processed by pre processors to generate suitable code for implementing the interfaces to the bulletin board, or they could involve extensions to the language itself to support global variable names. Topics are managed in-memory with regular snapshots on the disk which are later stored in the Message Storage Backend 1692.
- a compaction process is defined for moving the messages in the snapshots to the Message Storage Backend 1692 (Cloud and/or Blockchain).
- the Bulletin Board itself may be implemented in part through use of a cloud- based service and/or a blockchain and may also include hardware accelerators (such as ASICs or FPGAs) and graphical processing units (GPUs) to provide this high throughput low latency service. Additional redundancy, authorization, and encryption layers may also be provided in hardware and software using known techniques for cloud and internet networks to secure the messages and values stored from system failures or hacking attacks.
- the BBMF is designed for high throughput and low latency messaging.
- the Bulletin Board server 1678 can be deployed in a cloud computing environment and scaled either vertically or horizontally based on demand. In vertical scaling larger virtual machine instance size (in terms of compute capacity, memory and storage) is used for the Bulletin Board server. In horizontal scaling multiple instances of the Bulletin Board server are launched with each instance managing a subset of the topics managed by the Bulletin Board.
- BBMF supports both push/pull and publish/subscribe data ingestion models and data delivery models. Furthermore, the data delivery may be either at-least once delivery or exactly-once delivery.
- BBMF can be implemented in hardware and software, using a combination of servers, ASICs/FPGAs and GPUs as part of a cloud-based or a locally configured computing system.
- Bulletin Board is a distributed messaging framework, a trade-off exists between consistency and availability. This trade-off is explained with the CAP Theorem, which states that under partitioning, a distributed data system can either be consistent or available but not both at the same time. Bulletin Board adopts an eventually consistent model. In an eventually consistent system, after an update operation is performed by a writer, it is eventually seen by all the readers. When a read operation is performed by a consumer, the response might not reflect the results of a recently completed write operation.
- the Bulletin Board messaging framework supports prioritized processing of messages.
- the priority can be set in the message header field.
- Various priority classes for messages can be defined and specified in the priority header field. This priority classification of messages is crucial for the Peer-to-Pool-Peer (P2P2P) lending system when a large number of updates have to be propagated to linked smart contracts in the lending system.
- P2P2P Peer-to-Pool-Peer
- Rules & Triggers 1710 and Actions 1712 can be defined. Rules & Triggers 1712 specify how to filer and select data and trigger actions.
- the supported actions 1716 include Smart Contract Transaction 1718, Webhook Trigger 1720, Log to External Data Store 1722, Email Notification 1724, SMS Notification 1726, and Mobile Push Notification 1728.
- An action is performed when a message 1706 matching a rule is received (for example temperature > 60 or ETH price ⁇ $500) from the Bulletin Board Server 1700, being related to one of the T opics 1702, 1704 managed by the Bulletin Board Server 1700.
- the message may be transmitted to the Consumer or Subscriber Client 1708 by any means or method known in the art, including, but not limited to, HTTP/REST applications and WebSocket.
- the smart contract transaction action is particularly useful for the P2P2P lending system described above where a large number of linked smart contracts (such as smart contracts in a lending pool) can be executed when a message notifying a change in the lending conditions is received.
- a smart contract data source 1800 such as a Solidity smart contract generates notifications or events 1802.
- a publisher/producer client 1804 watches for the notifications or events generated by the smart contract 1800.
- the messages are published 1806 to the topics 1810, 1812 managed by the Bulletin Board 1808.
- These messages are delivered 1814 to the consumer/subscriber client 1816 which has subscribed to the topics 1810, 1812.
- the consumer/subscriber client 1816 has a smart contract transaction action configured which sends transactions 1818, 1820 to the linked smart contracts 1822, 1824 on receiving the messages.
- a smart contract data source with integrated publisher/producer client 1850 generates notifications or events.
- the notifications or events are published as messages 1852 to the topics 1856, 1858 managed by the Bulletin Board 1854. These messages are delivered 1860 to the consumer/subscriber client 1862 which has subscribed to the topics 1856, 1858.
- the consumer/subscriber client 1862 has a smart contract transaction action configured which sends transactions 1864, 1866 to the linked smart contracts 1868, 1870 on receiving the messages.
- the Message Type field 1750 defines the type of the message. Supported message types in the Bulletin Board framework are as follows:
- CONNECT A CONNECT message is sent by a client (producer or consumer) to connect to the server.
- DISCONNECT A DISCONNECT message is sent by a client to disconnect from the server.
- UNSUBSCRIBE Used to unsubscribe from a topic
- PINGREQUEST Used to send a ping request to the server
- PINGRESPONSE Used to respond to a ping request
- DATAREQUEST Used to request a message or data item
- DATARESPONSE Used to respond to a request for a message or data item.
- the Data Payload field 1752 includes the message as a JSON data payload.
- the message may be signed by the sender and/or encrypted.
- the Topics field 1754 includes a list of topics to which the message is published.
- the Headers field 1756 includes headers such as:
- the Time-to-Live (TTL) field 1758 is used to specify the validity or life of the message.
- the Nonce field 1760 is an integer value which can be used to prove that a given amount of work was done in composing the message.
- FIG. 36 an illustration of a blockchain checkpointing approach in the publish-subscribe messaging framework, is described in more detail.
- IPFS Distributed Storage Platform
- Swarm Message Storage Backend
- the messages 1780 are hashed 1782 and are added to a Merkle T ree 1784.
- the root hash 1786 of the Merkle T ree 1784 (after every N messages) is recorded on the Blockchain 1788. This ensures messages cannot be tampered with later.
- the Global Variable Name System (GVNS) 1916 maintains records of global variables and the owners and resolvers for the global variables.
- Data sources 1900 such as a smart contract, oracle, log, sensor, record, database, stream or event, produce data or notifications which are sent to a publisher/producer client 1902.
- the publisher/producer client 1902 publishes the data or notification as a message 1904 to one or more topics 1908, 1910 managed by the Bulletin Board server 1906.
- the consumer/subscriber client 1914 receives the messages 1912 and updates the value of global variables registered in the GVNS 1916.
- the Global Variable Name System (GVNS) 1950 comprises Registrar 1952, Registry 1954 and Resolver 1956 components.
- the Registrar 1952 is responsible for registering new variable names, updating the resolver for a variable name, and transferring the ownership of a variable.
- the Registry 1954 is responsible for recording the owner and resolver of a variable name, and returning the resolver for a variable name.
- the Resolver 1956 is responsible for resolving a variable name to a value and updating the value of a registered variable.
- a user 1980 sends a request (through an externally owned account 1978 or a smart contract 1976) to register a new global variable name (for example, ncash. supply) to the Registrar 1952.
- the Registrar 1952 sets the owner and resolver for the variable in the Registry 1954.
- a consumer/subscriber client 1972 or a smart contract 1974 sends a request to update the value of the global variable to the Resolver 1956.
- a smart contract 1966 requests the value of the global variable from the Registry 1954.
- the Registry 1954 retrieves the Resolver 1956 for the variable.
- the Resolver 1956 returns the value of the global variable.
- the Lending Pool smart contract 2004, Lending Request smart contract 2002 and Loan smart contract 2006 are linked smart contracts in a Peer-to-Pool-Peer (P2P2P) lending system that are used in loan making and loan servicing processes.
- the Lending Request smart contract 2002 is used in the loan making process. Borrowers send lending requests to the lending system and a Lending Request smart contract is created for each lending request.
- the Lending Pool smart contract 2004 is used to manage a lending pool. When the lending system matches a lending request to a lending pool, a new Loan smart contract 2006 is created.
- the Loan smart contract 2006 manages the loan servicing aspects of a loan from the time the loan is disbursed until the loan is paid off.
- the Loan smart contract 2006 captures the loan details such as loan principal, loan interest rate, address of lending pool contract from where the loan is disbursed as state variables.
- Loan smart contract 2006 also registers global variables 2042 such as for the loan amount repaid ( loanAmountRepaid ) and loan status ( loanStatus ).
- the Lending Pool smart contract 2004 and Lending Request smart contract 2002 have global variables 2022, 2012 which are registered 2010, 2008 with the Global Variable Name Systems (GVNS) 2000 ( lendingPool_AmountRaised , lendingPool_numLenders, !endingRequest_AmountRequested). These global variables are referenced 2032 in the Loan smart contract 2006.
- GVNS Global Variable Name Systems
- Each of the smart contracts 2002, 2004 and 2006 have state variables 2014, 2024, 2034, functions 2016, 2026, 2036, modifiers 2018, 2028, 2038, and events 2020, 2030, 2040, which are existing elements/types/constructs in the Solidity smart contracts language.
- Support for global variables which are shared across multiple smart contracts through GVNS 2000 within Solidity smart contracts language is added through extensions to the Solidity language specification.
- extensions are done within the Ethereum Virtual Machine (EVM) which is the runtime environment for smart contracts in Ethereum to add support for global variables shared through GVNS 2000.
- EVM Ethereum Virtual Machine
- Solidity and Ethereum have support for a limited set of global variables that provide information about the blockchain (such as block.coinbase, block.difficulty, block.gaslimit, block.number, block.blockhash, block.timestamp , msg.data , msg.gas , msg. sender, msg.value, tx.gasprice , tx.origin, this.balance, addr.balance), it is not possible for two or more linked smart contracts to share global variables.
- This additional support for global variables is enabled by the GVNS 2000, extensions to the Solidity language specification and extensions to the Ethereum Virtual Machine (EVM).
- EVM Ethereum Virtual Machine
- the BBMF when used in combination with GVNS could provide information to an "analytics engine” as to the number of updates of the global variables and their type, and also to "advertising engines” as to the global variables referenced and their types.
- an instance of the Bulletin Board client class is created.
- the connectQ method of the client class is used to establish a connect to the Bulletin Board server by passing the Bulletin Board server address, clientID and client secret.
- the publish() method of the client class is used to publish a message to the Bulletin Board server.
- the message object published to the Bulletin Board server contains the list of topics, data payload, headers, time-to-live and nonce fields.
- subscribeQ method of the client class is used to subscribe to all or selected topics on the Bulletin Board server.
- a callback function on_message() is defined which is executed every time a new message is delivered.
- a customer is eligible to request loans after completing the lending profile that includes customer’s financial and education information.
- Customer can view the nCash credit score from the mobile application.
- Borrowing peers borrowers
- Lending peers can view open loan requests submitted by all borrowing peers (borrowers) on the network, search for specific loan requests by date range or loan request ID, send loan offers for the loan requests, and release funds for accepted loan offers.
- FIG. 43 an exemplary interface of the nCash mobile application showing different types of transactions is described in more detail.
- the transactions involved are of following types:
- FIG. 44 an exemplary interface of the nCash mobile application showing chats and payments interface is described in more detail.
- the chats and transactions interface allows two customers to chat with each other and send or request payments. A payment request received by a user can be approved or declined from the chats and transactions interface itself.
- FIG. 45 an illustration of the nCash mobile application features for different types of accounts is depicted.
- FIG. 46 an illustration of the evolution of Network Function Virtualization from virtual machines to containers, is described in more detail.
- NFV Network Function Virtualisation
- VNF Virtual Network Function
- VNF Virtual Network Function
- NFV Network Function Virtualization
- VNFs 3002 deployed in virtual machines are being replaced by Containerized Network Functions or Cloud-Native Network Functions (CNFs) 3012.
- CNFs are ultra-lightweight, more portable and scalable compared to VNFs.
- CNF is a network function that runs on the open source container orchestration system such as Kubernetes 3016.
- CNF architecture is deployable over bare-metal server 3018 that brings down the cost.
- 5G Core uses cloud-native technologies such as container orchestration systems, Service-mesh, Micro-services for streamlining network function development.
- 5G Core Network uses SBA (Service Based Architecture) where each function of Core is regarded as a service, and the interface between each function (service) is standardized as a web-based interface (HTTP / REST).
- SBA Service Based Architecture
- Kubernetes also known as K8s is an open-source container orchestration system.
- a node or worker 3110, 3128 is a machine, physical or virtual, on which Kubernetes is installed. Containers are launched on the worker machines.
- a cluster is a set of nodes grouped together.
- the master 3100 is another node with Kubernetes installed in it, and is configured as a Master. The master 3100 watches over the nodes in the cluster and is responsible for the actual orchestration of containers on the worker nodes.
- Kubernetes includes various components including an API Server 3102, ETCD service 3108, kubelet service 3122, 3132, container runtime 3118, 3136, controllers 3106 and schedulers 3104.
- the API server 3102 acts as the front-end for kubernetes.
- the users, management devices, command line interfaces all talk to the API server 3102 to interact with the Kubernetes cluster.
- ETCD 3108 is a distributed reliable key-value store used by Kubernetes to store all data used to manage the cluster.
- the Scheduler 3104 is responsible for distributing work or containers across multiple nodes. Scheduler looks for newly created containers and assigns them to Nodes.
- the Controllers 3106 are the brain behind orchestration and responsible for noticing and responding when nodes, containers or endpoints goes down.
- the controllers 3106 makes decisions to bring up new containers in such cases.
- the container runtime 3118, 3136 is the underlying software that is used to run containers (such as Docker).
- Kubelet 3122, 3132 is the agent that runs on each node in the cluster. The agent is responsible for making sure that the containers are running on the nodes as expected.
- Application Service Mesh provides a framework to off-load many application level tasks such as Security, Retries, Logging & tracing.
- Application Service Mesh makes it easy to create a network of deployed services with load balancing, service-to-service authentication, monitoring, and more, with few or no code changes in service code.
- Application Service Mesh enables layer 7 functionality.
- Application service mesh adds the following properties to Kubernetes:
- An application service mesh (such as Istio) is logically split into a data plane 3248 and a control plane 3246.
- the data plane 3248 is composed of a set of intelligent proxies (such as the Envoy proxy) deployed as sidecars 3212, 3218, 3224, 3230, 3234, 3240.
- the sidecar proxies are deployed on the pods 3210, 3216, 3222, 3228, 3232, 3238. These proxies mediate and control all network communication between microservices and applications 3214, 3220, 3226, 3244, 3236, 3242.
- Sidecar proxies also collect and report telemetry on all mesh traffic.
- the control plane 3246 manages and configures the proxies to route traffic.
- the control plane 3246 includes components for Configuration 3202, Service Discovery 3204, Certificate Management 3206 and Telemetry 3208.
- NSM Network Service Mesh
- 5G Core Networks are typically deployed hybrid cloud environments where each cloud has very different requirements on layer 2 & 3 setup and protocols supported. NSM allows these requirements to be fulfilled in a cloud native way. NSM can be used to connect different clusters or domains. NSM maps the concept of an application service mesh to L2/L3 payloads. NSM adds the following properties to networking in Kubernetes:
- NSM comprises components such as Network Service Manager 3312, 3326, Network Service Endpoint 3316, 3320, 3324, 3328 Network Service Client 3308, 3310, 3318, 3322 and Network Service Forwarder 3314, 3330.
- Network Service Endpoint is the component that provides network functionality requested by a Network Service Client. Some examples of network functionalities requested by a Network Service Client and provided by a Network Service Endpoint are listed below:
- the functionality requested by a Network Service Client is provided by a Network Service Endpoint in the form an an L2/L3 connection through Network Service Forwarder 3314, 3330.
- the L2/L3 connection can carry payloads such as IP packets, Ethernet frames or MPLS frame.
- a Network Service Registry 3302 keeps records of what network service are present, their respective network service endpoints and the network service managers. Every node in a Kubernetes cluster has a Network Service Manager which publish to the Network Service Registry 3302 for discovery. The Network Service Managers advertise the Network Service Endpoints managed by them to the Network Service Registry 3302. Network Service Managers communicate peer-to-peer with to setup the L2/L3 connections.
- Network Service Registry 3302 is implemented via Custom Resource Definitions (CRDs) in the Kubernetes API server. Every node in a Kubernetes cluster is a Network Service Manager domain. Every node also runs a Network Service Forwarder which serves as a data plane doing the cross connects. [0218] Referring now to FIG. 50 an illustration of an Application Service Mesh over a Network Service Mesh, according to an embodiment of the invention, is described in more detail. Application Service Mesh can be deployed over a Network Service Mesh.
- Network Service Mesh 3410, 3408, 3412 orchestrates the connectivity between different clusters, domains or clouds.
- Application Service Mesh 3400 provides functionalities such as secure service to service communication, observability, logging, telemetry, advance policies, intelligent routing rules, traffic management and canary deployments.
- Blockchain-Secured Service Mesh 3500 an illustration of a Blockchain-Secured Service Mesh 3500, according to an embodiment of the invention, is described in more detail.
- the Zero-Trust model assumes that there are no longer trusted interfaces, applications, traffic, network or users.
- Blockchain-Secured Service Mesh 3500 meets the following requirements of Zero-Trust model:
- Blockchain-Secured Service Mesh 3500 is logically split into a data plane 3556 and a control plane 3554.
- the data plane 3556 comprises a set of intelligent proxies (such as the Envoy proxy) deployed as sidecars 3520, 3526, 3532, 3538, 3544, 3550.
- the sidecar proxies are deployed on the pods 3522, 3528, 3534, 3540, 3546, 3552. These proxies mediate and control all network communication between the CNFs 3522, 3528, 3534, 3540, 3546, 3552. Sidecar proxies also collect and report telemetry on all mesh traffic.
- the control plane 3554 manages and configures the proxies to route traffic.
- the control plane 3554 includes components for Configuration 3502, Service Discovery 3504, Certificate Management 3506, Telemetry 3508, Blockchain 3510, BBMF & GVNS 3512, Smart Contracts 3514 and Rules & Patterns 3516.
- FIG. 52 an illustration of the process for Logging T raffic on Blockchain 3636 through Bulletin Board Messaging Framework (BBMF) 3614 and Global Variable Name System (GVNS) 3628, according to an embodiment of the invention, is described in more detail.
- the Global Variable Name System (GVNS) 3628 maintains records of global variables and the owners and resolvers for the global variables.
- Data sources 3600 such as CNFs, VNFs, Worker Nodes, Servers, Containers, Pods, VMs, produce data or notifications which are sent to a publisher/producer client 3610 running on a service proxy 3608.
- the publisher/producer client 3610 publishes the data or notification as a message 3612 to one or more topics 3618, 3620 managed by the Bulletin Board server 3614.
- the consumer/subscriber client 3624 receives the messages 3622 and updates the value of global variables registered in the GVNS 3628.
- Smart contracts 3630, 3632, 3534 reference the global variable registered in the GVNS 3628.
- FIG. 53 an illustration of the Smart Contracts involved in the Blockchain-Secured Service Mesh, according to an embodiment of the invention, is described in more detail.
- the smart contracts are deployed on blockchain 3720 and interact with BBMF & GVNS 3700.
- the smart contracts involved are as follows:
- the blockchain-secured service mesh logs all traffic including the network and transactions data, processes and clears transactions, prevents CNFs/VNFs/VMs/ Containers/Pods/Worker Nodes/Servers from acting maliciously against each other and enforces security policies. Detection and mitigation countermeasures can be provided in an on-demand manner through the use of the blockchain-secured service mesh.
- All traffic from CNFs/ VNFs/ VMs/ Containers/ Pods/ Worker Nodes/Servers is logged using the bulletin board server and the corresponding global variables and smart contracts are updated. Any Malicious or anomalous traffic is detected through the smart contracts. Smart contracts are used to match patterns and the results are used to change mapping of the CNFs/VNFs based on risk and scalability.
- Publisher/Producer Client on Service Proxy publishes data from Sources (CNFs, VNFs, Worker Nodes, Servers, Containers, Pods or VMs) to Topics managed by Bulletin Board.
- Sources CNFs, VNFs, Worker Nodes, Servers, Containers, Pods or VMs
- Consumer/Subscriber Client subscribe to topics managed by Bulletin-board and updates the global variables maintained by GVNS.
- Smart contracts reference the global variables maintained by GVNS.
- Any Malicious or anomalous traffic is detected through the smart contracts.
- Mitigation actions triggered through BBMF including advertising the attacks through the GVNS and Blockchain, isolating the infected component (CNFs/VNFs/VMs/ Containers/Pods/Worker Nodes/Servers) and migrating it to other VMs/Containers/Pods/Worker Nodes/Servers.
- CNFs/VNFs/VMs/ Containers/Pods/Worker Nodes/Servers isolating the infected component (CNFs/VNFs/VMs/ Containers/Pods/Worker Nodes/Servers) and migrating it to other VMs/Containers/Pods/Worker Nodes/Servers.
- the challenges at layer-2 (data link layer 3910) and layer-3 (network layer 3908) include:
- Networking & load balancing [0238] Multi-tenant & multi-region [0239] Orchestration, updates, maintenance [0240] Scheduling [0241] Service discovery [0242] On-demand and dynamic connections [0243] Heterogenous network configurations [0244] Network Service Mesh 3920 addresses the challenges at layers 2 and 3.
- the challenges at layer-4 (transport layer 3906), layer-5 (session layer 3904), layer-6 (presentation layer 3902) and layer-6 (application layer 3900) include: [0246] Application health & performance monitoring [0247] Application deployments & secrets [0248] Circuit-breaking [0249] Traffic management [0250] Canary deployments [0251] Timeouts, retries, deadlines, budgets [0252] Backpressure [0253] Transport security [0254] Identity and access control [0255] Quota management [0256] Protocol translation [0257] Policy
- Application Service Mesh 3916 addresses the challenges at layers 4, 5, 6 and 7.
- BSASM 4014 and BSNSM 4016 have their own blockchains 4018 and 4020. Each blockchain has its own smart contracts and own GVNS variables that can be shared. BSASM and BSNSM have their own smart contracts or each layer has its own smart contracts.
- Each layer blockchain 4116, 4116, 4118, 4120, 4122, 4124, 4126 can communicate across other layer blockchain.
- Each layer 4100, 4102, 4104, 4106, 4108, 4110, 4112 can have its own blockchain, or subsets of layers can share a blockchain. Or neighboring layers can share blockchain. Or the subsets can overlap and the bordering layer can be part of both blockchains.
- a Block can belong to one or more subsets.
- Each Smart contract can belong to a blockchain or across blockchains.
- a zero trust graph sets up the assignments. Subsets can overlap and each subset need not contain all adjacent layers. It could contain only layers L1 and L6 and L7.
- the multi-layer protection approach involves one super-chain 4200 and one or more levels of sub-chains 4202, 4204, 4206.
- the super-chain acts as summarized version of the level-1 sub-chain.
- level-(N-l) sub-chain acts as a summarized version of the level-N sub-chain.
- a single block in the super-chain can include summarized transactions from multiple blocks in the sub-chain.
- BlockGrid is a multi-chain architecture comprising N-levels of blockchains with increasing block-times and increasing levels of decentralization.
- Level-1 4300 chain is the "fastest" chain which has block times in the range of few milli-second to few seconds and a Proof- of-Authority (PoA) or Proof-of-Stake (PoS) consensus.
- the Level-N chain 4304 is a Proof- of-Work (PoW) chain with slow block times in the range of few seconds to few minutes and high level of decentralization.
- the blocks in the successive levels in the BlockGrid architecture are connected through block anchors.
- a Block Anchor is a link between a block on level N-1 chain and a block on level N chain where these blocks are linked by a cryptographic hash. More specifically, a Block Anchor may exist between a block on the Level-1 4300 chain and a block on the Level N-1 chain 4302, and another Block Anchor may exist between block on on the Level N-1 chain 4302 and a block on the Level N 4304 chain.
- the BlockGrid network can be seen as a hybrid of fully centralized and fully decentralized blockchain networks.
- Level-1 chain 4300 can be centralized as it needs to be fast and have fast block times, whereas Level-N chain 4304 can be fully decentralized.
- the Bulletin board messaging system may be used to coordinate the N-levels of chains in the BlockGrid where messages and event notifications have to be exchanged between different levels of chains.
- FIG. 60 an illustration of relationships between blocks on different blockchains within the BlockGrid architecture, according to an embodiment of the invention, is described in more detail.
- the figure illustrates a four level BlockGrid network with four blockchains 4400, 4402, 4403, 4404.
- the blocks in a level N chain contain all the transactions of the corresponding blocks in a level N-1 chain or a summarized form of transactions in the corresponding blocks.
- block B4,0 on the level-4 chain 4404 contains all the transactions in the corresponding block B3,0 on level-3 chain 4403, which in turn contains all the transactions in the corresponding block B2,0 in the level-2 chain 4402, which in turn contains all the transactions in the corresponding block B1 ,0 in the level-1 chain 4400.
- block B3,1 on level-3 chain contains all the transactions in the corresponding blocks B2,1 , and B2,2 1914 in the level- 2 chain 1942.
- the block times (or block intervals) and block generation times of the different blockchains may be synchronized. For example, if level-1 chain has a block time of 100 ms and level-2 chain has a block time of 1 second then a new block of level-2 chain may be generated after every 10 blocks on level-1 chain. In such a case every block on level-2 chain would contain transactions from previous 10 blocks on the level-1 chain.
- B-IAM Blockchain Identity & Access Management
- the B-IAM system's infrastructure layer 4654 comprises a blockchain network 4634, a decentralized storage platform 4636, decentralized messaging platform 4638 and cloud infrastructure 4640.
- All the smart contracts related to user identity management (such as the Seal Contract, Certification Contract, Roles & Privileges Contract) deployed on the blockchain network 4634.
- a blockchain platform such as Ethereum can be used.
- the decentralized messaging platform 4638 is used for messaging between the decentralized applications (Dapps), which are built on the B-IAM system.
- a decentralized messaging platform such as Whisper, can be used.
- Whisper messages are transient in nature and have a time-to-live (TTL) set. Each message has one or more topics associated with it.
- TTL time-to-live
- the Dapps running on a blockchain node inform the node about the topics to which they want to subscribe. Whisper uses topic-based routing where the nodes advertise their topics of interest to their peers.
- Topics are used for filtering the messages which are delivered to a node which are then distributed to the Dapps running on the blockchain node.
- the decentralized storage platform 4636 is used for storing user data such as user photos, and scanned identity documents.
- a decentralized storage platform such as Swarm can be used.
- Swarm is a decentralized storage platform and content distribution service for the Ethereum blockchain platform.
- Swarm is a peer-to-peer storage platform which is maintained by the peers who contribute their storage and bandwidth resources. Swarm has been designed to dynamically scale up to serve popular content and has a mechanism to ensure the availability of the content which is not popular or frequently requested.
- the cloud infrastructure 4640 is used for collection, storage and analysis of application usage data.
- the B-IAM system's platform and application services Iayer4618 comprises Integration Services 4628, Identity & Authentication Services 4650, User Registration & Certification Services 4652, Data Management & Analytics Services 4620.
- the Integration Services 4628 comprise Inter-Blockchain and Intra-blockchain Messaging Services 4630, and various connectors for applications, cloud services and other blockchain networks 4632.
- the Identity & Authentication Services 4650 comprise a User Identity & Access Management Service 4642, and a B-IAM portal 4644.
- the B-IAM portal 4644 allows users 4600 to access and monitor their identity data recorded in the B-IAM system and view identity requests made by different applications.
- the User Registration & Certification Services 4652 comprise a User Registration Service 4646 and a User Certification Service 4648.
- the Data Management & Analytics Services 4620 are deployed on the cloud infrastructure 4640. These include an analytics service 4622, reporting service 4624, and an alerting service 4626.
- the analytics service 4622 can analyze multi-blockchain behavior of a user account to ensure compliance. It is contemplated and included within the scope of the invention that all of these platforms and applications services are operable on a computerized device comprising a processor, a network communication device, and a data storage device as described hereinabove.
- the B-IAM system can be used for providing identity, access management and authentication services for a wide range of applications 4614. Some exemplary applications that can benefit from the B-IAM system include an identity verification application 4602, access control application 4604 and a blockchain-based payments application 4608. All of these may communicate with third party devices and applications 4614 that identifies and/or authenticates the users 4600.
- the B-IAM system can be used to provide user identity and access management services for various decentralized applications deployed on different blockchain networks.
- the B-IAM allows a user to work on multiple blockchain networks, or multiple applications deployed on the same blockchain networks, while maintaining the same identity.
- the blockchain network 4500 can communicate with the B-IAM system using an Inter- Blockchain Messaging protocol 4524.
- the blockchain network 4500 can also send usage data 4532 (such as application usage and user interactions data) to the B-IAM system.
- a smart contract is a piece of code which is deployed on the blockchain network and is uniquely identified by an address. While smart contracts can directly be used by end users 4514, 4550 who can send transactions or calls to the smart contracts through blockchain clients, however, to provide a more user- friendly interface to smart contracts, Dapps can be developed and applied over these smart contracts.
- a Dapp 4560 includes one or more associated smart contracts 4518, a front-end user interface 4522 (which is typically implemented in HTML and CSS) and a back-end 4520 (which is typically implemented in JavaScript). Users can submit transactions to the smart contract 4518 associated with a Dapp from the Dapp's web interface itself.
- the Dapp's web interface forwards the transactions to the blockchain platform 4500 and displays the transaction receipts or state information in the smart contracts in the web interface.
- a Dapp is deployed on a blockchain node 4504 which serves the Dapp's web-based user interface.
- the Dapp logic is controlled by the associated smart contracts 4518 which are deployed on the blockchain platform 4500.
- Dapps which have special storage requirements can make use of a decentralized storage platform (such as Swarm).
- Dapps which have special messaging requirements can leverage a decentralized messaging platform (such as Whisper).
- a blockchain node 4504 typically comprises a blockchain client 4506 that sends transactions to the blockchain network 4500, a smart contracts compiler 4508, a decentralized storage client & local store 4510, and a decentralized messaging client 4512.
- intra-blockchain messaging 4516 over a decentralized messaging platform
- decentralized storage/retrieval requests 4564 over a decentralized storage platform
- BENASM 4700 is a combined blockchain-enabled network and application service mesh.
- the combined mesh can have a single blockchain or there can be separate blockchains for network and application layers.
- Each blockchain has its own smart contracts and own GVNS variables that can be shared.
- Each layer blockchain can communicate across other layer blockchain.
- BENASM enables layer 2 and 3 functionality such as network configuration and connectivity different clusters or domains.
- BENASM enables layer 7 functionality such as load balancing, service-to-service authentication, monitoring, security, retries, logging & tracing and more.
- the combined mesh enables visibility at both network and application layers and cross layer information passing. For example, from a security point of view if a port is opened at one layer it may be cross checked or correlated against an application action. From Observability point of view, ASM gives application metrics, but it doesn't give network and packet level metrics.
- the combined mesh can give visibility at all layers with option to drill top-down from higher to lower layers.
- BENASM is logically split into a data plane 4764 and a control plane 4762.
- the data plane 4764 comprises a set of intelligent proxies (such as the Envoy proxy) deployed as sidecars 4720, 4734, 4748.
- the sidecar proxies are deployed on the pods 4724, 4738, 4752. These proxies mediate and control all network communication between the microservices, applications or CNFs 4726, 4740, 4754. Sidecar proxies also collect and report telemetry on all mesh traffic.
- the network service mesh specific components such as Network Service Manager 4722, 4736, 4750, Network Service Endpoint 4728, 4742, 4760, Network Service Client 4732, 4746, 4758 and Network Service Forwarder 4730, 4744, 4756 are also deployed on the pods 4724, 4738, 4752.
- the control plane 4762 manages and configures the proxies to route traffic.
- the control plane 4762 includes components for Configuration 4702, Service Discovery 4704, Certificate Management 4706, Telemetry 4708, Blockchain 4710, BBMF & GVNS 4712, Smart Contracts 4714, Rules & Patterns 4716 and Network Service Registry 4718.
- BENASMI Blockchain-Enabled Network & Application Service Mesh with Identity
- BENASMI is logically split into a data plane 4874 and a control plane 4872.
- the data plane 4874 comprises a set of intelligent proxies (such as the Envoy proxy) deployed as sidecars 4822, 4840, 4856.
- the sidecar proxies are deployed on the pods 4830, 4854, 4860. These proxies mediate and control all network communication between the microservices, applications or CNFs 4832, 4846, 4864. Sidecar proxies also collect and report telemetry on all mesh traffic.
- the network service mesh specific components such as Network Service Manager 4824, 4842, 4858, Network Service Endpoint 4834, 4852, 4870, Network Service Client 4838, 4850, 4868 and Network Service Forwarder 4836, 4848, 4866 are also deployed on the pods 4830, 4854, 4860.
- the control plane 4872 manages and configures the proxies to route traffic.
- the control plane 4872 includes components for Configuration 4802, Service Discovery 4804, Certificate Management 4806, Telemetry 4808, Blockchain 4810, BBMF & GVNS 4812, Smart Contracts 4816, Rules & Patterns 4720, Network Service Registry 4814 and Identity Service & Contracts 4818.
- BENASMI 4900 can provide connectivity, identity and observability functionality across multiple Kubernetes clusters/domains 4906, 4914, 4926 where each cluster/domain has multiple pods 4902, 4904, 4908, 4910, 4922, 4924, 4928, 4930, 4912, 4916, 4918, 4920 running microservices, applications or CNFs.
- Microservices are an architectural approach to software development where instead of developing monolithic software, a number of small independent services are developed that communicate over well-defined APIs. Microservices architectures make scaling easier, and accelerate the time to market. Microservices architectures leverage Virtualization and Containerization technologies.
- Microservices architectures along with Virtualization and Containerization technologies can allow dynamic allocation and placement of resources, network orchestration and creation of network slices on-demand without prior knowledge of service requirements. Resource allocations can be automated through the use of blockchain and smart contracts to meet the varying levels of QoS.
- FIG. 67 an illustration of dynamic allocation of resources in 5G using Virtualization and Containerization, according to an embodiment of the invention, is described in more detail.
- the ideas of Virtualization and Containerization as in Cloud Computing can be extended to the Carrier 5G networks where different containers are modeled by their types and each consumes its own types of slice coins and resources and smart contracts ensure that enterprises, carriers and cloud providers can all run smoothly while not interfering with existing relationship and operational constraints imposed by the other entities.
- Virtualization and Containerization technologies enable the 5G network operators to quickly build application-aware networks and network-aware applications to deliver customized services and business models.
- Blockchain and smart contracts enable end-to-end resource allocation/sharing, network management and orchestration delivering desired services.
- Network Slicing is a technology in 5G that allows creating logical networks called network slices on top of a common and shared infrastructure layer, to realize a wanted network characteristic and provide specific network capabilities to address a specific customer need.
- Slices are regulated by different types of Slicecoins such as coins for resources, coins for different types of services, and coins for different type of functions - control, computing, management. These coins are allocated, consumed, created and burned in a temporal and spatial manner utilizing smart contracts that can be run on single or multiple blockchains, utilizing IDs and decentralization for management and provisions and operations and control subject to resource, quality, performance and cost and security constraints.
- Network Slicecoins allow non-trusting parties to co-manage the 5G network with slices.
- Slice templates 5100, specification and configurations of resources, management models and system parameters are used to generate smart contracts 5114 which automate the process of resource allocation and network orchestration.
- Slice coin serves as the native token on the blockchain enabling customized service delivery and new charging and business models in 5G and rewarding the enties involved.
- Smart contract 5114 agreements between users and network operators are used to charge the users. Since charging happens automatically when conditions agreed in smart contracts are met, this brings greater transparency and minimize frauds.
- Blockchain 5118 allows maintaining a complete audit trail of transactions making financial reconciliations easier.
- a Network Slice is a set of network functions, and resources to run these network functions, forming a complete instantiated logical network to meet certain performance levels required by specific types of services.
- Network slices can address different service requirements such as End-to-end latency, mobility, user density, priority, coverage area, traffic capacity, and degree of isolation.
- the physical or virtual infrastructure resources may be dedicated to one network slice or shared with other network slices.
- Each of the slices 5160, 5162, 5164 deliver a mix of performance capabilities along three core dimensions:
- Slices 5160, 5162, 5164 are regulated by different types of Slicecoins such as coins for resources, coins for different types of services, and coins for different type of functions - control, computing, management, which are deployed on a Blockchain Network 5172.
- FIG. 70 an illustration of Hierarchical Consensus Models in 5G, according to an embodiment of the invention, is described in more detail.
- a proof of authority model is applied at higher level domains and within each domain a different consensus model may be used, for example.
- One consensus model can be embedded within another consensus models.
- cloud providers, and enterprises can have one consensus models where they assign, allocate, and consume 5G and computing resources, and within their domains they may have their own consensus models.
- Hierarchical Consensus Models in 5G will allow efficiently managing a large number of interactions in a highly heterogeneous network, for use cases such as:
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
A blockchain-enabled network and application service mesh network (3200) architecture including a network service mesh network (3300) including network service domains (3304) configured to communicate with each other, each including network service endpoints (3316) and a network service manager (3312) to broadcast the availability of the network service endpoints (3310). The architecture further includes an application service mesh network (3200) that includes applications configured to communicate with each other and a network service domain (3304). Smart contracts (5114) including network slicing information from the network service mesh network (3300) and the application service mesh network (3200) are recorded to a blockchain network.
Description
SERVICE MESHES AND SMART CONTRACTS FOR ZERO-TRUST SYSTEMS
Field of the Invention
[0001] The present invention relates to systems and methods for improving the linking smart contracts in transactions on a blockchain network.
Background
[0002] Blockchain is a distributed and public ledger which maintains records of all the transactions. A blockchain network is a truly peer-to-peer network and it does not require a trusted central authority or intermediaries to authenticate or to settle the transactions or to control the network infrastructure. Users can interact and transact with the blockchain networks through Externally Owned Account (EOAs), which are owned and controlled by the users. Each EOA has a balance (in certain units of a Cryptocurrency associated with the Blockchain network) associated with it. EOAs do not have any associated code. All transactions on a blockchain network are initiated by EOAs. These accounts can send transactions to other EOAs or contract accounts. Another type of accounts support by second generation programmable Blockchain platforms are the Contract Accounts. A Contract Account is created and owned by an EOA and is controlled by the associated contract code which is stored with the account. The contract code execution is triggered by transactions sent by EOAs or messages sent by other contracts. [0003] Blockchain networks can either be public or private. Public blockchain networks are free and open to all and any user can create an account and participate in the consensus mechanism on a public blockchain and view all the transactions on the network. Private blockchain networks are usually controlled and operated by a single organization and the transactions can be viewed only by the users within the organization. Public blockchain networks are usually unpermissioned or permissionless, as any node can participate in consensus process. Some public blockchain networks adopt a permissioned model where the consensus process is controlled by a pre-selected set of nodes. Private blockchain networks usually adopt the permissioned model. While public blockchain networks can be considered as fully decentralized, private blockchain networks are partially decentralized.
[0004] Organizations can have multiple private blockchain networks where each network is dedicated to a specific use case or department or business vertical. The blockchain networks within an organization may be created either using the same blockchain platform or technology or with different platforms or technologies.
[0005] On each blockchain network, a user can create multiple Externally Owned Accounts (EOAs). Each Externally Owned Account (EOA) has a public-private keypair associated with it. The account address is derived from the public key. When a new EOA is created, a keyfile is created which has the public and private keys associated with the account. The private key is encrypted with the password which is provided while creating the account. For sending transactions to other accounts, the private key and the account password are required.
[0006] This background information is provided to reveal information believed by the applicant to be of possible relevance to the present invention. No admission is necessarily intended, nor should be construed, that any of the preceding information constitutes prior art against the present invention.
Summary of the Invention
[0007] With the above in mind, embodiments of the present invention are directed to a system and associated methods for exchange of information, value or tokens within and between blockchain networks and the real physical world.
[0008] In some embodiments, the systems, apparatus and methods allow creation and deployment of scalable blockchain applications that rely on a large number of smart contracts that interact with each other through the use of either a cloud-based billboard architecture or a blockchain-based billboard architecture. This architecture allows extension of existing blockchain applications to deploy smart contracts that use global shared variables (within languages, such a Solidity) to exchange information with each other. The billboard architecture allows the integration of scalable information exchange between the real-world (e.g., triggers such as loan payments or sales of products) and the systems of smart contracts and oracles, seamlessly and efficiently. Several familiar programming models such as push/pull, publish/subscribe and consumer/producer may be easily supported for production deployment.
[0009] Decentralized blockchain applications and smart contracts in second and third generation blockchain platforms such as Ethereum, Hyperledger, Neo, Lisk and
EOS that rely on a large number of linked smart contracts interacting with each other can benefit from the proposed Bulletin Board Messaging Framework (BBMF) and the Global
Variable Name System (GVNS) technologies. In current implementations of applications with linked smart contracts, one smart contract can send a transaction to another contract or reference public state variables of other contracts. However, such calls and variable references must be coded in the smart contract and the contract code once deployed
cannot be changed. If one contract in a system of linked contracts must be changed then it would need re-deployment of all the other linked contracts as the code has to be changed. BBMF and GVNS technologies allow the seamless integration of scalable information exchange between the real-world and the systems of smart contracts and oracles, seamlessly and efficiently. Further, legacy blockchain-based code can be seamlessly upgraded and functionality modified through change in the BBMF framework through new mapping and distribution from older public state variables to new or redefined ones.
[0010] In some embodiments, the method and systems may further comprise fintech and enterprise applications, including but not limited retail payments, loyalty rewards and peer-to-peer lending application (referred as nCash mobile application) and an associated platform (referred as nCash Network) that provide the following features:
• Scalable blockchain architecture that links to the real-world: Decentralized applications and systems that are based on a very large number of interacting smart contracts that are coupled with and responsive to real world triggers and events, using a novel billboard-based information and value distribution system.
• Secure Blockchain Payments: The platform is built on second generation programmable Blockchain network (such as Ethereum) and allows individuals to securely send and receive payments.
• Pay At Merchant Stores: The nCash application allows users to spend crypto or fiat currencies managed by the platform at affiliated merchant stores.
• Get Change in Tokens: Users no longer have to deal with the inconvenience of receiving loose change back when making purchases, rather they can receive the change into their mobile application wallet.
• Loyalty Rewards & Offers: Users can get exclusive loyalty rewards, discount offers and cashbacks by paying with nCash app at affiliated merchant stores.
• Supports Multiple Currencies: The nCash mobile application wallet is capable of managing multiple layers of currencies (fiat currency, cryptocurrency and ERC-20 tokens). Users can buy the native tokens named nCash Coins (NCC) by paying with credit or debit card, ACH bank transfer, or any of the supported cryptocurrencies (including Bitcoin, Ether, Litecoin, and more).
• ERC20 Token: nCash coins (NCC) are based on the ERC-20 token standard. NCC tokens can be purchased with any of the supported fiat or crypto currencies in the nCash app.
• Chat & Transact with Contacts: With nCash users can chat and send payments, or request payments from their contacts.
• Borrow & Lend Coins: nCash application includes a lending marketplace and supports borrowing and lending of nCash coins.
• Multiple Account Types: nCash application supports customer, merchant admin and merchant operator account types.
[0011] Additionally, embodiments of the present invention are directed to a method of exchanging value across a blockchain network comprising receiving a first transaction smart contract, that may be a transaction, comprising a transaction amount global variable name request and a transaction amount, recording the first transaction to a second transaction smart contract on a first blockchain network, and registering the first transaction amount global variable name to a global variable name system, defining a transaction amount global variable. The method further comprises defining a value of the transaction amount global variable responsive to the transaction amount, receiving a second transaction smart contract, which may also be a financial transaction, comprising a second transaction global variable name request and a second transaction amount, and registering the second transaction global variable name request to the global variable name system, defining a second transaction global variable. The method further comprises defining a value of the second transaction global variable responsive to the second transaction amount, receiving a transaction notification comprising the second transaction global variable name and a transaction value, recording the transaction notification to the second smart contract, and updating the value of the second transaction global variable responsive to the transaction value.
[0012] In some embodiments, updating the value of the second transaction global variable may comprise publishing the updated value of the second transaction global variable to a first managed topic on a first messaging server and transmitting the content published to the managed topic to a first subscriber. The receipt of the content published to the first managed topic by the first subscriber may initiate a smart contract transaction for a first smart contract, the first smart contract being recorded on a first blockchain network.
[0013] Registering the transaction amount global variable, registering the second transaction global variable, and registering the registering the second transaction global variable each comprise performing a global variable registration process may comprise receiving a request for to register a global variable name at a global variable name registrar from a user, defining a new global variable, defining an owner for the new global
variable at a global variable name registry, defining a resolver for the new global variable at the global variable name registry, and defining a value of the new global variable. Additionally, the method may further comprise performing an updating procedure to update the value of the new global variable, the updating procedure comprising receiving a trigger generated by a smart contract data source on a first messaging server, the trigger comprising an updated value of the new global variable, publishing the updated value comprised by the trigger to a first managed topic associated with the new global variable on the first messaging server, and transmitting the updated value comprised by the trigger that is published to the managed topic to a first subscriber. Receipt of the content published to the first managed topic by the first subscriber may initiate a smart contract transaction for a first smart contract, the first smart contract being recorded on the first blockchain network.
[0014] In some embodiments, the method may further comprise receiving a collateral input and recording the collateral input to a collateral smart contract on the first blockchain network. The collateral input may be a collateral token generated by receiving a tangible asset collateral deposit, generating a collateral token associated with the tangible asset collateral deposit, and transmitting the collateral token. The tangible asset may be received by a third party and the collateral token may be generated by the third party. In some embodiments, the method may further comprise receiving a repayment notification, recording the repayment notification to the second transaction smart contract, updating the value of the second transaction global variable, and recording a collateral release to the collateral smart contract. In some embodiments, the method may further comprise receiving a default notification, recording the default notification to the second transaction smart contract, updating the value of the second transaction global variable, and recording a collateral release to the collateral smart contract directed to the second transaction global variable. The collateral input may comprise at least one of cryptocurrency or a collateral token.
[0015] In some embodiments, the method may further comprise receiving an installation payment, recording an installation payment notification to the second transaction smart contract, updating the second transaction global variable responsive to a value of the installation payment, and transferring at least a portion of the value of the installation payment to an entity associated with the second transaction global variable. [0016] In some embodiments, the first transaction smart contract may further comprise a loan duration and a loan interest rate, collectively defining borrower conditions, the method further comprising registering a loan duration global variable name
to the global variable name system, defining a loan duration global variable, defining a value of the loan duration global variable responsive to the transaction amount, registering a loan interest rate global variable name to the global variable name system, defining a loan interest rate global variable, and defining a value of the loan interest rate global variable responsive to the loan interest rate. The method may further comprise receiving a plurality of lending offers from a plurality of lenders, each lending offer comprising an amount to lend, a loan duration, and expected returns, collectively defining lending pool conditions, recording the plurality of lending offers, defining a lending pool, to a second transaction smart contract on the first blockchain network, the values of the lending offers of the plurality of lending offers defining lending pool conditions, determining if the borrower conditions match the lending pool conditions, matching a lending offer from the second transaction smart contract to the first transaction, recording a borrower smart contract between the borrower and the second transaction smart contract, and recording a lender smart contract between the lender associated with the matched lending offer and the second transaction smart contract. Additionally, the method may further comprise receiving multiple pluralities of lending offers from a plurality of lenders, each lending offer comprising an amount to lend, a loan duration, and expected returns, recording each plurality of lending offers, defining a lending pool, to a second transaction smart contract on the first blockchain network, the values of the lending offers of the plurality of lending offers defining lending pool conditions, recording a plurality of second transaction smart contracts to a pool of pools smart contract on the first blockchain network, determining if the borrower conditions match the lending pool conditions of any of the plurality of second transaction smart contracts comprised by the pool of pools smart contract, matching a lending offer from the pool of pools smart contract to the first transaction, recording a borrower smart contract between the borrower and the pool of pools smart contract, recording a pool-to-pool smart contract between the pool of pools smart contract and the second transaction smart contract, and recording a lender smart contract between the lender associated with the matched lending offer and the second transaction smart contract.
[0017] In some embodiments, the method may further comprise receiving borrower identity information associated with a borrower, receiving a borrower credit rating, and recording the borrower credit rating to a credit rating and reputation smart contract on the first blockchain network.
[0018] Additional embodiments of the inventions may be directed to a system for exchanging value across a blockchain network comprising a processor, a data store
positioned in communication with the processor, and a network communication device positioned in communication with each of the processor, the data store, and a network. The network communication device may be operable to receive a first transaction smart contract comprising a transaction amount global variable name request and a transaction amount. The processor may be operable to record the first transaction to a second transaction smart contract on a first blockchain network and register the first transaction amount global variable name to a global variable name system, defining a transaction amount global variable. Additionally, the network communication device may be operable to receive a second transaction smart contract comprising a second transaction global variable name request and a second transaction amount. Furthermore, the processor may be operable to register the second transaction global variable name request to the global variable name system, defining a second transaction global variable. The network communication device may be operable to receive a transaction notification comprising the second transaction global variable name and a transaction value. The processor may be operable to record the transaction notification to the second transaction smart contract and update a value of the second transaction global variable responsive to the transaction value.
[0019] Embodiments of the invention may also be directed to a blockchain-enabled network and application service mesh network architecture comprising a network service mesh network comprising a plurality of network service domains configured to communicate with each other, each network service domain comprising a plurality of network service endpoints configured to communicate with a network service client and a network service manager configured to broadcast the availability of the plurality of network service endpoints to network service clients. The architecture may further comprise an application service mesh network positioned in communication with the network service mesh network, the application service mesh network comprising a plurality of applications configured to communicate with each other and a network service domain of the plurality of network service domains. A plurality of smart contracts comprising network slicing information from the network service mesh network and the application service mesh network are recorded to a blockchain network.
[0020] In some embodiments, the network service mesh network may further comprise a global variable name system comprising a plurality of registered global variables and a bulletin board server configured to update information about the plurality of registered global variables responsive to messages received from the plurality of applications by the bulletin board server. The plurality of smart contracts may comprise
registered global variables. The plurality of smart contracts may be configured to be updated responsive to changes in registered global variables comprised thereby.
[0021] In some embodiments, the bulletin board server may comprise a plurality of topics, each topic comprising a registered global variable, and the topics of the plurality of topics may be configured to be subscribed to by the plurality of applications, such that information regarding updates to the registered global variable comprised by the topic is sent to applications that subscribe to the topic. In further embodiments, malicious traffic coming from an application may be identified by comparing traffic coming therefrom to a smart contract associated with an application, and the bulletin board server is configured to perform a mitigation action responsive to the malicious traffic. In yet further embodiments, the mitigation action may comprise at least one of advertising the attach through the global variable name system, isolating the affected application, and migrating tasks to be performed by the application to another application of the plurality of applications.
[0022] In some embodiments, a first plurality of smart contracts comprising a first set of network slicing information from the network service mesh network may be recorded to a first blockchain network and a second plurality of smart contracts comprising a second set of network slicing information from the application service mesh network may be recorded to a second blockchain network. In further embodiments, the architecture may further comprise a global variable name system comprising a plurality of registered global variables and a bulletin board server configured to update information about the plurality of registered global variables responsive to messages received from users by the bulletin board server. The first and second pluralities of smart contracts may comprise registered global variables the first and second pluralities of smart contracts may be configured to be updated responsive to changes in registered global variables comprised thereby.
[0023] In some embodiments, the plurality of applications may comprise at least one of a containerized network function, a virtual network function, a worker node, a server, a container, a pod, and a virtual machine. In further embodiments, at least a subset of the plurality of network service domains may be managed by a Kubernetes installation.
Brief Description of the Drawings
[0024] FIG. 1 is a schematic diagram of a retail payments, loyalty rewards and peer-to-peer lending system that uses smart contracts and blockchain.
[0025] FIG. 2 is an illustration of a process for retail payments where a customer pays in cash at a merchant kiosk/application/point of sale application or hardware device that is aware of the nCash platform, and instead of receiving loose change back receives digital tokens in the nCash mobile application wallet, according to an embodiment of the invention.
[0026] FIG. 3 is an illustration of a process for retail payments where a customer pays in cash and instead of receiving loose change back receives digital tokens from a merchant account in the nCash mobile application, according to an embodiment of the invention.
[0027] FIG. 4 is an illustration of the components of the nCash mobile application wallet, according to an embodiment of the invention.
[0028] FIG. 5 is an illustration a process for QR-code based payment request and authorization, according to an embodiment of the invention.
[0029] FIG. 6 is an illustration of a process for buying coins with credit or debit card, according to an embodiment of the invention.
[0030] FIG. 7 is an illustration of a process for buying coins with ACH Bank Transfer, according to an embodiment of the invention.
[0031] FIG. 8 is an illustration of a process for buying coins with Cryptocurrencies, according to an embodiment of the invention.
[0032] FIG. 9 is an illustration a process for withdrawing coins to a linked bank account, according to an embodiment of the invention.
[0033] FIG. 10 is an illustration of the smart contracts involved in the nCash retail payments, loyalty rewards and peer-to-peer lending platform, according to an embodiment of the invention.
[0034] FIG. 11 is an illustration of a process for peer-to-peer lending, according to an embodiment of the invention.
[0035] FIG. 12 is a schematic diagram of the blockchain-based peer-to-peer lending system, according to an embodiment of the invention.
[0036] FIG. 13 is an illustration the multi-signature collateral contract used by the peer-to-peer lending system, according to an embodiment of the invention.
[0037] FIG. 14 is an illustration of a process for chaining of loans, according to an embodiment of the invention.
[0038] FIG. 15 is an illustration of a process for lending with cryptocurrency or tokens as collateral where the borrower successfully repays the loan, according to an embodiment of the invention.
[0039] FIG. 16 is an illustration of a process for lending with cryptocurrency or tokens as collateral where the borrower fails to repay the loan, according to an embodiment of the invention.
[0040] FIG. 17 is an illustration of a process for lending with physical assets as collateral, according to an embodiment of the invention.
[0041] FIG. 18 is an illustration of the transaction fee involved for buying and selling of coins, according to an embodiment of the invention.
[0042] FIG. 19 is an illustration of the smart contracts related to the lending platform and the interactions of borrowers and lenders with the smart contracts, according to an embodiment of the invention.
[0043] FIG. 20 is an illustration of a process for issuing cashback and discounts using smart contracts, according to an embodiment of the invention.
[0044] FIG. 21 is an illustration of a peer-to-pool-to-peer (P2P2P) lending model, according to an embodiment of the invention.
[0045] FIG. 22 is an illustration of a lending pool generator for generating lending pool smart contracts, according to an embodiment of the invention.
[0046] FIG. 23 is an illustration of a matching engine for matching borrowers to lending pools, according to an embodiment of the invention.
[0047] FIG. 24 is an illustration of feeding external data to lending pool contracts using an oracle, according to an embodiment of the invention.
[0048] FIG. 25 is an illustration of channels and triggers for lending pools, according to an embodiment of the invention.
[0049] FIG. 26 is an illustration of smart contracts involved in a lending pool, according to an embodiment of the invention.
[0050] FIG. 27 is an illustration of a pool-of-pools comprised of multiple lending pools, according to an embodiment of the invention.
[0051] FIG. 28 is an illustration of a lending pool smart contract structure and transactions, according to an embodiment of the invention.
[0052] FIG. 29 is an exemplary classification of lending pools based on their risk and returns, according to an embodiment of the invention.
[0053] FIG. 30 is an illustration of an alliance of merchants with interoperable loyalty points, according to an embodiment of the invention.
[0054] FIG. 31 is an illustration of a distributed messaging framework called Bulletin Board Messaging Framework (BBMF) according to an embodiment of the invention.
[0055] FIG. 32 is an illustration of consumer/subscriber actions supported in the publish-subscribe messaging framework illustrated in FIG. 31.
[0056] FIG. 33 is an illustration of a smart contract data source that uses an external publisher client to publish messages to the publish-subscribe messaging framework, according to an embodiment of the invention.
[0057] FIG. 34 is an illustration of a smart contract data source that uses an integrated publisher client to publish messages to the publish-subscribe messaging framework, according to an embodiment of the invention.
[0058] FIG. 35 is an illustration of the message format for the publish-subscribe messaging framework, according to an embodiment of the invention.
[0059] FIG. 36 is an illustration of a global variable name system being updated by a consumer of the publish-subscribe messaging framework, according to an embodiment of the invention.
[0060] FIG. 37 is an illustration of the architecture of a global variable name system, according to an embodiment of the invention.
[0061] FIG. 38 is an illustration of a blockchain checkpointing approach in the publish-subscribe messaging framework, according to an embodiment of the invention. [0062] FIG. 39 is an illustration of global variable sharing across smart contracts, according to an embodiment of the invention.
[0063] FIG. 40 is an exemplary implementation of a Bulletin Board Publisher/Producer client and Consumer/Subscriber client, according to an embodiment of the invention.
[0064] FIG. 41 is an exemplary interface of the nCash mobile application, according to an embodiment of the invention.
[0065] FIG. 42 is an exemplary interface of the nCash mobile application showing peer-to-peer lending options, according to an embodiment of the invention.
[0066] FIG. 43 is an exemplary interface of the nCash mobile application showing different types of transactions, according to an embodiment of the invention.
[0067] FIG. 44 is an exemplary interface of the nCash mobile application showing chats and payments interface, according to an embodiment of the invention.
[0068] FIG. 45 is an illustration of the nCash mobile application features for different types of accounts, according to an embodiment of the invention.
[0069] FIG. 46 is an illustration of the evolution of Network Function Virtualization from virtual machines to containers.
[0070] FIG. 47 is an illustration of the Kubernetes architecture.
[0071] FIG. 48 is an illustration of the architecture of an application service mesh.
[0072] FIG. 49 is an illustration of the architecture of a network service mesh.
[0073] FIG. 50 is an illustration of an Application Service Mesh over a Network Service Mesh, according to an embodiment of the invention.
[0074] FIG. 51 is an illustration of a Blockchain-Secured Service Mesh, according to an embodiment of the invention.
[0075] FIG. 52 is an illustration of the process for Logging Traffic on Blockchain through Bulletin Board Messaging Framework (BBMF) and Global Variable Name System (GVNS), according to an embodiment of the invention.
[0076] FIG. 53 is an illustration of the Smart Contracts involved in the Blockchain- Secured Service Mesh, according to an embodiment of the invention.
[0077] FIG. 54 is an illustration of the steps for detecting and mitigating attacks (such as DDoS) with the Blockchain-Secured Service Mesh, according to an embodiment of the invention.
[0078] FIG. 55 is an illustration of the challenges and requirements for Containerized Network Functions (CNFs) at different layers, according to an embodiment of the invention.
[0079] FIG. 56 is an illustration of the multi-layer protection approach using a Blockchain-Secured Application Service Mesh and Blockchain-Secured Network Service Mesh, according to an embodiment of the invention.
[0080] FIG. 57 is an illustration of the multi-layer protection approach using different blockchains at different layers, according to an embodiment of the invention. [0081] FIG. 58 is an illustration of the super-chain and sub-chains in multi-layer protection approach, according to an embodiment of the invention.
[0082] FIG. 59 is an illustration of BlockGrid architecture for multi-layer protection, according to an embodiment of the invention.
[0083] FIG. 60 is an illustration of relationships between blocks on different blockchains within the BlockGrid architecture, according to an embodiment of the invention.
[0084] FIG. 61 is an illustration of Blockchain Identity & Access Management platform, according to an embodiment of the invention.
[0085] FIG. 62 is an illustration of the interactions between the B-IAM system and other blockchain networks and decentralized applications, according to an embodiment of the invention.
[0086] FIG. 63 is an illustration of Blockchain-Enabled Network & Application Service Mesh (BENASM), according to an embodiment of the invention.
[0087] FIG. 64 is an illustration of Blockchain-Enabled Network & Application Service Mesh with Identity (BENASMI), according to an embodiment of the invention. [0088] FIG. 65 is an illustration of cross-cluster/cross-domain connectivity, identity and observability with Blockchain-Enabled Network & Application Service Mesh with Identity (BENASMI), according to an embodiment of the invention.
[0089] FIG. 66 is an illustration of a microservices architecture, according to an embodiment of the invention.
[0090] FIG. 67 is an illustration of dynamic allocation of resources in 5G using virtualization and containerization, according to an embodiment of the invention.
[0091] FIG. 68 is an illustration of network slice coins, according to an embodiment of the invention.
[0092] FIG. 69 is an illustration network slice management using blockchain, according to an embodiment of the invention.
[0093] FIG. 70 is an illustration of hierarchical consensus models in 5G, according to an embodiment of the invention.
Detailed Description of the Invention
[0094] The present invention will now be described more fully hereinafter with reference to the accompanying drawings, in which preferred embodiments of the invention are shown. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art. Those of ordinary skill in the art realize that the following descriptions of the embodiments of the present invention are illustrative and are not intended to be limiting in any way. Other embodiments of the present invention will readily suggest themselves to such skilled persons having the benefit of this disclosure. Like numbers refer to like elements throughout.
[0095] Although the following detailed description contains many specifics for the purposes of illustration, anyone of ordinary skill in the art will appreciate that many variations and alterations to the following details are within the scope of the invention. Accordingly, the following embodiments of the invention are set forth without any loss of generality to, and without imposing limitations upon, the claimed invention.
[0096] In this detailed description of the present invention, a person skilled in the art should note that directional terms, such as “above,” “below,” “upper,” “lower,” and other like terms are used for the convenience of the reader in reference to the drawings. Also, a person skilled in the art should notice this description may contain other terminology to convey position, orientation, and direction without departing from the principles of the present invention.
[0097] Furthermore, in this detailed description, a person skilled in the art should note that quantitative qualifying terms such as “generally,” “substantially,” “mostly,” and other terms are used, in general, to mean that the referred to object, characteristic, or quality constitutes a majority of the subject of the reference. The meaning of any of these terms is dependent upon the context within which it is used, and the meaning may be expressly modified.
[0098] Referring now to FIG. 1 a schematic diagram of a retail payments, loyalty rewards and peer-to-peer lending system that uses smart contracts and blockchain, is described in more detail. A user 100 and a merchant 102 may complete a transaction through use of an application and presentation layer 104. The application and presentation layer 104 may comprise a web interface 106 and/or a mobile application
108. Elements of the application and presentation layer 104 may be the client-facing element of a platform/application services layer 110. The platform/application services layer 110 may comprise security features 112, such as a user identity and access management system 114. The platform/application services layer 110 may further comprise integration services 116, such as, for example, a messaging service 118 or a connector service for applications, cloud services, and token exchanges 120. The platform/application services layer 110 may further comprise configuration management features 122. The configuration management features 122 may include an nCash portal
124, an incentives management system 126, and a license manager 128. The platform/application services layer 110 may further comprise accounting and transaction services 130, such as a change management framework 132, a token framework 469, an incentives disbursement framework 136, a lending framework 138, and an nCash wallet
140. The platform/application services layer 110 may further comprise data management and analytics services 142, such as analytics and reporting systems 144, an incentives bidding system 146, a loan matching system 148, a recommendation system 150, and an advertisement and promotions system 152. The platform/application services layer
110 may function on an infrastructure layer 154 that may comprise one or more of blockchain networks 156, decentralized storage platforms 158, decentralized messaging
platforms 160, or cloud infrastructure 162, such as cloud computational resources, cloud storage resources, or cloud networking resources.
[0099] Referring now to FIG. 2 a process flow for retail payments where a customer pays in cash and instead of receiving loose change back, receives the change as digital tokens (nCash coins - “NCC”) in the nCash mobile application, is described in more detail. Customer 200 pays for the items purchased or rented at a store in cash at step 204. Customer 200 opens the nCash app and displays a barcode of the customer's nCash account number at step 206. The merchant kiosk/application/point of sale application or hardware device that is aware of the nCash platform 202 scans the barcode and an entry is added in the ledger to transfer the change to the nCash account at step 208. At some periodic interval, for example, at the end of the day, all the transactions to credit the change to nCash accounts are processed by the payment system. Customer 200 receives the change back in the nCash App at step 210.
[0100] Referring now to FIG. 3 a process flow for retail payments where a customer pays in cash and instead of receiving loose change back receives digital tokens from a merchant account in the nCash mobile application, is described in more detail. Customer 220 pays for the items purchased or rented at a store in cash at step 224. Customer 220 opens the nCash app and displays a QR code at step 226. The merchant/PoS agent 222 that has a mobile/tablet device with nCash mobile application installed scans the QR code and enters the change amount and transfers the amount instantly from the merchant administrator or operator account at step 228. Every PoS agent 222 has a Merchant nCash app to which some fixed amount is loaded by the store daily to pay as change. Customer 220 receives the change back in the nCash App at step 230.
[0101] Referring now to FIG. 4 components of an nCash mobile application wallet 250 are described in more detail. The nCash wallet 250 may comprise a Fiat currency wallet 252, a cryptocurrency wallet 258, a coupons and voucher management system 254, and ERC-20 token wallet 260, Escrow accounts 256, and prepaid credit accounts 262. For making retail payments, a portion or prepaid deposit in fiat or cryptocurrency wallets 252, 258 can be considered. The wallet balance of one or both of the fiat and cryptocurrency wallets 252, 258 may be applied to Escrow 256 as well where the payment sent by a customer to a merchant is held in an Escrow account and released when an order is fulfilled.
[0102] Referring now to FIG. 5 a process flow for QR-code based payment request and authorization, is described in more detail. Customer 302 uses nCash mobile application to display a QR code containing customer’s nCash wallet address and a one-
time receive code at step 318. The QR code is scanned by a PoS machine 306 or nCash app with merchant account 308, and a request is sent including the customer address, the receive code, and the amount to the nCash network 300 at step 316. The nCash network 300 validates the receive code and sends a request to customer to authorize the payment at step 312. Customer 302 authorizes the payment from the nCash app at step 314. A payment confirmation is sent to the PoS machine 306 or nCash app with merchant account 308, at step 310.
[0103] Referring now to FIG. 6 a process flow for buying coins with credit or debit card is described in more detail. Customer 350 sends a request to load an amount to nCash wallet using credit or debit card at step 356. The nCash network 352 requests for credit or debit card details of customer 350 at step 358. Customer 350 enters credit or debit card information in the nCash mobile application at step 360. The card information is then sent to the fiat payment processor 354 directly without going through the nCash network 352 at step 360. The fiat payment processor 354 validates the card information and generates a token which is then sent to customer’s nCash mobile application at step 362. Customer 350 confirms the payment and sends a request containing the card token and payment amount at step 364. The nCash network 352 sends a request containing the token and the payment amount to charge the card to the fiat payment processor 354 at step 366. The fiat payment processor 354 charges the customer's card for the amount requested and a payment confirmation is sent to the nCash network 352 at step 368. The nCash network 352 mints new coins (digital tokens defined in the nCash Token smart contract) and the token smart contract 370. The nCash network 352 adds these new coins (digital tokens) the customer's nCash wallet account at step 372.
[0104] Referring now to FIG. 7 a process flow for buying coins with ACH Bank Transfer is described in more detail. Customer 400 sends a request to an nCash network 402 to load an amount to nCash wallet using ACH bank transfer at step 406. The nCash network 402 requests a temporary account details from a fiat payment processor 404 at step 408. The fiat payment processor 404 generates a temporary account and sends details about the temporary account to the nCash network 402 at step 410. The nCash network 402 then sends the temporary account details to the customer’s nCash mobile application. Customer 400 sends a payment to the temporary account using ACH bank transfer at step 414. On receiving the payment, the fiat payment processor 404 sends a payment confirmation to nCash network 402 at step 416. The nCash network 402 mints new coins (digital tokens defined in the nCash Token smart contract) and the token smart
contract 418. The nCash network 402 adds these new coins (digital tokens) the customer's nCash wallet account at step 420.
[0105] Referring now to FIG. 8 a process flow for buying coins with Cryptocurrencies is described in more detail. Customer 450 sends a request to an nCash network 452 to load an amount to nCash wallet using cryptocurrency at step 456. The nCash network 452 requests a temporary account details from a crypto payment processor 454 at step 458. The crypto payment processor 454 generates temporary account and sends them to the nCash network 452 at step 460. The nCash network 452 then sends the temporary account details to the customer’s nCash mobile application at step 462. Customer 450 sends a payment to the temporary account using a cryptocurrency wallet at step 470. On receiving the payment, the crypto payment processor 454 sends a payment confirmation to nCash network 452 at step 472. The nCash network 452 mints new coins (digital tokens defined in the nCash Token smart contract) and the token smart contract 480. The nCash network 452 adds these new coins (digital tokens) the customer's nCash wallet account at step 482.
[0106] Referring now to FIG. 9 a process flow for withdrawing coins to a linked bank account is described in more detail. Customer 500 sends a request to a nCash network 502 to withdraw a certain amount of tokens to customer's linked bank account in a bank 506 at step 508. On receiving the withdrawal request the nCash network 502 burns coins equivalent to the withdrawal amount from the customer’s account and updates the token smart contract 510. The nCash network 502 then sends a transfer request to the fiat payment processor 504 at step 512. The withdrawal amount is credited by the fiat payment processor 504 to the customer's linked bank account at the bank 506 at step 514. The fiat payment processor 504 then sends a transfer confirmation to nCash network 502 at step 518. A withdrawal confirmation is then sent to customer 500 at step 520.
[0107] Referring now to FIG. 10 examples of smart contracts involved in the nCash retail payments, loyalty rewards, and peer-to-peer lending platform are described in more detail. The nCash blockchain network 588 is a distributed ledger which maintains records of all the transactions on the nCash network. Users 554 interact and transact with the blockchain network 588 through Externally Owned Account (EOAs) 550, which are owned and controlled by the users. Each EOA 550 has an account address 556, account public- private keys 558 and a balance 560 (in certain units of a Cryptocurrency associated with the Blockchain network) associated with it. EOAs do not have any associated code. EOAs may interact 564 with bank accounts 552 also owned 566 by the user 554 via third party
exchanges operable to exchange cryptocurrencies for fiat currency, which may be deposited in or withdrawn from the bank account 552.
[0108] All transactions on a blockchain network are initiated by EOAs. These accounts can send transactions to other EOAs or contract accounts. Another type of accounts support by second generation programmable Blockchain platforms are the Contract Accounts. Smart contracts 570 contain the contract code which control the associated contract accounts. The smart contracts 570 are deployed on the blockchain network 588. The smart contracts 570 involved in the nCash network are as follows:
[0109] Token Contract 572: Token Contract provides the nCash token definition including token name, symbol, decimal places, token supply, method for token transfer, and method for checking token balance of an account.
[0110] T oken Distribution Contract 580: T oken Distribution Contract defines the token distribution and pricing model and contains methods for purchasing and claiming tokens, and methods for withdrawing token sale proceeds.
[0111] Incentives Contract 574: Incentives Contract defines the incentives and triggers and methods for distributing incentives.
[0112] Bidding Contract 582: Bidding Contract defines the bidding mechanism for allowing merchants to compete, bid, or pay for the right to add incentives.
[0113] Loan Smart Contract 576: Loan Smart Contract is used to enforce loan terms, manage release, repayment or extension of loans.
[0114] Identity Smart Contract 584: Identity Smart Contract is used to link blockchain accounts to real users (borrowers or lenders).
[0115] Credit Rating & Reputation Smart Contract 578: Credit Rating & Reputation Smart Contract is Used to track credit scores and reputation of borrowers.
[0116] Collateral Smart Contract 586: Collateral Smart Contract is used to manage locking up and release of collateral, such as cryptocurrency tokens or physical assets which may be represented in a tokenized form.
[0117] Referring now to FIG. 11 a process flow for peer-to-peer lending is described in more detail. A borrowing peer (borrower) 600 creates a first transaction smart contract in the form of a loan request at step 606. The lending platform 602 advertises the loan requests to the lending peers (lenders) 604 at step 616. The lending platform 602 may acquire a credit rating 612 associated with the borrowing peer 600 and include the credit rating with the request. The lending peers 604 bid for loans by sending second
transaction smart contracts in the form of loan offers to the lending platform 602 at step 620. The borrowing peer 600 selects the best offer and the loan amount is sent to the borrowing peer at step 610. The borrowing peer 600 repays the loan amount plus the interest and lending platform fees to the lending platform 602 at step 608. The lending platform 602 returns the loan amount plus the profit to the lending peer 604 at step 618. The lending platform 602 may issue loyalty points 614 to borrowing peers 600 and lending peers 604 upon successful repayment of loans, to incentivize the borrowing and lending peers 600, 604 to use the lending platform again for borrowing and lending.
[0118] Referring now to FIG. 12 a schematic diagram of the blockchain-based peer-to-peer lending system is described in more detail. The blockchain-based peer-to- peer lending system allows borrowing peers or borrowers 652 to send loan requests to a platform 650 which are advertised to lending peers or lenders 656. Lenders 656 can bid to send a loan at a particular rate and terms, including settlement date, that is enforced by a loan smart contract 668 deployed on a blockchain network 678. The lending platform 650 can co-exist with an electronic payments platform. A Borrowers 652 post loan requests to the platform and rates they can pay and lenders bid for loans with terms and rates. Platform 650 allows borrowers 652 to automatically repay loans from their nCash mobile application wallets (Borrower Crypto wallet) 662 or extend loan for another term if agreed to. Platform 650 can disburse loans in fiat or crypto currencies. When a loan is disbursed, the loan amount is transferred from the Lender Crypto wallet 672 (nCash mobile application wallet of the lender) to the Borrower Crypto wallet 662 (nCash mobile application wallet of the borrower). The interest rate is driven by the market. Higher risk means larger rate. Platform 650 may charge a percentage of the interest rate on every transaction. Borrower Identity Smart Contracts 658 comprised by the platform 650 maintain the identity information of the borrowers 652. Lender Identity Smart Contracts 670 comprised by the platform 650 maintain the identity information of the lenders 656. Borrower Reputation and Credit Rating Smart Contracts 660 comprised by the platform 650 maintain the reputation information of the borrowers 652 and their credit ratings. Collateral Smart Contracts 664 comprised by the platform 650 maintain collateral information for the loans. A reputation system and collaterals for loans makes the lending process more reliable. The lending platform 650 uses smart contracts to create a credit rating and reputation system for borrowers. Each repayment and successful loan adds points to the borrower's credit rating and if a loan is not repaid then points are deducted from the borrower's credit rating. Such payments may be transferred to a cryptocurrency wallet 672 for the lender 656. If a borrower 652 requesting a loan does not repay as per
conditions their credit rating/reputation drops and lenders 656 will charge extremely high rates and higher guarantees for any subsequent loan requests. The amount of loans could be against a collateral account by the borrower 652 or having pledges from guarantor 654 or other peers that they will guarantee a certain portion of loan. The risk score gets lower of a borrower has pledges to support him. If risk score suddenly changes existing lenders get an alert that they can opt for a higher rate or a shorter repayment term. This forces the borrower to borrow wisely to protect against these margin calls. Loans issued through the platform 650 may be secured (backed by collateral) or unsecured. A Matching Engine 666 of the platform 650 matches loan requests to loan offers and connects the borrowers to lenders. The platform matches borrowers to lenders by risk reputation, loan value and interest terms. For secured loans, borrowers 652 or their guarantors 654 may present collateral in the form of Crypto currency Tokens or Tokenized Assets. When Cryptocurrency Tokens are presented as collateral such tokens are transferred by the borrower to a collateral contract where the tokens are held until the loan is not repaid. When the loan is repaid, the tokens are released to the borrower 652. If the loan in not repaid, the tokens are released to the lender 656. Physical assets (such as gold, diamonds, real-estate property) may be tokenized and presented as a collateral. For such cases, a third party may be engaged to verify the physical assets or keep the assets in their possession till the loan is repaid. The lending platform 602 may issue loyalty points 614 to borrowing peers 600 and lending peers 604 upon successful repayment of loans, to incentivize the borrowing and lending peers 600, 604 to use the lending platform again for borrowing and lending.
[0119] Referring now to FIG. 13 the multi-signature collateral contract used by the peer-to-peer lending system shown in FIG. 12 is described in more detail. Collateral tokens are stored in a multi-signature wallet contract 700. Borrower 702, Lender 706, Lending Platform 704 and optional third-parties 708 hold keys to the multisig wallet contract 700. The contract requires M-of-N signatures, typically a majority, (e.g. 2-of-3 or 3-of-5) to release collateral.
[0120] Referring now to FIG. 14 a process flow for the chaining of loans is described in more detail. The lending platform supports chaining loans where a borrowing/lending peer who has a good credit rating can borrow at low interest rates and lend to one or more peers who have low credit rating at higher interest rates. For example, Peer C 752 has good credit rating and sends a loan request 760 and borrows 762 from Peer D 754 at low interest rates. Peer C 752 receives loan requests 758, 766 from Peers A and B 750, 756 who have low credit rating or risk profile, and then send loans 764, 768
to Peers A and B 750, 756, respectively, at higher interest rates. A loan can be partitioned into subloans with different terms. Lenders can fund a portion or fraction of a loan request. Thus a loan could be satisfied with a dozen microloans each at different rates. For example, once a big lender jumps in for 30% of loan, small lenders can jump in to lend at a lower interest rate. A borrower with low risk can float a loan but open only 25% for bid to a high value lenders (such as institutions or banks). The borrower may then open up the loan to the smaller lenders who know the high value lenders will have vetted this borrower. Lending peers can buy a bundle of loans at a particular risk for a price or resell loans. The lending platform allows creating a market for users to buy, pool and resell loans. The lending platform may allow a loan to be written off if certain conditions may be met. For example, if a philanthropist funds a clinic and they treat five hundred patients in a month, then their loans can get a reduced rate, or if a farmer creates two jobs his loan may be forgiven.
[0121 ] Referring now to FIG. 15 a process for lending with cryptocurrency or tokens as collateral where the borrower successfully repays the loan is described in more detail. A Borrower 800 creates a loan request with amount requested and loan terms at step 808. The lending platform 802 creates a loan contract 810 and advertises the loan request to lenders at step 812. A Lender 804 agrees to fund the loan at step 814. Next, the Borrower 800 deposits cryptocurrency or tokens as collateral in a collateral contract 818 at step 816. The Lender 804 funds the loan at step 820. The loan amount is released to the Borrower 800 at step 822. The Borrower 800 pays loan installments to the Lending Platform 802 at steps 824 and 828 which are released to the Lender 804 at steps 826 and 830. When the loan repayment is complete, the Collateral is released to the Borrower 800 at step 832, such release being recorded to the collateral contract 818.
[0122] Referring now to FIG. 16 a process for lending with cryptocurrency or tokens as collateral where the borrower fails to repay the loan, is described in more detail. A Borrower 850 creates a loan request on a lending platform 852 with an amount requested and loan terms at step 858. The lending platform 852 creates a loan contract 860 and advertises the loan request to lenders at step 862. A Lender 854 of N lenders 856 to whom the loan request is advertised agrees to fund the loan at step 864. Next, the Borrower 850 deposits cryptocurrency or tokens as collateral in a collateral contract 868 at step 866. The Lender 854 funds the loan at step 870. The loan amount is released to the borrower at step 872. When the Borrower 850 fails to repay the loan as indicated at step 876, the Collateral is released to the Lender at step 874.
[0123] Referring now to FIG. 17 a process flow for lending with physical assets as collateral, is described in more detail. A Borrower 902 creates a loan request on a lending platform 904 with an amount requested and loan terms at step 858. The lending platform 904 creates a loan contract 910 and advertises the loan request to lenders at step 912. A Lender 906 agrees to fund the loan at step 914. Next, the Borrower 902 transfers physical assets (such as gold, diamonds or title to real-estate property) to a Third Party 900 at step 916. The Third Party 900 tokenizes the assets and transfers the tokens to the borrower at step 918. The Borrower 902 deposits these tokens as collateral to the lending platform 904 in a Collateral Contract 922 at step 920. The Lender 906 funds the loan at step 924. The loan amount is released to Borrower at step 926. The Borrower repays the loan installment to the lending platform 904 at step 931 and the funds are released to the lender 906 at step 930. When the loan repayment is complete the lending platform 904 releases the Collateral (tokens) is released to the Borrower 902 at step 932. Next, the Borrower 902 transfers tokens to the third-party 900 at step 934. The third-party 900 then returns the physical assets to the Borrower 902 at step 936.
[0124] Referring now to FIG. 18 transaction fees involved for buying and selling of nCash coins is described in more detail. nCash coins can be purchased by paying in a fiat currency (such as USD) using credit/debit card 950 or ACH bank transfer 952, or by paying in a cryptocurrency 954 (such as Bitcoin, Ether). There are different transaction fees for buying coins with credit/debit card 960, ACH bank transfer, whether automated through an app 962 or manually 964, or cryptocurrency 970. For transactions between the nCash network 956 (such as sending coins to another user or merchant) does not involve any transaction fee. For selling coins and withdrawing coins to a linked bank account 958, a transaction fee. for automated transactions through an app 866 or manual transactions 968. is involved.
[0125] Referring now to FIG. 19 an illustration of smart contracts related to the lending platform and the interactions of borrowers and lenders with the smart contracts is described in more detail. An Identity Smart Contract 1012 is used to link blockchain accounts to real users, such as an account of a borrower 1000 or a lender 1002. The identity information provided by the borrower 1000 at step 1004 is recorded in the identity smart contract 1012 in original or hashed form. Similarly the identity information provided by the lender 1002 at step 1020 is recorded in the identity smart contract 1012 in original or hashed form. A Credit Rating & Reputation Smart Contract 1014 is used to track credit scores and reputation of a borrower 1000. The credit score of the borrower 1000 is recorded at step 1006 and updated on each new loan request, loan repayment or loan
default. A Collateral Smart Contract 1016 is used to manage locking up and release of collateral, such as cryptocurrency tokens or physical assets which may be represented in a tokenized form. The borrower 1000 deposits the collateral tokens to the collateral smart contract 1016 at step 1008. A Loan Smart Contract 1018 is used to enforce loan terms and manage release, repayment or extension of loans. The information related to the borrower’s 1000 loan requests, loan disbursement received or loan repayment completion is recorded in the loan smart contract 1018. Similarly, the information related to the lender’s 1002 loan offers, loan disbursement completion, or loan repayment received is recorded in the loan smart contract 1018. The smart contracts 1012, 1014, 1016 and 1018 are deployed on the blockchain network 1026.
[0126] Referring now to FIG. 20 an illustration of a process for issuing cashback and discounts using smart contracts, is described in more detail. A customer 1050 makes a transaction to a merchant with coupon code meeting cashback or discount conditions at step 1052. An incentives smart contract 1054 checks cashback or discount rules comprised thereby and triggers a cashback or discount if the transaction meets the cashback or discount criteria at step 1056. When a cashback or discount is triggered, the token contract 1058 is updated and tokens are transferred from the merchant’s account to the customer’s account. The customer 1050 receives a cashback or discount notification at step 1060. The smart contracts 1054 and 1058 are deployed on the blockchain network 1064 at step 1062.
[0127] Referring now to FIG. 21 an illustration of the peer-to-pool-to-peer (P2P2P) lending model, is described in more detail. The lenders 1100, 1102, 1104 contribute to a lenders pool 1108 with conditions. A lender’s condition to lend money may include the amount to lend, the duration of the loans, expected returns, and loan settlement dates. The loans are distributed from the lenders pool 1108 with conditions. Borrowers 1118, 1120, 1122 may submit borrower's requests 1114 from the lenders pool 1108 through a lending platform 1110. Each borrower request may comprise the borrower’s conditions for a loan. A borrower’s condition for borrowing money may include the amount to borrow, the duration of the loan, and an acceptable interest rate.
[0128] A matching engine 1112 in the lending platform 1110 uses smart contracts 1116 to ensure the high level (pool level) and low level (borrower and lender) constraints are satisfied. A borrower’s requests to borrow money are matched automatically to the lenders 1100, 1102, 1104 and lending pool’s 1108 conditions using smart contracts 1116. Each lender pool (such as pool 1108) is represented by a smart contract (such as smart contract 1124) in the lending platform 1110 which controls the pool level behavior and
handles conditions such as different time periods and expected returns for the lenders 1100, 1102, 1104 and substitution of lenders who exit the pool 1108 with new lenders, as some of the lenders to the pool 1108 may have different time periods and they will exit and be substituted by new lenders. Loans are distributed from lender pools 1108 with conditions.
[0129] The peer-to-pool-to-peer (P2P2P) lending model is more efficient than the existing peer-to-peer (P2P) lending models, especially when there are large number of lenders/investors who want to lend loans. Each lender/investor contributes a different amount of money and specifies the minimum interest they would like to receive and the period of their loan amounts. Similarly, the borrowers specify similar terms such as the amount of money to borrow, duration and acceptable rate of interest. In the P2P2P lending model the lender’s money is pooled into one lending pool and then lent out to multiple borrowers, while smart contracts assure payouts to lenders and payments to borrowers, while some lenders exist and some borrowers’ payback. This allows the "pool" of money that is used for lending, while at the lower level smart contracts ensure all lower agreements are kept. Lenders’ and borrowers’ contributions and withdrawals continually occur, while the pool remains active as new borrowers and lenders join and others may leave. A lender may end up lending to N loans and a borrower may end up borrowing from M lenders over a period where only P lenders are active at any time (where M>N and M>P). The smart contracts are thus critical to maintain the integrity of the records. In the P2P2P lending model, the transactions for pools merge lower level transactions between peers inside the blockchain.
[0130] Furthermore, it is contemplated and included within the scope of the invention that a variety of loans may be executed utilizing this systems and other systems disclosed herein. The types of loans requested by borrowers, and offered by lenders, may include larger value loans, such as those typically offered by banks, but may also include smaller value loans, including those for individual consumer transactions (e.g. a routine, daily transaction for the purchase of consumer goods, groceries, etc.) performed at a merchant terminal. Additionally, loan requests may also take the form of other transfers of value aside from fiat currency, such as requests for cryptocurrency, credit towards a future transaction, an exchange of tokens having value, and the like.
[0131] Additionally, while loans comprising amounts to lend are contemplated, other types of financial securities are contemplated and included within the scope of the invention. More specifically, security offers may be received from offerors and comprising offer terms, and security seller requests may be received from sellers and comprising
seller terms. The security offers may be recorded to security offer smart contracts, which may then be recorded to security offer pool smart contract, defining security offer pools, the same as for lending pools. The terms of the security offers may define the security offer pool terms. The terms of the security seller may be compared to the security offer pool terms and, upon determining the security seller terms fall within the security offer pool terms, the security seller request smart contract may be recorded to the security offer pool smart contract.
[0132] Such securities include, but are not limited to, options contracts. In such embodiments, a buyer option may be received and recorded to a buyer option smart contract, which may include at least one offer term which may comprise at least one of a designation of the asset associated with the buyer option smart contract, a quantity of the associated asset, an expiration date, a transaction type (e.g. a call or put, as known in the art), and/or a strike price or range of strike prices for the asset. Such a buyer option smart contract may be recorded to a blockchain network similar to the recordation of lender smart contracts described hereinabove. Similarly, a seller option may be received and recorded to a smart contract may comprise the same fields as the buyer option, with the seller being obligated to either sell the associated asset at the strike price in exchange currency, fiat or crypto, at the strike price on the expiration date for a call, or purchase the associated asset at the strike price using currency, either fiat or crypto, on the expiration date for a put.
[0133] Additionally, security offers may be received and interpreted to determine their type (e.g. loan, offer, etc.) with the determined security offer type being recorded to the associated security offer smart contract. Similarly, security seller requests may be received and have their type determined, the determined security seller type being recorded to the associated security seller smart contract. An indication of the security offer types and the security seller requests may be recorded to the respective associated security offer smart contracts and security seller request smart contracts.
[0134] Referring now to FIG. 22 an illustration of a lending pool generator for generating lending pool smart contracts is described in more detail. Each lender 1200, 1202, 1204 contributes 1206 to a lending pool with conditions including the amount of money to lend, duration of lending and expected returns. Lenders 1200, 1202, 1204 can have different conditions and may contribute to one or more lending pools. A lending pool smart contract generator 1208 is used to generate smart contracts 1210, 1212, 1214 which represent the lending pools.
[0135] Referring now to FIG. 23 an illustration of a matching engine for matching borrowers to lending pools is described in more detail. Each borrower 1250, 1252, 1254, 1256 requests money with conditions including the amount of money to borrow, duration for which money is to be borrowed and acceptable rate of interest. A matching engine 1258 matches the borrowers 1250, 1252, 1254, 1256 to lending pool smart contracts 1260, 1262, 1264 such that the borrower level and pool level conditions are satisfied. A borrower 1250, 1252, 1254, 1256 may be matched to more than one lending pool.
[0136] Referring now to FIG. 24 an illustration of feeding external data to lending pool contracts using an oracle is described in more detail. Lending pool and related smart contracts 1304 are deployed on a blockchain network 1306. An oracle 1302 is used to feed in external or dynamic information (such as exchange rates, market value of collateral) to the lending pool smart contracts. The oracle 1302 may obtain such information from external sources and the web 1300.
[0137] Referring now to FIG. 25 an illustration of channels and triggers for lending pools is described in more detail. Lending pools 1324, 1326, 1328 comprising Lenders 1320 and distributing to Borrowers 1330 can have channels 1332, 1334 between them for transfer of pooled funds between the pools based on external triggers 1322. Moving funds from one pool to another pool may be required when a pool is not performing well and the high-level (pool-level) and low-level (lender and borrower level) constraints are not being satisfied. The P2P2P lending platform may monitor the performance of each lending pool and generate triggers for transfer of funds from one pool to another.
[0138] Referring now to FIG. 26 an illustration of the smart contracts involved in a lending pool is described in more detail. Each lender 1352 is represented by an individual smart contract 1358 in the lending pool 1350. Similarly, each borrower 1354 is represented by an individual smart contract 1360 in the lending pool 1350. The lender smart contracts 1358 link lenders 1352 to the lending pool 1350 via the lending pool contract 1356. The borrower smart contracts 1360 link borrowers 1354 to the pool lending 1350 via the lending pool contract 1356. There is no direct link between the lenders 1352 and borrowers 1354 like traditional smart contracts used in blockchain based peer-to- peer lending solutions.
[0139] In current lending schemes (especially computer-implemented lending schemes or blockchain based peer-to-peer lending schemes), if there are a large number of investors in a lending pool, each specifying an investment amount they would like to invest, the rates they would like to receive in combination with time periods (such as 2.3% over 3 months, or 2.2% over 6 months) and with various exit strategies, and large number
of borrowers specifying various terms and repayment periods and early payoff options, the following problems arise:
[0140] Manual reconciliation is not possible when the number of active and passive investors enter and leave the pool.
[0141] A scalable and secure solution is not possible.
[0142] Abstracting the lenders and borrowers with “linked” smart contracts in a lending pool solves the problems of manual reconciliation and scalability. Additionally, this approach provides the following benefits:
[0143] Borrowers with good credit may borrow at better rates and lend to other borrowers with bad credit with the borrowed money at higher rates.
[0144] A seamless lending environment can be created with options to borrow or lend at certain rates and offer these derivatives for trading as well. [0145] Referring now to FIG. 27 an illustration of pool-of-pools comprised of multiple lending pools, is described in more detail. Multiple lending pools can be clubbed together to create a pool-of-pools. The pool-of-pools approach is beneficial for highly volatile pools in which borrowers and lenders keep entering and exiting and it is difficult to meet the high-level (pool-level) and low-level (lender and borrower level) constraints. Combining multiple pools into a pool-of-pools brings stability to the P2P2P lending platform. A pool-of-pools approach may comprise a plurality of lending pools 1402, 1404, 1406, 1408 that each interact with a pool of pools 1400. Each of the plurality of lending pools 1402, 1404, 1406, 1408 may comprise borrower smart contracts with respective borrowers 1412, 1420, 1424, 1428 and lender smart contracts with respective lenders 1410, 1418, 1422, 1426. Additionally, some borrowers 1416 and lenders 1414 may interact directly with the pool of pools 1400.
[0146] Referring now to FIG. 28 an illustration of lending pool smart contract structures and transactions is described in more detail. A contract owner (or the lending platform) 1522 creates and owns 1520 a lending pool contract 1500. The lending pool contract 1500 is created from an externally owned account (EOA) 1518 of the contract owner (or the lending platform) 1522 when a create contract transaction 1510 is performed by the EOA 1518 thereby creating 1502 the lending pool contract 1500. Lenders 1524 use their EOAs 1528 to send transactions 1532 to the lending pool contract 1500. A lender 1524 can join 1506 a lending pool by sending a joinPool transaction 1514. Borrowers 1526 use their EOAs 1530 to send transactions 1534 to the lending pool contract 1500. A borrower 1526 can repay a loan 1508 taken from the lending pool by sending a repayLoan transaction 1516.
[0147] Referring now to FIG. 29 an exemplary classification of lending pools based on their risks and returns is described in more detail. Lending pools are classified based on their risks and returns. The lending pools with lower risk have lower returns and the lending pools with higher risk have higher returns. The risk level for a lending pool is computed based on the reputation and credit scores of the borrowers and lenders linked to the pool. The pools which lend money to borrowers with high credit scores usually lend at low rates of interest as these loans are considered to be safe. Similarly the pools which lend money to borrowers with low credit scores usually lend at high rates of interest as these loans are considered to be risky. In some embodiments, the loan risk may be categorized as low, medium, and high, and the returns may also be characterized as low, medium and high. This may result in risk-reward categories of low risk-high returns 1600, medium risk-high returns 1602, high risk-high returns 1604, low risk-medium returns 1608, medium risk-medium returns 1618, high risk-medium returns 1620, low risk-low returns 1612, medium risk-low returns 1614, and high risk-low returns 1616. Most lending pools will fall into one of low risk-low returns 1612, low risk-medium returns 1608, medium risk-medium returns 1618, medium risk-high returns 1602, and high risk-high returns 1604.
[0148] Referring now to FIG. 30 an illustration of an alliance of merchants with interoperable loyalty points is described in more detail. Customers 1150 and 1152 make payments 1154 at affiliated merchant stores 1156 using nCash. The merchant payments are processed 1158 by the nCash network 1160. Customer’s receive loyalty points that work at any merchant in the alliance or network or affiliated merchants 1156. These loyalty points are interoperable across all the merchants in the alliance and can be applied towards a discount for the next purchase.
[0149] Referring now to FIG. 31 an illustration of a distributed messaging framework, is described in more detail. The distributed publish-subscribe messaging framework described here is referred to as Bulleting Board Messaging Framework (BBMF) or “Bulletin Board”. The Bulletin Board Server 1678 manages Topics 1680, 1682. Bulletin Board Clients can be Publisher/Producer Clients 1670, 1672 or
Consumer/Subscriber Clients 1688, 1690. The Publisher/Producer Clients 1670, 1672 publish data or messages to Topics 1680, 1682. Data pushed to the topics 1680, 1682 from the Publisher/Producer Clients 1670, 1672 may originate from data sources 1650, which may comprise smart contracts 1652, oracles 1654, logs 1656, sensors 1658, records 1660, databases 1662, streams 1664, and events 1668. Consumer/Subscriber Clients 1688, 1690 consume data from the Topics 1680, 1682, receiving messages 1684,
1686 from the Bulletin Board Server 1678. Bulletin Board Server 1678 supports a plug-in Message Storage Backend 1692 to store and replay messages. The Message Storage Backend 1692 persists the messages using two options: (1) a Cloud Database or Cloud Storage 1694, (2) Decentralized Storage Platform (such as IPFS or Swarm) 1698 with regular checkpointing of message hashes to a Blockchain 1696. Messages in the Bulletin Board can be either Ephemeral or Persistent. Ephemeral messages are not stored by the Message Storage Backend. For Persistent messages Time-to-Live (TTL) can be specified. The Producers and Consumers support both Cloud and Blockchain protocols such as HTTP-REST or Web3 for Ethereum. This allows existing Smart Contracts (such as Solidity smart contracts) to publish and consume data to/from the Bulletin board, and existing Oracles to feed-in data from the web to the smart contracts through the Bulletin board. A smart contract implemented in the Solidity language, for example, is a data source which generates notifications in the form of Solidity events which are published to the Bulletin Board server by a Publisher Client. Solidity smart contracts require an external Publisher Client to publish messages to the Bulletin board. Extensions to smart contract languages such as Solidity may be implemented to support Bulletin board APIs to publish data without the need for an external publisher client. These extensions and/or stubs can be through use of pragma directives that may be pre-processed by pre processors to generate suitable code for implementing the interfaces to the bulletin board, or they could involve extensions to the language itself to support global variable names. Topics are managed in-memory with regular snapshots on the disk which are later stored in the Message Storage Backend 1692. A compaction process is defined for moving the messages in the snapshots to the Message Storage Backend 1692 (Cloud and/or Blockchain). The Bulletin Board itself may be implemented in part through use of a cloud- based service and/or a blockchain and may also include hardware accelerators (such as ASICs or FPGAs) and graphical processing units (GPUs) to provide this high throughput low latency service. Additional redundancy, authorization, and encryption layers may also be provided in hardware and software using known techniques for cloud and internet networks to secure the messages and values stored from system failures or hacking attacks.
[0150] The BBMF is designed for high throughput and low latency messaging. The Bulletin Board server 1678 can be deployed in a cloud computing environment and scaled either vertically or horizontally based on demand. In vertical scaling larger virtual machine instance size (in terms of compute capacity, memory and storage) is used for the Bulletin Board server. In horizontal scaling multiple instances of the Bulletin Board server are
launched with each instance managing a subset of the topics managed by the Bulletin Board.
[0151] BBMF supports both push/pull and publish/subscribe data ingestion models and data delivery models. Furthermore, the data delivery may be either at-least once delivery or exactly-once delivery. BBMF can be implemented in hardware and software, using a combination of servers, ASICs/FPGAs and GPUs as part of a cloud-based or a locally configured computing system.
[0152] As Bulletin Board is a distributed messaging framework, a trade-off exists between consistency and availability. This trade-off is explained with the CAP Theorem, which states that under partitioning, a distributed data system can either be consistent or available but not both at the same time. Bulletin Board adopts an eventually consistent model. In an eventually consistent system, after an update operation is performed by a writer, it is eventually seen by all the readers. When a read operation is performed by a consumer, the response might not reflect the results of a recently completed write operation.
[0153] The Bulletin Board messaging framework supports prioritized processing of messages. The priority can be set in the message header field. Various priority classes for messages can be defined and specified in the priority header field. This priority classification of messages is crucial for the Peer-to-Pool-Peer (P2P2P) lending system when a large number of updates have to be propagated to linked smart contracts in the lending system.
[0154] Referring now to FIG. 32 an illustration of the consumer/subscriber actions supported in the publish-subscribe messaging framework are described in more detail. For Consumers or Subscribers 1708 various actions Rules & Triggers 1710 and Actions 1712 can be defined. Rules & Triggers 1712 specify how to filer and select data and trigger actions. The supported actions 1716 include Smart Contract Transaction 1718, Webhook Trigger 1720, Log to External Data Store 1722, Email Notification 1724, SMS Notification 1726, and Mobile Push Notification 1728. An action is performed when a message 1706 matching a rule is received (for example temperature > 60 or ETH price < $500) from the Bulletin Board Server 1700, being related to one of the T opics 1702, 1704 managed by the Bulletin Board Server 1700. The message may be transmitted to the Consumer or Subscriber Client 1708 by any means or method known in the art, including, but not limited to, HTTP/REST applications and WebSocket. The smart contract transaction action is particularly useful for the P2P2P lending system described above where a large number of linked smart contracts (such as smart contracts in a lending
pool) can be executed when a message notifying a change in the lending conditions is received.
[0155] Referring now to FIG. 33 an illustration of a smart contract data source that uses an external publisher client to publish messages to the publish-subscribe messaging framework is described in more detail. A smart contract data source 1800 such as a Solidity smart contract generates notifications or events 1802. A publisher/producer client 1804 watches for the notifications or events generated by the smart contract 1800. When a notification or event is generated, the messages are published 1806 to the topics 1810, 1812 managed by the Bulletin Board 1808. These messages are delivered 1814 to the consumer/subscriber client 1816 which has subscribed to the topics 1810, 1812. The consumer/subscriber client 1816 has a smart contract transaction action configured which sends transactions 1818, 1820 to the linked smart contracts 1822, 1824 on receiving the messages.
[0156] Referring now to FIG. 34 an illustration of a smart contract data source that uses an integrated publisher client to publish messages to the publish-subscribe messaging framework, is described in more detail. A smart contract data source with integrated publisher/producer client 1850 generates notifications or events. The notifications or events are published as messages 1852 to the topics 1856, 1858 managed by the Bulletin Board 1854. These messages are delivered 1860 to the consumer/subscriber client 1862 which has subscribed to the topics 1856, 1858. The consumer/subscriber client 1862 has a smart contract transaction action configured which sends transactions 1864, 1866 to the linked smart contracts 1868, 1870 on receiving the messages.
[0157] Referring now to FIG. 35 an illustration of the message format for the publish-subscribe messaging framework is described in more detail. The Message Type field 1750 defines the type of the message. Supported message types in the Bulletin Board framework are as follows:
[0158] CONNECT: A CONNECT message is sent by a client (producer or consumer) to connect to the server.
[0159] DISCONNECT: A DISCONNECT message is sent by a client to disconnect from the server.
[0160] PUBLISH: Used to publish a new message
[0161] SUBSCRIBE: Used to subscribe to a topic managed by the Bulletin Board
[0162] UNSUBSCRIBE: Used to unsubscribe from a topic
[0163] PINGREQUEST: Used to send a ping request to the server
[0164] PINGRESPONSE: Used to respond to a ping request [0165] DATAREQUEST : Used to request a message or data item [0166] DATARESPONSE: Used to respond to a request for a message or data item.
[0167] The Data Payload field 1752 includes the message as a JSON data payload. The message may be signed by the sender and/or encrypted. The Topics field 1754 includes a list of topics to which the message is published. The Headers field 1756 includes headers such as:
[0168] Sender or receiver identity [0169] Message signature [0170] QoS Level [0171] Priority
[0172] Persistent or Ephemeral message [0173] Additional flags to help in processing of message [0174] The Time-to-Live (TTL) field 1758 is used to specify the validity or life of the message. The Nonce field 1760 is an integer value which can be used to prove that a given amount of work was done in composing the message.
[0175] Referring now to FIG. 36 an illustration of a blockchain checkpointing approach in the publish-subscribe messaging framework, is described in more detail. When using Blockchain and Decentralized Storage Platform (IPFS or Swarm) based Message Storage Backend, the messages 1780 are hashed 1782 and are added to a Merkle T ree 1784. The root hash 1786 of the Merkle T ree 1784 (after every N messages) is recorded on the Blockchain 1788. This ensures messages cannot be tampered with later.
[0176] Referring now to FIG. 37 an illustration of a global variable name system being updated by a consumer of the publish-subscribe messaging framework, is described in more detail. The Global Variable Name System (GVNS) 1916 maintains records of global variables and the owners and resolvers for the global variables. Data sources 1900 such as a smart contract, oracle, log, sensor, record, database, stream or event, produce data or notifications which are sent to a publisher/producer client 1902. The publisher/producer client 1902 publishes the data or notification as a message 1904 to one or more topics 1908, 1910 managed by the Bulletin Board server 1906. The consumer/subscriber client 1914 receives the messages 1912 and updates the value of global variables registered in the GVNS 1916. Smart contracts 1918, 1920, 1922 reference the global variable registered in the GVNS 1916.
[0177] Referring now to FIG. 38 an illustration of the architecture of a global variable name system, is described in more detail. The Global Variable Name System (GVNS) 1950 comprises Registrar 1952, Registry 1954 and Resolver 1956 components. The Registrar 1952 is responsible for registering new variable names, updating the resolver for a variable name, and transferring the ownership of a variable. The Registry 1954 is responsible for recording the owner and resolver of a variable name, and returning the resolver for a variable name. The Resolver 1956 is responsible for resolving a variable name to a value and updating the value of a registered variable. The steps involved in registering a global variable in the GVNS 1950, updating the variable and retrieving the current value of the variable are explained as follows. At step-1 1958 a user 1980 sends a request (through an externally owned account 1978 or a smart contract 1976) to register a new global variable name (for example, ncash. supply) to the Registrar 1952. At step-2 1960, the Registrar 1952 sets the owner and resolver for the variable in the Registry 1954. At step-3 1970, a consumer/subscriber client 1972 or a smart contract 1974 sends a request to update the value of the global variable to the Resolver 1956. At step-4 1962, a smart contract 1966 requests the value of the global variable from the Registry 1954. At step-5 1964, the Registry 1954 retrieves the Resolver 1956 for the variable. At step-6 1968, the Resolver 1956 returns the value of the global variable.
[0178] Referring now to FIG. 39 an illustration of global variable sharing across smart contracts is described in more detail. The Lending Pool smart contract 2004, Lending Request smart contract 2002 and Loan smart contract 2006 are linked smart contracts in a Peer-to-Pool-Peer (P2P2P) lending system that are used in loan making and loan servicing processes. The Lending Request smart contract 2002 is used in the loan making process. Borrowers send lending requests to the lending system and a Lending Request smart contract is created for each lending request. The Lending Pool smart contract 2004 is used to manage a lending pool. When the lending system matches a lending request to a lending pool, a new Loan smart contract 2006 is created. The Loan smart contract 2006 manages the loan servicing aspects of a loan from the time the loan is disbursed until the loan is paid off. The Loan smart contract 2006 captures the loan details such as loan principal, loan interest rate, address of lending pool contract from where the loan is disbursed as state variables. Loan smart contract 2006 also registers global variables 2042 such as for the loan amount repaid ( loanAmountRepaid ) and loan status ( loanStatus ). The Lending Pool smart contract 2004 and Lending Request smart contract 2002 have global variables 2022, 2012 which are registered 2010, 2008 with the Global Variable Name Systems (GVNS) 2000 ( lendingPool_AmountRaised ,
lendingPool_numLenders, !endingRequest_AmountRequested). These global variables are referenced 2032 in the Loan smart contract 2006.
[0179] Each of the smart contracts 2002, 2004 and 2006 have state variables 2014, 2024, 2034, functions 2016, 2026, 2036, modifiers 2018, 2028, 2038, and events 2020, 2030, 2040, which are existing elements/types/constructs in the Solidity smart contracts language. Support for global variables which are shared across multiple smart contracts through GVNS 2000 within Solidity smart contracts language, is added through extensions to the Solidity language specification. Furthermore, extensions are done within the Ethereum Virtual Machine (EVM) which is the runtime environment for smart contracts in Ethereum to add support for global variables shared through GVNS 2000. While Solidity and Ethereum have support for a limited set of global variables that provide information about the blockchain (such as block.coinbase, block.difficulty, block.gaslimit, block.number, block.blockhash, block.timestamp , msg.data , msg.gas , msg. sender, msg.value, tx.gasprice , tx.origin, this.balance, addr.balance), it is not possible for two or more linked smart contracts to share global variables. This additional support for global variables is enabled by the GVNS 2000, extensions to the Solidity language specification and extensions to the Ethereum Virtual Machine (EVM). The global variable support is crucial for linked smart contracts (such as in a P2P2P lending system) to work.
[0180] The BBMF when used in combination with GVNS could provide information to an "analytics engine" as to the number of updates of the global variables and their type, and also to "advertising engines" as to the global variables referenced and their types. [0181] Referring now to FIG. 40 an exemplary implementation of a Bulletin Board Publisher/Producer client and Consumer/Subscriber client is described in more detail. In the Publisher/Producer client implementation an instance of the Bulletin Board client class is created. The connectQ method of the client class is used to establish a connect to the Bulletin Board server by passing the Bulletin Board server address, clientID and client secret. The publish() method of the client class is used to publish a message to the Bulletin Board server. The message object published to the Bulletin Board server contains the list of topics, data payload, headers, time-to-live and nonce fields. In the Consumer/Subscriber Client implementation, subscribeQ method of the client class is used to subscribe to all or selected topics on the Bulletin Board server. A callback function on_message() is defined which is executed every time a new message is delivered. [0182] Referring now to FIG. 41 an exemplary interface of the nCash mobile application is described in more detail. The exemplary interface shows options to buy coins, send coins, receive coins, pay coins at a merchant, sell or withdraw coins, chat
and transact with contacts, view list of transactions, loans and settings options. The customer’s account details such as account number, name and account balance is also shown.
[0183] Referring now to FIG. 42 an exemplary interface of the nCash mobile application showing peer-to-peer lending options is described in more detail. A customer is eligible to request loans after completing the lending profile that includes customer’s financial and education information. Customer can view the nCash credit score from the mobile application. Borrowing peers (borrowers), can create new loan requests, view the status of existing loan requests, view loan offers received from lending peers (lenders) for the loan requests, and repay a loan. Lending peers (lenders) can view open loan requests submitted by all borrowing peers (borrowers) on the network, search for specific loan requests by date range or loan request ID, send loan offers for the loan requests, and release funds for accepted loan offers.
[0184] Referring now to FIG. 43 an exemplary interface of the nCash mobile application showing different types of transactions is described in more detail. The transactions involved are of following types:
[0185] Transaction for buying new coins by paying in fiat currency (such as USD) with credit/debit card or ACH bank transfer
[0186] Transaction for buying new coins by paying in cryptocurrency (such as Bitcoin)
[0187] Transaction for selling coins and withdraw coins to a linked bank account
[0188] T ransaction for transferring coins to another user
[0189] Transaction for a cashback received on availing a cashback offer. [0190] Transaction for coins received on claiming a voucher [0191] Referring now to FIG. 44 an exemplary interface of the nCash mobile application showing chats and payments interface is described in more detail. The chats and transactions interface allows two customers to chat with each other and send or request payments. A payment request received by a user can be approved or declined from the chats and transactions interface itself.
[0192] Referring now to FIG. 45 an illustration of the nCash mobile application features for different types of accounts is depicted.
[0193] Referring now to FIG. 46 an illustration of the evolution of Network Function Virtualization from virtual machines to containers, is described in more detail.
[0194] The development of 5G is being driven by technologies like Virtualization, Cloud native, Containers and Microservices. Network Function Virtualisation (NFV) was created to facilitate and drive virtualization of the telecoms networks. In the recent years, there is evolution of NFV from virtual machines to containers. VNF (Virtual Network Function), implements a virtualized network function on a general-purpose physical server. VNF (Virtual Network Function) is a virtual network function based on NFV (Network Function Virtualization). Virtual Network Functions (VNFs) 3002 deployed in virtual machines are being replaced by Containerized Network Functions or Cloud-Native Network Functions (CNFs) 3012. CNFs are ultra-lightweight, more portable and scalable compared to VNFs. CNF is a network function that runs on the open source container orchestration system such as Kubernetes 3016. CNF architecture is deployable over bare-metal server 3018 that brings down the cost. 5G Core uses cloud-native technologies such as container orchestration systems, Service-mesh, Micro-services for streamlining network function development. 5G Core Network uses SBA (Service Based Architecture) where each function of Core is regarded as a service, and the interface between each function (service) is standardized as a web-based interface (HTTP / REST).
[0195] Referring now to FIG. 47 an illustration of the Kubernetes architecture, is described in more detail. Kubernetes also known as K8s is an open-source container orchestration system. A node or worker 3110, 3128 is a machine, physical or virtual, on which Kubernetes is installed. Containers are launched on the worker machines. A cluster is a set of nodes grouped together. The master 3100 is another node with Kubernetes installed in it, and is configured as a Master. The master 3100 watches over the nodes in the cluster and is responsible for the actual orchestration of containers on the worker nodes. Kubernetes includes various components including an API Server 3102, ETCD service 3108, kubelet service 3122, 3132, container runtime 3118, 3136, controllers 3106 and schedulers 3104. The API server 3102 acts as the front-end for kubernetes. The users, management devices, command line interfaces all talk to the API server 3102 to interact with the Kubernetes cluster. ETCD 3108 is a distributed reliable key-value store used by Kubernetes to store all data used to manage the cluster. The Scheduler 3104 is responsible for distributing work or containers across multiple nodes. Scheduler looks for newly created containers and assigns them to Nodes. The Controllers 3106 are the brain behind orchestration and responsible for noticing and responding when nodes, containers or endpoints goes down. The controllers 3106 makes decisions to bring up new containers in such cases. The container runtime 3118, 3136 is the underlying software
that is used to run containers (such as Docker). Kubelet 3122, 3132 is the agent that runs on each node in the cluster. The agent is responsible for making sure that the containers are running on the nodes as expected.
[0196] Referring now to FIG. 48 an illustration of the architecture of an application service mesh, is described in more detail. Application Service Mesh provides a framework to off-load many application level tasks such as Security, Retries, Logging & tracing. Application Service Mesh makes it easy to create a network of deployed services with load balancing, service-to-service authentication, monitoring, and more, with few or no code changes in service code. Application Service Mesh enables layer 7 functionality. Application service mesh adds the following properties to Kubernetes:
[0197] i) Automatic load balancing for HTTP, gRPC, WebSocket, and TCP traffic.
[0198] ii) Fine-grained control of traffic behavior with rich routing rules, retries, failovers, and fault injection.
[0199] iii) A pluggable policy layer and configuration API supporting access controls, rate limits and quotas.
[0200] iv) Automatic metrics, logs, and traces for all traffic within a cluster, including cluster ingress and egress.
[0201] v) Secure service-to-service communication in a cluster with strong identity-based authentication and authorization.
[0202] An application service mesh (such as Istio) is logically split into a data plane 3248 and a control plane 3246. The data plane 3248 is composed of a set of intelligent proxies (such as the Envoy proxy) deployed as sidecars 3212, 3218, 3224, 3230, 3234, 3240. The sidecar proxies are deployed on the pods 3210, 3216, 3222, 3228, 3232, 3238. These proxies mediate and control all network communication between microservices and applications 3214, 3220, 3226, 3244, 3236, 3242. Sidecar proxies also collect and report telemetry on all mesh traffic. The control plane 3246 manages and configures the proxies to route traffic. The control plane 3246 includes components for Configuration 3202, Service Discovery 3204, Certificate Management 3206 and Telemetry 3208. [0203] Referring now to FIG. 49 an illustration of the architecture of a network service mesh, is described in more detail. Network Service Mesh (NSM) enables sophisticated layer 2 and 3 network configuration and options. 5G Core Networks are typically deployed hybrid cloud environments where each cloud has very different requirements on layer 2 & 3 setup and protocols supported. NSM allows these requirements to be fulfilled in a cloud native way. NSM can be used to connect different
clusters or domains. NSM maps the concept of an application service mesh to L2/L3 payloads. NSM adds the following properties to networking in Kubernetes:
[0204] i) Heterogeneous network configurations
[0205] ii) Exotic protocols
[0206] iii) Tunneling as a first-class citizen
[0207] iv) Networking context as a first-class citizen
[0208] v) Policy-driven service function chaining (SFC)
[0209] vi) Minimal need for changes to Kubernetes [0210] vii) On-demand, dynamic, negotiated connections
[0211] NSM comprises components such as Network Service Manager 3312, 3326, Network Service Endpoint 3316, 3320, 3324, 3328 Network Service Client 3308, 3310, 3318, 3322 and Network Service Forwarder 3314, 3330. Network Service Endpoint is the component that provides network functionality requested by a Network Service Client. Some examples of network functionalities requested by a Network Service Client and provided by a Network Service Endpoint are listed below:
[0212] i) Requesting access to an external interface, for example a radio network service.
[0213] ii) Requesting a tunnel to a network service through an SDN [0214] iii) Requesting access to an external device by hooking up two network services.
[0215] iv) L2 bridge service
[0216] v) Distributed bridge domain
[0217] The functionality requested by a Network Service Client is provided by a Network Service Endpoint in the form an an L2/L3 connection through Network Service Forwarder 3314, 3330. The L2/L3 connection can carry payloads such as IP packets, Ethernet frames or MPLS frame. A Network Service Registry 3302 keeps records of what network service are present, their respective network service endpoints and the network service managers. Every node in a Kubernetes cluster has a Network Service Manager which publish to the Network Service Registry 3302 for discovery. The Network Service Managers advertise the Network Service Endpoints managed by them to the Network Service Registry 3302. Network Service Managers communicate peer-to-peer with to setup the L2/L3 connections. Network Service Registry 3302 is implemented via Custom Resource Definitions (CRDs) in the Kubernetes API server. Every node in a Kubernetes cluster is a Network Service Manager domain. Every node also runs a Network Service Forwarder which serves as a data plane doing the cross connects.
[0218] Referring now to FIG. 50 an illustration of an Application Service Mesh over a Network Service Mesh, according to an embodiment of the invention, is described in more detail. Application Service Mesh can be deployed over a Network Service Mesh. Network Service Mesh 3410, 3408, 3412 orchestrates the connectivity between different clusters, domains or clouds. Application Service Mesh 3400 provides functionalities such as secure service to service communication, observability, logging, telemetry, advance policies, intelligent routing rules, traffic management and canary deployments.
[0219] Referring now to FIG. 51 an illustration of a Blockchain-Secured Service Mesh 3500, according to an embodiment of the invention, is described in more detail. The Zero-Trust model assumes that there are no longer trusted interfaces, applications, traffic, network or users. Blockchain-Secured Service Mesh 3500 meets the following requirements of Zero-Trust model:
[0220] i) All resources must be accessed in a secure manner [0221] ii) Access control must be on a need-to-know basis and strictly enforced [0222] iii) Systems must verify and never trust [0223] iv) All traffic must be inspected, logged and reviewed [0224] v) Systems must be designed from the inside out instead of outside in [0225] Blockchain-Secured Service Mesh 3500 is logically split into a data plane 3556 and a control plane 3554. The data plane 3556 comprises a set of intelligent proxies (such as the Envoy proxy) deployed as sidecars 3520, 3526, 3532, 3538, 3544, 3550. The sidecar proxies are deployed on the pods 3522, 3528, 3534, 3540, 3546, 3552. These proxies mediate and control all network communication between the CNFs 3522, 3528, 3534, 3540, 3546, 3552. Sidecar proxies also collect and report telemetry on all mesh traffic. The control plane 3554 manages and configures the proxies to route traffic. The control plane 3554 includes components for Configuration 3502, Service Discovery 3504, Certificate Management 3506, Telemetry 3508, Blockchain 3510, BBMF & GVNS 3512, Smart Contracts 3514 and Rules & Patterns 3516.
[0226] Referring now to FIG. 52 an illustration of the process for Logging T raffic on Blockchain 3636 through Bulletin Board Messaging Framework (BBMF) 3614 and Global Variable Name System (GVNS) 3628, according to an embodiment of the invention, is described in more detail. The Global Variable Name System (GVNS) 3628 maintains records of global variables and the owners and resolvers for the global variables. Data sources 3600 such as CNFs, VNFs, Worker Nodes, Servers, Containers, Pods, VMs, produce data or notifications which are sent to a publisher/producer client 3610 running on a service proxy 3608. The publisher/producer client 3610 publishes the data or
notification as a message 3612 to one or more topics 3618, 3620 managed by the Bulletin Board server 3614. The consumer/subscriber client 3624 receives the messages 3622 and updates the value of global variables registered in the GVNS 3628. Smart contracts 3630, 3632, 3534 reference the global variable registered in the GVNS 3628.
[0227] All network traffic and transactions between the CNFs (Containerized Network Functions) or VNFs (Virtualized Network Functions) are logged on the blockchain through the BBMF-GVNS components of the Blockchain-Secured Service Mesh 3616. Blockchain 3636 is used to ensure that the CNFs/VNFs do not act maliciously against each other. All interactions are stored in a blockchain 3636 and use smart contracts to enforce security guidelines. Every transaction is logged and cleared before it is processed and committed. No CNF/VNF trusts the other CNFs/VNFs.
[0228] Referring now to FIG. 53 an illustration of the Smart Contracts involved in the Blockchain-Secured Service Mesh, according to an embodiment of the invention, is described in more detail. The smart contracts are deployed on blockchain 3720 and interact with BBMF & GVNS 3700. The smart contracts involved are as follows:
[0229] CNF/VNF specific contracts 3706
[0230] Transaction Processing Contract 3712
[0231 ] Worker Node/Server specific contracts 3708 [0232] Identity Smart Contract 3714
[0233] Container/Pod/VM specific contracts 3710
[0234] Security Policies Contract 3716
[0235] Referring now to FIG. 54 an illustration of the steps for detecting and mitigating attacks (such as DDoS) with the Blockchain-Secured Service Mesh, according to an embodiment of the invention, is described in more detail. The blockchain-secured service mesh logs all traffic including the network and transactions data, processes and clears transactions, prevents CNFs/VNFs/VMs/ Containers/Pods/Worker Nodes/Servers from acting maliciously against each other and enforces security policies. Detection and mitigation countermeasures can be provided in an on-demand manner through the use of the blockchain-secured service mesh. All traffic from CNFs/ VNFs/ VMs/ Containers/ Pods/ Worker Nodes/Servers is logged using the bulletin board server and the corresponding global variables and smart contracts are updated. Any Malicious or anomalous traffic is detected through the smart contracts. Smart contracts are used to match patterns and the results are used to change mapping of the CNFs/VNFs based on risk and scalability. Corresponding mitigation actions triggered through BBMF. Mitigation actions involve advertising the attacks through the GVNS and Blockchain, isolating the
infected component (CNFs/VNFs/VMs/Containers/Pods/Worker Nodes/Servers) and migrating it to other VMs/Containers/Pods/Worker Nodes/Servers. At step-3800, Publisher/Producer Client on Service Proxy publishes data from Sources (CNFs, VNFs, Worker Nodes, Servers, Containers, Pods or VMs) to Topics managed by Bulletin Board. At step-3802, Consumer/Subscriber Client subscribe to topics managed by Bulletin-board and updates the global variables maintained by GVNS. At step-3804, Smart contracts reference the global variables maintained by GVNS. At step-3806, Any Malicious or anomalous traffic is detected through the smart contracts. At step-3808, Mitigation actions triggered through BBMF, including advertising the attacks through the GVNS and Blockchain, isolating the infected component (CNFs/VNFs/VMs/ Containers/Pods/Worker Nodes/Servers) and migrating it to other VMs/Containers/Pods/Worker Nodes/Servers.
[0236] Referring now to FIG. 55 an illustration of the challenges and requirements for Containerized Network Functions (CNFs) at different layers, according to an embodiment of the invention, is described in more detail. The challenges at layer-2 (data link layer 3910) and layer-3 (network layer 3908) include:
[0237] Networking & load balancing [0238] Multi-tenant & multi-region [0239] Orchestration, updates, maintenance [0240] Scheduling [0241] Service discovery [0242] On-demand and dynamic connections [0243] Heterogenous network configurations [0244] Network Service Mesh 3920 addresses the challenges at layers 2 and 3. [0245] The challenges at layer-4 (transport layer 3906), layer-5 (session layer 3904), layer-6 (presentation layer 3902) and layer-6 (application layer 3900) include: [0246] Application health & performance monitoring [0247] Application deployments & secrets [0248] Circuit-breaking [0249] Traffic management [0250] Canary deployments [0251] Timeouts, retries, deadlines, budgets [0252] Backpressure [0253] Transport security [0254] Identity and access control
[0255] Quota management [0256] Protocol translation [0257] Policy
[0258] Service performance monitoring
[0259] Application Service Mesh 3916 addresses the challenges at layers 4, 5, 6 and 7.
[0260] Referring now to FIG. 56 an illustration of the multi-layer protection approach using a Blockchain-Secured Application Service Mesh (BSASM) 4014 and Blockchain-Secured Network Service Mesh (BSNSM) 4016, according to an embodiment of the invention, is described in more detail. BSASM 4014 and BSNSM 4016 have their own blockchains 4018 and 4020. Each blockchain has its own smart contracts and own GVNS variables that can be shared. BSASM and BSNSM have their own smart contracts or each layer has its own smart contracts.
[0261] Referring now to FIG. 57 an illustration of the multi-layer protection approach using different blockchains at different layers, according to an embodiment of the invention, is described in more detail. Each layer blockchain 4116, 4116, 4118, 4120, 4122, 4124, 4126 can communicate across other layer blockchain. Each layer 4100, 4102, 4104, 4106, 4108, 4110, 4112 can have its own blockchain, or subsets of layers can share a blockchain. Or neighboring layers can share blockchain. Or the subsets can overlap and the bordering layer can be part of both blockchains. Alternatively, one blockchain with multiple smart contracts for each layer or subsets of layers L1 through L7. A Block can belong to one or more subsets. Each Smart contract can belong to a blockchain or across blockchains. A zero trust graph sets up the assignments. Subsets can overlap and each subset need not contain all adjacent layers. It could contain only layers L1 and L6 and L7.
[0262] Referring now to FIG. 58 an illustration of the super-chain and sub-chains in multi-layer protection approach, according to an embodiment of the invention, is described in more detail. The multi-layer protection approach involves one super-chain 4200 and one or more levels of sub-chains 4202, 4204, 4206. The super-chain acts as summarized version of the level-1 sub-chain. Similarly, level-(N-l) sub-chain acts as a summarized version of the level-N sub-chain. A single block in the super-chain can include summarized transactions from multiple blocks in the sub-chain.
[0263] Referring now to FIG. 59 an illustration of BlockGrid architecture for multi layer protection, according to an embodiment of the invention, is described in more detail. BlockGrid is a multi-chain architecture comprising N-levels of blockchains with increasing
block-times and increasing levels of decentralization. Level-1 4300 chain is the "fastest" chain which has block times in the range of few milli-second to few seconds and a Proof- of-Authority (PoA) or Proof-of-Stake (PoS) consensus. The Level-N chain 4304 is a Proof- of-Work (PoW) chain with slow block times in the range of few seconds to few minutes and high level of decentralization. The blocks in the successive levels in the BlockGrid architecture are connected through block anchors. A Block Anchor is a link between a block on level N-1 chain and a block on level N chain where these blocks are linked by a cryptographic hash. More specifically, a Block Anchor may exist between a block on the Level-1 4300 chain and a block on the Level N-1 chain 4302, and another Block Anchor may exist between block on on the Level N-1 chain 4302 and a block on the Level N 4304 chain.
[0264] The BlockGrid network can be seen as a hybrid of fully centralized and fully decentralized blockchain networks. Level-1 chain 4300 can be centralized as it needs to be fast and have fast block times, whereas Level-N chain 4304 can be fully decentralized. The Bulletin board messaging system may be used to coordinate the N-levels of chains in the BlockGrid where messages and event notifications have to be exchanged between different levels of chains.
[0265] Referring now to FIG. 60 an illustration of relationships between blocks on different blockchains within the BlockGrid architecture, according to an embodiment of the invention, is described in more detail. The figure illustrates a four level BlockGrid network with four blockchains 4400, 4402, 4403, 4404. The blocks in a level N chain contain all the transactions of the corresponding blocks in a level N-1 chain or a summarized form of transactions in the corresponding blocks. For example, block B4,0 on the level-4 chain 4404 contains all the transactions in the corresponding block B3,0 on level-3 chain 4403, which in turn contains all the transactions in the corresponding block B2,0 in the level-2 chain 4402, which in turn contains all the transactions in the corresponding block B1 ,0 in the level-1 chain 4400. Similarly block B3,1 on level-3 chain contains all the transactions in the corresponding blocks B2,1 , and B2,2 1914 in the level- 2 chain 1942.
[0266] The block times (or block intervals) and block generation times of the different blockchains may be synchronized. For example, if level-1 chain has a block time of 100 ms and level-2 chain has a block time of 1 second then a new block of level-2 chain may be generated after every 10 blocks on level-1 chain. In such a case every block on level-2 chain would contain transactions from previous 10 blocks on the level-1 chain.
[0267] Referring now to FIG. 61 an illustration of Blockchain Identity & Access Management (B-IAM) system, according to an embodiment of the invention, is described in more detail. The B-IAM system's infrastructure layer 4654 comprises a blockchain network 4634, a decentralized storage platform 4636, decentralized messaging platform 4638 and cloud infrastructure 4640. All the smart contracts related to user identity management (such as the Seal Contract, Certification Contract, Roles & Privileges Contract) deployed on the blockchain network 4634. For 4634, a blockchain platform such as Ethereum can be used. The decentralized messaging platform 4638 is used for messaging between the decentralized applications (Dapps), which are built on the B-IAM system. For 4648, a decentralized messaging platform such as Whisper, can be used. Whisper messages are transient in nature and have a time-to-live (TTL) set. Each message has one or more topics associated with it. The Dapps running on a blockchain node inform the node about the topics to which they want to subscribe. Whisper uses topic-based routing where the nodes advertise their topics of interest to their peers. Topics are used for filtering the messages which are delivered to a node which are then distributed to the Dapps running on the blockchain node. The decentralized storage platform 4636 is used for storing user data such as user photos, and scanned identity documents. For 4636, a decentralized storage platform such as Swarm can be used. Swarm is a decentralized storage platform and content distribution service for the Ethereum blockchain platform. Swarm is a peer-to-peer storage platform which is maintained by the peers who contribute their storage and bandwidth resources. Swarm has been designed to dynamically scale up to serve popular content and has a mechanism to ensure the availability of the content which is not popular or frequently requested. The cloud infrastructure 4640, is used for collection, storage and analysis of application usage data.
[0268] The B-IAM system's platform and application services Iayer4618 comprises Integration Services 4628, Identity & Authentication Services 4650, User Registration & Certification Services 4652, Data Management & Analytics Services 4620. The Integration Services 4628, comprise Inter-Blockchain and Intra-blockchain Messaging Services 4630, and various connectors for applications, cloud services and other blockchain networks 4632. The Identity & Authentication Services 4650 comprise a User Identity & Access Management Service 4642, and a B-IAM portal 4644. The B-IAM portal 4644 allows users 4600 to access and monitor their identity data recorded in the B-IAM system and view identity requests made by different applications. The User Registration & Certification Services 4652 comprise a User Registration Service 4646 and a User
Certification Service 4648. The Data Management & Analytics Services 4620, are deployed on the cloud infrastructure 4640. These include an analytics service 4622, reporting service 4624, and an alerting service 4626. The analytics service 4622, can analyze multi-blockchain behavior of a user account to ensure compliance. It is contemplated and included within the scope of the invention that all of these platforms and applications services are operable on a computerized device comprising a processor, a network communication device, and a data storage device as described hereinabove. [0269] The B-IAM system can be used for providing identity, access management and authentication services for a wide range of applications 4614. Some exemplary applications that can benefit from the B-IAM system include an identity verification application 4602, access control application 4604 and a blockchain-based payments application 4608. All of these may communicate with third party devices and applications 4614 that identifies and/or authenticates the users 4600.
[0270] Referring now to FIG. 62 an illustration of the interactions between the B- IAM system 4548 and other blockchain networks 4500 and decentralized applications 4560, 4562, according to an embodiment of the present invention are now described in detail. The B-IAM system can be used to provide user identity and access management services for various decentralized applications deployed on different blockchain networks. The B-IAM allows a user to work on multiple blockchain networks, or multiple applications deployed on the same blockchain networks, while maintaining the same identity. The blockchain network 4500 can communicate with the B-IAM system using an Inter- Blockchain Messaging protocol 4524. The blockchain network 4500 can also send usage data 4532 (such as application usage and user interactions data) to the B-IAM system. Applications deployed on a blockchain network 4500 are either in the form of smart contracts 4518, 4542 or Dapps 4560, 4562. A smart contract is a piece of code which is deployed on the blockchain network and is uniquely identified by an address. While smart contracts can directly be used by end users 4514, 4550 who can send transactions or calls to the smart contracts through blockchain clients, however, to provide a more user- friendly interface to smart contracts, Dapps can be developed and applied over these smart contracts. A Dapp 4560 includes one or more associated smart contracts 4518, a front-end user interface 4522 (which is typically implemented in HTML and CSS) and a back-end 4520 (which is typically implemented in JavaScript). Users can submit transactions to the smart contract 4518 associated with a Dapp from the Dapp's web interface itself. The Dapp's web interface forwards the transactions to the blockchain platform 4500 and displays the transaction receipts or state information in the smart
contracts in the web interface. A Dapp is deployed on a blockchain node 4504 which serves the Dapp's web-based user interface. The Dapp logic is controlled by the associated smart contracts 4518 which are deployed on the blockchain platform 4500. Dapps which have special storage requirements can make use of a decentralized storage platform (such as Swarm). Similarly, Dapps which have special messaging requirements can leverage a decentralized messaging platform (such as Whisper). A blockchain node 4504 typically comprises a blockchain client 4506 that sends transactions to the blockchain network 4500, a smart contracts compiler 4508, a decentralized storage client & local store 4510, and a decentralized messaging client 4512. While the smart contracts are deployed on the blockchain network, intra-blockchain messaging 4516 (over a decentralized messaging platform) and decentralized storage/retrieval requests 4564 (over a decentralized storage platform) work off the chain as they do not require a consensus on the blockchain.
[0271] Referring now to FIG. 63 an illustration of Blockchain-Enabled Network & Application Service Mesh (BENASM) 4700, according to an embodiment of the invention, is described in more detail. BENASM 4700 is a combined blockchain-enabled network and application service mesh. The combined mesh can have a single blockchain or there can be separate blockchains for network and application layers. Each blockchain has its own smart contracts and own GVNS variables that can be shared. Each layer blockchain can communicate across other layer blockchain. At the network layer, BENASM enables layer 2 and 3 functionality such as network configuration and connectivity different clusters or domains. At the application layer, BENASM enables layer 7 functionality such as load balancing, service-to-service authentication, monitoring, security, retries, logging & tracing and more. The combined mesh enables visibility at both network and application layers and cross layer information passing. For example, from a security point of view if a port is opened at one layer it may be cross checked or correlated against an application action. From Observability point of view, ASM gives application metrics, but it doesn't give network and packet level metrics. The combined mesh can give visibility at all layers with option to drill top-down from higher to lower layers.
[0272] BENASM is logically split into a data plane 4764 and a control plane 4762. The data plane 4764 comprises a set of intelligent proxies (such as the Envoy proxy) deployed as sidecars 4720, 4734, 4748. The sidecar proxies are deployed on the pods 4724, 4738, 4752. These proxies mediate and control all network communication between the microservices, applications or CNFs 4726, 4740, 4754. Sidecar proxies also collect and report telemetry on all mesh traffic. The network service mesh specific
components such as Network Service Manager 4722, 4736, 4750, Network Service Endpoint 4728, 4742, 4760, Network Service Client 4732, 4746, 4758 and Network Service Forwarder 4730, 4744, 4756 are also deployed on the pods 4724, 4738, 4752. The control plane 4762 manages and configures the proxies to route traffic. The control plane 4762 includes components for Configuration 4702, Service Discovery 4704, Certificate Management 4706, Telemetry 4708, Blockchain 4710, BBMF & GVNS 4712, Smart Contracts 4714, Rules & Patterns 4716 and Network Service Registry 4718. [0273] Referring now to FIG. 64 an illustration of Blockchain-Enabled Network & Application Service Mesh with Identity (BENASMI), according to an embodiment of the invention, is described in more detail. A blockchain-enabled network and application service mesh with an identity framework is proposed. The combined mesh provides functionality at network and application layers as well as secure identity for workloads/services. BENASMI assigns unique identity to each workload/service in the cluster or domain. BENASMI works across multiple domains or clusters. A blockchain smart contract-based trust certificate is assigned to each workload/service.
[0274] BENASMI is logically split into a data plane 4874 and a control plane 4872. The data plane 4874 comprises a set of intelligent proxies (such as the Envoy proxy) deployed as sidecars 4822, 4840, 4856. The sidecar proxies are deployed on the pods 4830, 4854, 4860. These proxies mediate and control all network communication between the microservices, applications or CNFs 4832, 4846, 4864. Sidecar proxies also collect and report telemetry on all mesh traffic. The network service mesh specific components such as Network Service Manager 4824, 4842, 4858, Network Service Endpoint 4834, 4852, 4870, Network Service Client 4838, 4850, 4868 and Network Service Forwarder 4836, 4848, 4866 are also deployed on the pods 4830, 4854, 4860. The control plane 4872 manages and configures the proxies to route traffic. The control plane 4872 includes components for Configuration 4802, Service Discovery 4804, Certificate Management 4806, Telemetry 4808, Blockchain 4810, BBMF & GVNS 4812, Smart Contracts 4816, Rules & Patterns 4720, Network Service Registry 4814 and Identity Service & Contracts 4818.
[0275] Referring now to FIG. 65 an illustration of cross-cluster/cross-domain connectivity, identity and observability with Blockchain-Enabled Network & Application Service Mesh with Identity (BENASMI), according to an embodiment of the invention, is described in more detail. BENASMI 4900 can provide connectivity, identity and observability functionality across multiple Kubernetes clusters/domains 4906, 4914, 4926
where each cluster/domain has multiple pods 4902, 4904, 4908, 4910, 4922, 4924, 4928, 4930, 4912, 4916, 4918, 4920 running microservices, applications or CNFs.
[0276] Referring now to FIG. 66 an illustration of microservices architecture, according to an embodiment of the invention, is described in more detail. Microservices are an architectural approach to software development where instead of developing monolithic software, a number of small independent services are developed that communicate over well-defined APIs. Microservices architectures make scaling easier, and accelerate the time to market. Microservices architectures leverage Virtualization and Containerization technologies.
[0277] In the context of 5G, Microservices architectures along with Virtualization and Containerization technologies can allow dynamic allocation and placement of resources, network orchestration and creation of network slices on-demand without prior knowledge of service requirements. Resource allocations can be automated through the use of blockchain and smart contracts to meet the varying levels of QoS.
[0278] With a rapid growth in microservices various problems related to service discovery, routing between multiple services, versions, identity, authorization, authentication, security, and load balancing arise. While Kubernetes and application service meshes address some of these problems, however, there are issues such as multi-layer security, DDoS prevention and zero-trust approach to securing microservices. The Blockchain-Enabled Network & Application Service Mesh with Identity (BENASMI) addresses these issues.
[0279] Referring now to FIG. 67 an illustration of dynamic allocation of resources in 5G using Virtualization and Containerization, according to an embodiment of the invention, is described in more detail. The ideas of Virtualization and Containerization as in Cloud Computing can be extended to the Carrier 5G networks where different containers are modeled by their types and each consumes its own types of slice coins and resources and smart contracts ensure that enterprises, carriers and cloud providers can all run smoothly while not interfering with existing relationship and operational constraints imposed by the other entities. Virtualization and Containerization technologies enable the 5G network operators to quickly build application-aware networks and network-aware applications to deliver customized services and business models. Blockchain and smart contracts enable end-to-end resource allocation/sharing, network management and orchestration delivering desired services.
[0280] Referring now to FIG. 68 an illustration of network slice coins, according to an embodiment of the invention, is described in more detail. Network Slicing is a
technology in 5G that allows creating logical networks called network slices on top of a common and shared infrastructure layer, to realize a wanted network characteristic and provide specific network capabilities to address a specific customer need.
[0281] For regulating the network slices, a new type of virtual currency named “Slicecoin” is proposed. Slices are regulated by different types of Slicecoins such as coins for resources, coins for different types of services, and coins for different type of functions - control, computing, management. These coins are allocated, consumed, created and burned in a temporal and spatial manner utilizing smart contracts that can be run on single or multiple blockchains, utilizing IDs and decentralization for management and provisions and operations and control subject to resource, quality, performance and cost and security constraints. Network Slicecoins allow non-trusting parties to co-manage the 5G network with slices.
[0282] Slice templates 5100, specification and configurations of resources, management models and system parameters are used to generate smart contracts 5114 which automate the process of resource allocation and network orchestration. Slice coin serves as the native token on the blockchain enabling customized service delivery and new charging and business models in 5G and rewarding the enties involved. Smart contract 5114 agreements between users and network operators are used to charge the users. Since charging happens automatically when conditions agreed in smart contracts are met, this brings greater transparency and minimize frauds. Blockchain 5118 allows maintaining a complete audit trail of transactions making financial reconciliations easier. [0283] Referring now to FIG. 69 an illustration network slice management using blockchain, according to an embodiment of the invention, is described in more detail a A Network Slice is a set of network functions, and resources to run these network functions, forming a complete instantiated logical network to meet certain performance levels required by specific types of services. Network slices can address different service requirements such as End-to-end latency, mobility, user density, priority, coverage area, traffic capacity, and degree of isolation. The physical or virtual infrastructure resources may be dedicated to one network slice or shared with other network slices. Some examples of service types and slice performance needs are described as follows:
[0284] 1. High-speed broadband for fixed wireless access (high capacity and throughput) 5150.
[0285] 2. Massive loT for remote metering (low power, high-scale device connectivity) 5152.
[0286] 3. Mission-critical services forfactory automation (ultra-low latency and high reliability) 5154.
[0287] Each of the slices 5160, 5162, 5164 deliver a mix of performance capabilities along three core dimensions:
[0288] 1. capacity and throughput
[0289] 2. reliability and latency
[0290] 3. scale of connectivity
[0291] Slices 5160, 5162, 5164 are regulated by different types of Slicecoins such as coins for resources, coins for different types of services, and coins for different type of functions - control, computing, management, which are deployed on a Blockchain Network 5172.
[0292] Referring now to FIG. 70 an illustration of Hierarchical Consensus Models in 5G, according to an embodiment of the invention, is described in more detail. A proof of authority model is applied at higher level domains and within each domain a different consensus model may be used, for example. One consensus model can be embedded within another consensus models. At the highest level - carrier networks (5G), cloud providers, and enterprises can have one consensus models where they assign, allocate, and consume 5G and computing resources, and within their domains they may have their own consensus models. Hierarchical Consensus Models in 5G will allow efficiently managing a large number of interactions in a highly heterogeneous network, for use cases such as:
[0293] 1. Securely creating an end to end slices and allocating resources based on the agreed smart contracts.
[0294] 2. Handling slice requests from various industry verticals and passing them to mobile infrastructure resource orchestrator.
[0295] All of the above-described methods are performable on computerized systems, such systems comprising a processor, a data store (such as memory) positioned in communication with the processor, and a network communication device position in communication with the processor and operable to communicate across a network, as are all known in the art.
[0296] Some of the illustrative aspects of the present invention may be advantageous in solving the problems herein described and other problems not discussed which are discoverable by a skilled artisan.
[0297] While the above description contains much specificity, these should not be construed as limitations on the scope of any embodiment, but as exemplifications of the
presented embodiments thereof. Many other ramifications and variations are possible within the teachings of the various embodiments. While the invention has been described with reference to exemplary embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof without departing from the scope of the invention. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the invention without departing from the essential scope thereof. Therefore, it is intended that the invention not be limited to the particular embodiment disclosed as the best or only mode contemplated for carrying out this invention, but that the invention will include all embodiments falling within the scope of the appended claims. Also, in the drawings and the description, there have been disclosed exemplary embodiments of the invention and, although specific terms may have been employed, they are unless otherwise stated used in a generic and descriptive sense only and not for purposes of limitation, the scope of the invention therefore not being so limited. Moreover, the use of the terms first, second, etc. do not denote any order or importance, but rather the terms first, second, etc. are used to distinguish one element from another. Furthermore, the use of the terms a, an, etc. do not denote a limitation of quantity, but rather denote the presence of at least one of the referenced item.
[0298] Thus the scope of the invention should be determined by the appended claims and their legal equivalents, and not by the examples given.
Claims
1. A blockchain-enabled network and application service mesh network (3200) architecture comprising: a network service mesh network (3300) comprising a plurality of network service domains (3304) configured to communicate with each other, each network service domain (3304) comprising: a plurality of network service endpoints (3316) configured to communicate with a network service client (3310); and a network service manager (3312) configured to broadcast the availability of the plurality of network service endpoints (3316) to network service clients (3310); and an application service mesh network (3200) positioned in communication with the network service mesh network (3300), the application service mesh network (3200) comprising a plurality of applications (3210) configured to communicate with each other and a network service domain (3304) of the plurality of network service domains (3304); wherein a plurality of smart contracts (5114) comprising network slicing information from the network service mesh network (3300) and the application service mesh network (3200) are recorded to a blockchain network.
2. The architecture of claim 1 wherein the network service mesh network (3300) further comprises: a global variable name system (3628) comprising a plurality of registered global variables; and a bulletin board server (3614) configured to update information about the plurality of registered global variables responsive to messages received from the plurality of applications (3210) by the bulletin board server (3614); wherein the plurality of smart contracts (5114) comprises registered global variables; and
SERVICE MESHES AND SMART CONTRACTS FOR ZERO-TRUST
SYSTEMS wherein the plurality of smart contracts (5114) is configured to be updated responsive to changes in registered global variables comprised thereby.
3. The architecture of claim 2 wherein: the bulletin board server (3614) comprises a plurality of topics 3618, each topic comprising a registered global variable; and the topics of the plurality of topics 3618 are configured to be subscribed to by the plurality of applications (3210), such that information regarding updates to the registered global variable comprised by the topic is sent to applications that subscribe to the topic.
4. The architecture of claim 3 wherein: malicious traffic coming from an application is identified by comparing traffic coming therefrom to a smart contract associated with an application; and the bulletin board server (3614) is configured to perform a mitigation action responsive to the malicious traffic.
5. The architecture of claim 4 wherein the mitigation action comprises at least one of advertising the malicious traffic through the global variable name system (3628), isolating the effected application, and migrating tasks to be performed by the application to another application of the plurality of applications (3210).
6. The architecture of claim 1 wherein: a first plurality of smart contracts comprising a first set of network slicing information from the network service mesh network (3300) is recorded to a first blockchain network; and a second plurality of smart contracts comprising a second set of network slicing information from the application service mesh network (3200) is recorded to a second blockchain network.
7. The architecture of claim 6 further comprising:
SERVICE MESHES AND SMART CONTRACTS FOR ZERO-TRUST
SYSTEMS a global variable name system (3628) comprising a plurality of registered global variables; and a bulletin board server (3614) configured to update information about the plurality of registered global variables responsive to messages received from users by the bulletin board server (3614); wherein the first and second pluralities of smart contracts comprise registered global variables; and wherein the first and second pluralities of smart contracts are configured to be updated responsive to changes in registered global variables comprised thereby.
8. The architecture of claim 1 wherein the plurality of applications (3210) comprises at least one of a containerized network function, a virtual network function, a worker node, a server, a container, a pod, and a virtual machine.
9. The architecture of claim 8 wherein at least a subset of the plurality of network service domains (3304) are managed by a Kubernetes installation.
10. A blockchain-enabled network and application service mesh network (3200) architecture comprising: a network service mesh network (3300) comprising: a plurality of network service domains (3304) configured to communicate with each other, each network service domain (3304) comprising: a plurality of network service endpoints (3316) configured to communicate with a network service client (3310); and a network service manager (3312) configured to broadcast the availability of the plurality of network service endpoints (3316) to network service clients (3310); a global variable name system (3628) comprising a plurality of registered global variables; and a bulletin board server (3614) configured to update information about the plurality of registered global variables responsive to messages
SERVICE MESHES AND SMART CONTRACTS FOR ZERO-TRUST
SYSTEMS received from the plurality of applications (3210) by the bulletin board server (3614); and an application service mesh network (3200) positioned in communication with the network service mesh network, the application service mesh network (3200) comprising a plurality of applications (3210) configured to communicate with each other and a network service domain (3304) of the plurality of network service domain (3304)s (3304); wherein the plurality of applications (3210) comprises at least one of a containerized network function, a virtual network function, a worker node, a server, a container, a pod, and a virtual machine; wherein a plurality of smart contracts comprising network slicing information from the network service mesh network (3300) and the application service mesh network (3200) and a registered global variable are recorded to a blockchain network; and wherein the plurality of smart contracts is configured to be updated responsive to changes in registered global variables comprised thereby.
11 . The architecture of claim 10 wherein: the bulletin board server (3614) comprises a plurality of topics 3618, each topic comprising a registered global variable; and the topics of the plurality of topics 3618 are configured to be subscribed to by the plurality of applications (3210), such that information regarding updates to the registered global variable comprised by the topic is sent to applications that subscribe to the topic.
12. The architecture of claim 11 wherein: malicious traffic coming from an application is identified by comparing traffic coming therefrom to a smart contract associated with an application; and the bulletin board server (3614) is configured to perform a mitigation action responsive to the malicious traffic.
13. The architecture of claim 12 wherein the mitigation action comprises at least one of advertising the malicious traffic through the global variable name
SERVICE MESHES AND SMART CONTRACTS FOR ZERO-TRUST
SYSTEMS system (3628), isolating the effected application, and migrating tasks to be performed by the application to another application of the plurality of applications (3210).
14. The architecture of claim 10 wherein: a first plurality of smart contracts comprising a first set of network slicing information from the network service mesh network (3300) and a registered global variable is recorded to a first blockchain network; and a second plurality of smart contracts comprising a second set of network slicing information from the application service mesh network (3200) and a registered global variable is recorded to a second blockchain network.
15. The architecture of claim 10 wherein at least a subset of the plurality of network service domains (3304) are managed by a Kubernetes installation.
16. A blockchain-enabled network and application service mesh network (3200) architecture comprising: a network service mesh network (3300) comprising: a plurality of network service domains (3304) configured to communicate with each other, each network service domain (3304) comprising: a plurality of network service endpoints (3316) configured to communicate with a network service client (3310); and a network service manager (3312) configured to broadcast the availability of the plurality of network service endpoints (3316) to network service clients (3310); a global variable name system (3628) comprising a plurality of registered global variables; and a bulletin board server (3614) configured to update information about the plurality of registered global variables responsive to messages received from the plurality of applications (3210) by the bulletin board server (3614); and
SERVICE MESHES AND SMART CONTRACTS FOR ZERO-TRUST
SYSTEMS an application service mesh network (3200) positioned in communication with the network service mesh network, the application service mesh network (3200) comprising a plurality of applications (3210) configured to communicate with each other and a network service domain (3304) of the plurality of network service domain (3304)s (3304); wherein the plurality of applications (3210) comprises at least one of a containerized network function, a virtual network function, a worker node, a server, a container, a pod, and a virtual machine; wherein at least a subset of the plurality of network service domains (3304) are managed by a Kubernetes installation; a first plurality of smart contracts comprising a first set of network slicing information from the network service mesh network (3300) and a registered global variable is recorded to a first blockchain network; a second plurality of smart contracts comprising a second set of network slicing information from the application service mesh network (3200) and a registered global variable is recorded to a second blockchain network; and wherein the first and second pluralities of smart contracts are configured to be updated responsive to changes in registered global variables comprised thereby.
17. The architecture of claim 16 wherein: the bulletin board server (3614) comprises a plurality of topics 3618, each topic comprising a registered global variable; and the topics of the plurality of topics 3618 are configured to be subscribed to by the plurality of applications (3210), such that information regarding updates to the registered global variable comprised by the topic is sent to applications that subscribe to the topic.
18. The architecture of claim 17 wherein: malicious traffic coming from an application is identified by comparing traffic coming therefrom to a smart contract associated with an application; and the bulletin board server (3614) is configured to perform a mitigation action responsive to the malicious traffic.
SERVICE MESHES AND SMART CONTRACTS FOR ZERO-TRUST
SYSTEMS
19. The architecture of claim 18 wherein the mitigation action comprises at least one of advertising the malicious traffic through the global variable name system (3628), isolating the effected application, and migrating tasks to be performed by the application to another application of the plurality of applications (3210).
20. A blockchain-enabled network and application service mesh network (3200) architecture comprising: a network service mesh network (3300) comprising a plurality of network service domains (3304) configured to communicate with each other, each network service domain (3304) comprising: a plurality of network service endpoints (3316) configured to communicate with a network service client (3310); and a network service manager (3312) configured to broadcast the availability of the plurality of network service endpoints (3316) to network service clients (3310); and an application service mesh network (3200) positioned in communication with the network service mesh network, the application service mesh network (3200) comprising a plurality of applications (3210) configured to communicate with each other and a network service domain (3304) of the plurality of network service domain (3304)s (3304); wherein a plurality of smart contracts comprising traffic information from the network service mesh network (3300) and the application service mesh network (3200) are recorded to a blockchain network.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020237038150A KR20240004463A (en) | 2021-04-09 | 2022-04-08 | Service mesh and smart contracts for zero-trust systems |
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US202163172743P | 2021-04-09 | 2021-04-09 | |
US63/172,743 | 2021-04-09 | ||
US17/302,552 US11283865B2 (en) | 2017-09-13 | 2021-05-06 | Service meshes and smart contracts for zero-trust systems |
US17/302,552 | 2021-05-06 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022217267A1 true WO2022217267A1 (en) | 2022-10-13 |
Family
ID=81392864
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/US2022/071616 WO2022217267A1 (en) | 2021-04-09 | 2022-04-08 | Service meshes and smart contracts for zero-trust systems |
Country Status (2)
Country | Link |
---|---|
KR (1) | KR20240004463A (en) |
WO (1) | WO2022217267A1 (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190228409A1 (en) * | 2017-09-13 | 2019-07-25 | Vijay Madisetti | Transaction Pools Using Smart Contracts and Blockchains |
WO2019195755A1 (en) * | 2018-04-05 | 2019-10-10 | Neji, Inc. | Network protocol for blockchain based network packets |
-
2022
- 2022-04-08 KR KR1020237038150A patent/KR20240004463A/en active Search and Examination
- 2022-04-08 WO PCT/US2022/071616 patent/WO2022217267A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190228409A1 (en) * | 2017-09-13 | 2019-07-25 | Vijay Madisetti | Transaction Pools Using Smart Contracts and Blockchains |
WO2019195755A1 (en) * | 2018-04-05 | 2019-10-10 | Neji, Inc. | Network protocol for blockchain based network packets |
Non-Patent Citations (3)
Title |
---|
BACKMAN JERE ET AL: "Blockchain network slice broker in 5G: Slice leasing in factory of the future use case", 2017 INTERNET OF THINGS BUSINESS MODELS, USERS, AND NETWORKS, IEEE, 23 November 2017 (2017-11-23), pages 1 - 8, XP033302724, DOI: 10.1109/CTTE.2017.8260929 * |
CARRIÓN CARMEN CARMEN CARRION@UCLM ES: "Kubernetes Scheduling: Taxonomy, ongoing issues and challenges", ACM COMPUTING SURVEYS, ACM, NEW YORK, NY, US, US, 1 January 1990 (1990-01-01), XP058685100, ISSN: 0360-0300, DOI: 10.1145/3539606 * |
PAPADAKIS-VLACHOPAPADOPOULOS KONSTANTINOS ET AL: "On Blockchain-Based Cross-Service Communication and Resource Orchestration on Edge Clouds", INFORMATICS, vol. 8, no. 1, 26 February 2021 (2021-02-26), pages 13, XP055941739, DOI: 10.3390/informatics8010013 * |
Also Published As
Publication number | Publication date |
---|---|
KR20240004463A (en) | 2024-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11316690B2 (en) | Blockchain token-based cloud orchestration architecture for discrete virtual network instances | |
US11283865B2 (en) | Service meshes and smart contracts for zero-trust systems | |
US11528147B2 (en) | Verifying integrity and secure operations of cloud-based software services | |
US10243743B1 (en) | Tokens or crypto currency using smart contracts and blockchains | |
US10460283B2 (en) | Smart contract optimization for multiparty service or product ordering system | |
US20190228409A1 (en) | Transaction Pools Using Smart Contracts and Blockchains | |
Bajoudah et al. | Toward a decentralized, trust-less marketplace for brokered IoT data trading using blockchain | |
US11316933B2 (en) | Service meshes and smart contracts for zero-trust systems | |
Swan | Blockchain for business: Next-generation enterprise artificial intelligence systems | |
US20210117962A1 (en) | Methods and systems for digital reward processing | |
JP6704985B2 (en) | Digital asset brokerage electronic payment platform | |
US10592985B2 (en) | Systems and methods for a commodity contracts market using a secure distributed transaction ledger | |
US10776761B2 (en) | Virtual currency system | |
US20230035321A1 (en) | Systems and methods for hyperledger-based payment transactions, alerts, and dispute settlement, using smart contracts | |
US20240303737A1 (en) | System and method for manufacturing and trading securities and commodities | |
Peters et al. | Opening discussion on banking sector risk exposures and vulnerabilities from virtual currencies: An operational risk perspective | |
US20220174066A1 (en) | Graphical User Interface and Operator Console Management System for Distributed Terminal Network | |
US20200394626A1 (en) | System and method for true peer-to-peer automatic teller machine transactions using mobile device payment systems | |
US20220159002A1 (en) | Graphical User Interface and Operator Console Management System for Distributed Terminal Network | |
CN107852333A (en) | System and method for the mandate of sharable content object | |
US20240005309A1 (en) | Systems and methods for generating variable non-fungible tokens linked to designated off-chain computer resources for use in secure encrypted, communications across disparate computer network | |
EP4142206A1 (en) | Verifying integrity and secure operations of cloud-based software services | |
US20230013074A1 (en) | System and method for true peer-to-peer automatic teller machine transactions using mobile device payment systems | |
WO2022217267A1 (en) | Service meshes and smart contracts for zero-trust systems | |
Osuntokun et al. | Lightning pool: A non-custodial channel lease marketplace |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22719763 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 1020237038150 Country of ref document: KR |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 22719763 Country of ref document: EP Kind code of ref document: A1 |