This application generally relates to a distributed ledger such as a blockchain system, and more particularly, to a lottery distributed ledger network that generates and verifies a lottery number via a decentralized distributed network of distributed ledger nodes rather than through a centralized host.
A distributed Ledger is a continuously growing list of records that typically apply cryptographic techniques such as storing cryptographic hashes relating to other blocks. A blockchain is one common instance of a distributed ledger. Although, often used for financial transactions, a distributed ledger such as a blockchain can store various other types of information such as information related to goods and services (i.e., products, packages, status, etc.). A decentralized scheme provides authority and trust to a decentralized network and enables its nodes to continuously and sequentially record their transactions on a public “block”, creating a unique “chain” referred to as a distributed ledger. Cryptography, via hash codes, is used to secure an authentication of a transaction source and removes a central intermediary. The records stored on the distributed ledger can be secured from tampering and revision due to their immutable properties. Each block contains a timestamp and a link to a previous block. The distributed ledger can be used to hold, track, transfer and verify information. Since the ledger is a distributed system, before adding a transaction to the distributed ledger, peers need to reach a consensus status.
Lottery systems are commonly used to grant privileges to a user such as the privilege of a license plate (in some jurisdictions). As another example, lottery systems are used for determining prize winners, and the like. Currently, a host organization of a lottery system generates and announces a lottery result, and relies on a third party's supervision to guarantee the validation of the result. The conventional lottery process is centrally operated by the organization and is subject to accountability only to the third party's supervision. Because of this, the fairness of the lottery result is dependent on the organization's credibility and the third party's supervision. However, the lack of oversight can lead to fraud and other nefarious behavior. As such, what is needed is a lottery system that is more secure and regulated without leaving the accountability of the lottery to one or two entities.
One example embodiment may provide an organizing node system that includes at least one of a processor configured to generate an initial seed, allocate one or more authorized bits of the initial seed to each of a plurality of blocks in a distributed ledger, and store the initial seed and an identification of which authorized bits of the initial seed are allocated to each block among the plurality of blocks of the distributed ledger, and a network interface configured to receive a final seed value that is partially generated by each of a plurality of nodes configured to access the distributed ledger based on authorized bits of respective blocks updated by each respective node, wherein the processor is further configured to generate a random sequence based on the final seed value and store the random sequence in a block of the distributed ledger.
Another example embodiment may provide a method that includes at least one of generating an initial seed and allocating one or more authorized bits of the initial seed to a plurality of blocks in a distributed ledger, storing the initial seed and an identification of which authorized bits of the initial seed are allocated to each block of the distributed ledger, receiving a final seed value that is partially generated by each of a plurality of nodes configured to access the distributed ledger based on authorized bits of respective blocks updated by each respective node, and generating a random sequence value based on the final seed value and storing the random sequence value in a block of the distributed ledger.
Another example embodiment may provide a network node system that includes at least one of a processor configured to identify authorized bits of an initial seed which are uniquely allocated to a block stored in a distributed ledger accessed by a plurality of nodes, modify the identified authorized bits of the initial seed, encrypt the modified authorized bits using an encryption key of the node, and store the encrypted authorized bits in a block of the distributed ledger which includes a block of authorized bits updated by at least one other node, wherein a final seed is capable of being assembled using authorized bits modified by the node and other authorized bits modified by the at least one of the plurality of nodes stored in the distributed ledger.
Another example embodiment may provide a method that includes at least one of identifying authorized bits of an initial seed which are uniquely allocated to a block stored in a distributed ledger accessed by a plurality of nodes, modifying the identified authorized bits of the initial seed and encrypting the modified authorized bits using an encryption key of the network node, storing the encrypted authorized bits in a block of the distributed ledger that includes a block of authorized bits updated by at least one other node, wherein a final seed is capable of being assembled using the authorized bits modified by the node and other authorized bits modified by at least one other node stored in the distributed ledger.
A further example embodiment may provide a non-transitory computer readable medium comprising instructions, that when read by a processor, cause the processor to perform at least one of generating an initial seed and allocating one or more authorized bits of the initial seed to a plurality of blocks in a distributed ledger, storing the initial seed and an identification of which authorized bits of the initial seed are allocated to each block of the distributed ledger, receiving a final seed value that is partially generated by each of a plurality of nodes configured to access the distributed ledger based on authorized bits of respective blocks updated by each respective node, and generating a random sequence value based on the final seed value and storing the random sequence value in a block of the distributed ledger.
It will be readily understood that the instant components, as generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the detailed description of the embodiments of at least one of a method, an apparatus, a non-transitory computer readable medium and a system, as represented in the associated figures and description, is not intended to limit the scope of the application, but is merely representative of selected embodiments.
The instant features, structures, or characteristics as described throughout this specification may be combined in any suitable manner in one or more embodiments. For example, the usage of the phrases “example embodiments”, “some embodiments”, or other similar language, throughout this specification refers to the fact that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment. Thus, appearances of the phrases “example embodiments”, “in some embodiments”, “in other embodiments”, or other similar language, throughout this specification do not necessarily all refer to the same group of embodiments, and the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In addition, while the term “message” may have been used in the description of embodiments, the application may be applied to many types of messages or network data, such as, packet, frame, datagram, etc. Furthermore, while certain types of messages, signaling and protocols may be depicted in exemplary embodiments they are not limited to a certain type of message, signaling or protocol.
Example embodiments provide methods, devices, networks and/or systems, which support a distributed ledger for a lottery network system. In some examples, the distributed ledger is a blockchain, however embodiments are not limited thereto. The lottery network includes nodes (or peers) such as one or more organizing nodes and one or more requesting nodes (also referred to herein as network nodes) which are connected to each other via one or more networks such as the Internet, a private network, and the like. As an example, the organizing node may be a lottery organizer and the network node may be a participant in the lottery. According to various aspects, the lottery network is fair in that no central organization or entity can control or manipulate the final result stored via the distributed ledger. In addition, the random lottery sequence generation process is transparent because each participant node is involved throughout the phases of the generating and verifying of the lottery numbers. Furthermore, the lottery network of nodes is efficient because there is no need for a third party supervision.
A ledger is commonly defined as an account book of final entry, in which transactions are recorded. Ledgers can be stored on paper or electronically on a computer. A distributed ledger is a ledger that is replicated in whole or in part among multiple computers. In this example, each computer may participate in and record or otherwise store a decentralized or distributed database which serves as the ledger whereby records of transactions are stored and cryptography is used to store and update transactions. A distributed ledger can include cryptographic properties that facilitate security and accountability. For example, a distributed ledger may have its transactions become irreversible because once a transaction is recorded, cryptography ensures that it cannot be reversed. A distributed ledger with cryptographic properties may also provide accessibility because any party can access the distributed ledger in whole or in part. A distributed ledger with cryptographic properties may also be chronological and time-stamped which lets all participating entities know when a transaction was added to the ledger. A distributed ledger with cryptographic properties may also be consensus-based in that a transaction is added only if it is approved, typically unanimously, by parties on the network. A distributed ledger with cryptographic properties may also provide verifiability because all transactions can be cryptographically verified. A blockchain is an example of a distributed ledger with cryptographic properties. While the description and figures below are described in terms of a blockchain, the instant application applies equally to any distributed ledger with cryptographic properties.
Rather than the lottery numbers being generated by a single entity alone, the lottery number is generated through a distributed process whereby both an organizing node and a plurality of network nodes participate and supervise in the generation and verification phases of the lottery result. For example, the organizing node and the network nodes may participate in a distributed process via a distributed ledger such as a seed blockchain to generate a seed (numerical value) which is the input used for generating a random sequence (lottery numbers). During this initial process, the network nodes each generate a portion of the final seed value based on bits of an initial seed value distributed by the organizing node. Each network node is authorized to modify a specific portion of bits within the initial seed (referred to herein as authorized bits) and store the updated portion in a corresponding block of the distributed ledger. The bits are updated and may be stored on the distributed ledger which is replicated across all nodes. The different bits updated by the different network nodes may be combined by any of the nodes to generate an entire final seed. After the final seed is generated, the organizing node generates a random sequence using the final seed as an input, and each of the network nodes verify the random sequence based on the final seed. If a consensus of network nodes verify the random sequence, the random sequence may be output as a lottery result.
The lottery generation process may involve a first distributed process of generating the seed value via a the distributed ledger and a second distributed process of generating and verifying a random sequence via a distributed ledger. In some examples, the same distributed ledger may be used for both the first process and the second process, or different ledgers may be used. In some of the examples herein, a seed blockchain is used to generate the initial seed while a verification blockchain is used to verify a lottery result, however, embodiments are not limited thereto. A copy of the distributed ledger may be stored by each node in the lottery network. Each network node may register with the network and interact with other nodes based on a peer-to-peer protocol, such as a remote procedure call (e.g., RPC, gRPC, etc.) The communication protocol among the nodes may be implemented by the system.
In some of the examples provided below, the distributed ledger is a blockchain.
However, it should be appreciated that the examples below in which a blockchain is used may be replace the blockchain with any distributed ledger such as a distributed ledger with cryptographic properties. That is, the distributed ledger may not be a blockchain but may be another type of distributed ledger that is known or that becomes known. In these examples, different blockchain systems may be based on different communication protocols, such as Hyperledger, Ethereum, Ripple, and the like. The underlying distributed ledger system can guarantee each node has a full copy of all the information of the blocks or other storage means included in the distributed ledger.
According to various aspects, the organizing node 120 generates an initial seed value. The initial seed is a string of bits such as tens, hundreds, thousands, or like, of bits. Within the initial seed value, each network node 110 is allocated a fragment or a small subsection of bits referred to as authorized bits. The authorized bits for each network node 110 may be unique or mutually exclusive from the authorized bits of other network nodes 110. The initial seed value may be transmitted to the network nodes 110 or it may be stored by the organizing node 120 via a distributed ledger (e.g., distributed ledger 130) where it is accessed by the network nodes 110. The organizing node 120 also allocates a partial bit value from the initial seed (authorized bits) to each block in advance. The authorized bits (position) of the initial seed are unique to each block and identify which authorized bits of the initial seed value are to be updated by the network node 110 associated with the respective block. Each network node 110 updates the authorized bits associated with their respective block and stores the updated version of the authorized bits as a block in the distributed ledger 130. To keep the updated bit values secure, each network node 110 may encrypt the bit values with a private key of the respective network node 110.
When all nodes have updated and stored respective authorized bits in a block in the distributed ledger 130, a timing event has expired, or some other condition, the network nodes 110 may share public keys with each other and with the organizing node 120 thereby enabling all nodes to decrypt the encrypted updated authorized bits and assemble a final seed value from all of the blocks stored on the distributed ledger 130. By generating the final seed via a distributed process involving both the organizing node 120 and the network nodes 110, the final seed value is accountable to all nodes in the network 100. Next, the organizer node 120, also referred to as an organizing node, may generate a list of lottery numbers (also referred to as a public list or random sequence) with a pseudo-random number generator software and the seed generated by the network nodes 110. In addition, each network node 110 may generate a list of lottery numbers (also referred to as a private list) with the pseudo-random number generator software. A network node 110 may compare the public list which is generated by organizer node 120 and the private list which is generated by the node itself. If they are the same, the list is confirmed. Next, the lottery numbers may be output by either of the organizing node 120 or the network node 110.
The purpose of the lottery network system 100 is to prevent fraud. In a traditional centralized lottery, the lottery organizer generates lottery number itself and is not accountable to anyone other than possibly a third party supervisor. Therefore, there is a possibility of fraud. In the lottery network system 100 according to various embodiments described herein, each participant (both organizer node 110 and network nodes 120) are involved in the end-to-end process of generating lottery number, so no participant can control and manipulate the result. For example, each participant can store and access a distributed ledger such as a blockchain or other distributed ledger with cryptographic properties. Through the ledger, a secure seed value may be generated, and a secure lottery number may be generated based on the seed value.
A distributed ledger network is a distributed system consisting of multiple nodes that communicate with each other. A blockchain node runs programs called chaincode (e.g., smart contracts, etc.), holds state and ledger data, and executes transactions. Transactions are operations invoked on the chaincode. Transactions typically must be “endorsed” and only endorsed transactions may be committed and have an effect on the state of the blockchain. There may exist one or more special chaincodes for management functions and parameters, collectively called system chaincodes.
Nodes are the communication entities of the blockchain system. A “node” is a logical function in the sense that multiple nodes of different types can run on the same physical server. Nodes are grouped in trust domains and associated to logical entities that control them in various ways. Nodes may include different types such as a client or submitting-client node which submits a transaction-invocation to an endorser (e.g., peer), and broadcasts transaction-proposals to an ordering service (e.g., ordering node). Another type of node is a peer node which can receive client submitted transactions, commit the transactions and maintain the state and a copy of the ledger. Peers can also have the role of an endorser, although it is not a requirement. An ordering-service-node or orderer is a node running the communication service for all nodes and which implements a delivery guarantee, such as atomic or total order broadcast to each of the peer nodes in the system when committing transactions and modifying the world state.
A distributed ledger is a sequenced, tamper-resistant record of all state transitions of a network of nodes. State transitions are a result of chaincode invocations (i.e., transactions) submitted by participating parties (e.g., client nodes, ordering nodes, endorser nodes, peer nodes, etc.) A transaction may result in a set of asset key-value pairs that are committed to the ledger as creates, updates, deletes, and the like. The distributed ledger may include a blockchain (also referred to as a chain) and may store an immutable, sequenced record in blocks. The distributed ledger may also include a state database which maintains a current state of the distributed ledger. There is typically one distributed ledger associated with each channel. Each peer node maintains a copy of the distributed ledger for each channel of which they are a member.
A chain is a transaction log which is structured as hash-linked blocks, and each block contains a sequence of N transactions where N is equal to or greater than one. The block header includes a hash of the block's transactions, as well as a hash of the prior block's header. In this way, all transactions on the distributed ledger may be sequenced and cryptographically linked together. Accordingly, it is not possible to tamper with the distributed ledger data without breaking the hash links. A hash of a most recently added block represents every transaction on the chain that has come before it, making it possible to ensure that all peer nodes are in a consistent and trusted state. The chain may be stored on the peer node file system (local, attached storage, cloud, etc.), efficiently supporting the append-only nature of the distributed ledger network workload.
The current state of the distributed ledger represents the latest values for all keys that are included in the chain transaction log. Because the current state represents the latest key values known to the channel, it is sometimes referred to as a world state. Chaincode invocations execute transactions against the current state data of the distributed ledger. To make these chaincode interactions efficient, the latest values of the keys may be stored in the state database. The state database may be simply an indexed view into the chain's transaction log, it can therefore be regenerated from the chain at any time. The state database may automatically get recovered (or generated if needed) upon peer node startup, and before transactions are accepted.
The blockchain base or platform 205 may include various layers of blockchain data, services (e.g., cryptographic trust services, virtual execution environment, etc.), and underpinning physical computer infrastructure that may be used to receive and store new transactions and provide access to auditors which are seeking to access data entries. The blockchain layer 220 may expose an interface that provides access to the virtual execution environment necessary to process the program code and engage the physical infrastructure 210. Cryptographic trust services 230 may be used to verify transactions such as asset exchange transactions and keep information private.
The blockchain architecture configuration of
Within chaincode, a smart contract may be created via a high-level application and programming language, and then written to a block in the blockchain. The smart contract may include executable code which is registered, stored, and/or replicated within a blockchain (e.g., decentralized network of blockchain peers). A transaction is an execution of the smart contract code which can be performed in response to conditions associated with the smart contract being satisfied. The executing of the smart contract may trigger a trusted modification(s) to a state of the blockchain ledger. The modification(s) to the blockchain ledger caused by the smart contract execution may be automatically replicated throughout the distributed network of blockchain peers through one or more consensus protocols.
The smart contract may write data to the blockchain in the format of key-value pairs. Furthermore, the smart contract code can read the values stored in a blockchain and use them in application operations. The smart contract code can write the output of various logic operations into the blockchain. The code may be used to create a temporary data structure in a virtual machine or other computing platform. Data written to the blockchain can be public and/or can be encrypted and maintained as private. The temporary data that is used/generated by the smart contract is held in memory by the supplied execution environment, then deleted once the data needed for the blockchain is identified.
A chaincode may include the code interpretation of a smart contract, with additional features. As described herein, the chaincode may be program code deployed on a computing network, where it is executed and validated by chain validators together during a consensus process. The chaincode receives a hash and retrieves from the blockchain a hash associated with the data template created by use of a previously stored feature extractor. If the hashes of the hash identifier and the hash created from the stored identifier template data match, then the chaincode sends an authorization key to the requested service. The chaincode may write to the blockchain data associated with the cryptographic details. In this example of
Referring to
In response, the endorsing peer node 281 may verify (a) that the transaction proposal is well formed, (b) the transaction has not been submitted already in the past (replay-attack protection), (c) the signature is valid, and (d) that the submitter (client 201, in the example) is properly authorized to perform the proposed operation on that channel. The endorsing peer node 281 may take the transaction proposal inputs as arguments to the invoked chaincode function. The chaincode is then executed against a current state database to produce transaction results including a response value, read set, and write set. However, no updates are made to the blockchain ledger at this point. In step 292, the set of these values, along with the endorsing peer node's 281 signature is passed back as a proposal response to the SDK of the client 201 which parses the payload for the application to consume.
In response, the application of the client 201 inspects/verifies the endorsing peers signatures and compares the proposal responses to determine if the proposal response is the same. If the chaincode only queried the blockchain ledger, the application would inspect the query response and would typically not submit the transaction to the ordering service 284. If the client application intends to submit the transaction to ordering service 284 to update the blockchain ledger, the application determines if the specified endorsement policy has been fulfilled before submitting (i.e., did peer nodes necessary for the transaction both endorse). Here, the client may include only one of multiple parties to the transaction. In this case, each client may have their own endorsing node, and each endorsing node will need to endorse the transaction. The architecture is such that even if an application chooses not to inspect responses or otherwise forwards an unendorsed transaction, the endorsement policy will still be enforced by peers and upheld at the commit validation phase.
After successful inspection, in step 293 the client 201 assembles endorsements into a transaction and broadcasts the transaction proposal and response within a transaction message to the ordering node 284. The transaction may contain the read/write sets, the endorsing peers signatures and a channel ID. The ordering node 284 does not need to inspect the entire content of a transaction in order to perform its operation; it may simply receive transactions from all channels in the network, order them chronologically by channel, and create blocks of transactions per channel.
In step 294, the blocks of the transaction are delivered from the ordering node 284 to all peer nodes 281-283 on the channel. The transactions within the block are validated to ensure endorsement policy is fulfilled and to ensure that there have been no changes to ledger state for read set variables since the read set was generated by the transaction execution. Transactions in the block are tagged as being valid or invalid. Furthermore, in step 295 each peer node 281-283 appends the block to the channel's chain (or other distributed ledger), and for each valid transaction the write sets are committed to current state database. An event is emitted, to notify the client application that the transaction (invocation) has been immutably appended to the chain, as well as notification of whether the transaction was validated or invalidated.
A blockchain developer system 316 writes chaincode and client-side applications. The blockchain developer system 316 can deploy chaincode directly to the network through a REST interface. To include credentials from a traditional data source 330 in chaincode, the developer system 316 could use an out-of-band connection to access the data. In this example, the blockchain user 302 connects to the network through a peer node 312. Before proceeding with any transactions, the node 312 retrieves the user's enrollment and transaction certificates from the certificate authority 318. In some cases, blockchain users must possess these digital certificates in order to transact on the permissioned blockchain network 310. Meanwhile, a user attempting to drive chaincode may be required to verify their credentials on the traditional data source 330. To confirm the user's authorization, chaincode can use an out-of-band connection to this data through a traditional processing platform 320.
According to various embodiments, the lottery distributed ledger network may include and store multiple distributed ledgers such as a seed blockchain used for generating a seed value and a verification blockchain used to verify a lottery sequence generated via the seed value. Each distributed ledger may store similar information with some differences.
The distributed ledger 400 may be used by the nodes to generate a seed value for a lottery number generation program, according to example embodiments.
In
Before generating the final seed value, a map of the data blocks on the distributed ledger 400 and the corresponding seeds may be distributed to all of the network nodes. The generation of the final seed value may be performed according to multiple steps. For example, the organizer node may generate an initial seed value and submit the initial seed information to the distributed ledger network. When a network node tries to update the initial seed, the network node identifies which authorized bits of the initial seed are allocated to the respective block associated with the network node. The network node may then generate a random numeric value as the authorized bits S(RID) value (e.g. By getting a time stamp). The network node may construct seed information by placing RID, the updated seed value, and the previous seed information ID into a block. Then attach the RID within the Seed Information and submit the encrypted seed information encrypted using the Kpri(RID) to the distributed ledger. At some point, all the network nodes may submit their corresponding Kpu(RID) to the distributed ledger to enable the other network nodes to decrypt the encrypted authorized bits provided by the other network nodes. Then every node can decrypt the changed bits value in the blocks to get the final seed value.
The authorized bits are a portion or a part of the bits of the initial seed which can only be updated by the authorized network node for that block. The organizing node may assign the authorized bits to a block based on the following: for N bits long seed value, i bits of them are authorized bits; all of the possible authorized bits are C′N, represented by s[0], s[1] . . . s[K]. (K=CiN−1); the authorized bits sequence is submitted to the distributed ledger along with the initial seed value. In response, each network node may use a pseudo-random generator (PRNG) to generate a random index value X according to the block number. The authorized bits s[X] is determined. When a network node receives an identification of the authorized bits allocated to the block associated with the network node, it can update the respective authorized bits of the seed and post the updated seed as a new block to the distributed ledger 400. Here, the authorized node can only update its authorized bits, and no one can manipulate and foresee the final result of the seed value.
Before the verification stage, the software program to generate the random sequence should be distributed to all of the network nodes. The seed may be the only input of the program when generating the lottery number sequence. Initially, the organizer node will generate a random sequence based on the final seed value generated via the distributed ledger 500. The random sequence may be distributed to all the network nodes and may be referred to as a public list of numbers. Each network node may then verify the random sequence generated by the organizing node by processing the same final seed value using the software program to determine whether the random sequence generated by the organizing node is correct. If the network node verifies the random sequence, the network node may transmit notification to the organizing node. When the organizing node receives a consensus of verifications (e.g., more than 50%) the organizing node determines that the random sequence has been approved. Accordingly, the random sequence can be output by either of the organizing node and/or the network nodes as a lottery number.
For example, each network node may verify if the final seed value is correct by receiving or otherwise retrieve the random sequence from the distributed ledger network. The node may verify each requester node on the distributed ledger by decrypting the RID with Kpu(RID) and check whether the RID is the organizer's RID. The node may verify if changed seed bits are authorized in the distributed ledger. The node may pseudo-random generator (PRNG) to generate the random index value X according to the block number. The authorized bits s[X] is determined. Check if the changed bits in the block comply with the authorized bits s[X].
As another example, each network node may verify the random sequence generated by the organizing node using the final seed. For example, the node may generate the random sequence by executing the program with the generated final seed. The node may verify the random sequence from the distributed ledger network with the generated random sequence (e.g. by comparing the hash value of the random sequence from the distributed ledger network with the hash value of the generated random sequence). If all of the above verifications succeed, the network node may get the count number of the verification records from the latest valid verification record. Then the node may increase the count number by 1, construct the verification record by placing the count number of the verification records, the RID, the previous verification record Id and the encrypted RID with Kpri(RID), and submit the constructed Verification Record to the distributed ledger network. When the block containing the verification record is generated, the distributed ledger system may verify the requester of the verification record by decrypting and checking the encrypted RID, and check whether the count number of the verification records is acceptable by checking whether the increment of the count number is 1. When the above verification succeeds, the verification record may be recorded in the block and the verification record Id may be generated. Finally, the latest valid verification record in the distributed ledger network contains the total count number of the verification records. When the count number is greater than the 50% of the requesters of the lottery system, the verification of the requester list succeed.
The above embodiments may be implemented in hardware, in a computer program executed by a processor, in firmware, or in a combination of the above. A computer program may be embodied on a computer readable medium, such as a storage medium. For example, a computer program may reside in random access memory (“RAM”), flash memory, read-only memory (“ROM”), erasable programmable read-only memory (“EPROM”), electrically erasable programmable read-only memory (“EEPROM”), registers, hard disk, a removable disk, a compact disk read-only memory (“CD-ROM”), or any other form of storage medium known in the art.
An exemplary storage medium may be coupled to the processor such that the processor may read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an application specific integrated circuit (“ASIC”). In the alternative, the processor and the storage medium may reside as discrete components. For example,
In computing node 700 there is a computer system/server 702, which is operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, and/or configurations that may be suitable for use with computer system/server 702 include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments that include any of the above systems or devices, and the like.
Computer system/server 702 may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, and so on that perform particular tasks or implement particular abstract data types. Computer system/server 702 may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
As shown in
The bus represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnects (PCI) bus.
Computer system/server 702 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer system/server 702, and it includes both volatile and non-volatile media, removable and non-removable media. System memory 706, in one embodiment, implements the flow diagrams of the other figures. The system memory 706 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 710 and/or cache memory 712. Computer system/server 702 may further include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only, storage system 714 can be provided for reading from and writing to a non-removable, non-volatile magnetic media (not shown and typically called a “hard drive”). Although not shown, a magnetic disk drive for reading from and writing to a removable, non-volatile magnetic disk (e.g., a “floppy disk”), and an optical disk drive for reading from or writing to a removable, non-volatile optical disk such as a CD-ROM, DVD-ROM or other optical media can be provided. In such instances, each can be connected to the bus by one or more data media interfaces. As will be further depicted and described below, memory 706 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of various embodiments of the application.
Program/utility 716, having a set (at least one) of program modules 718, may be stored in memory 706 by way of example, and not limitation, as well as an operating system, one or more application programs, other program modules, and program data. Each of the operating system, one or more application programs, other program modules, and program data or some combination thereof, may include an implementation of a networking environment. Program modules 718 generally carry out the functions and/or methodologies of various embodiments of the application as described herein.
As will be appreciated by one skilled in the art, aspects of the present application may be embodied as a system, method, or computer program product. Accordingly, aspects of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, aspects of the present application may take the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied thereon.
Computer system/server 702 may also communicate with one or more external devices 720 such as a keyboard, a pointing device, a display 722, etc.; one or more devices that enable a user to interact with computer system/server 702; and/or any devices (e.g., network card, modem, etc.) that enable computer system/server 702 to communicate with one or more other computing devices. Such communication can occur via I/O interfaces 724. Still yet, computer system/server 702 can communicate with one or more networks such as a local area network (LAN), a general wide area network (WAN), and/or a public network (e.g., the Internet) via network adapter 726. As depicted, network adapter 726 (e.g., network interface, etc.) communicates with the other components of computer system/server 702 via a bus. It should be understood that although not shown, other hardware and/or software components could be used in conjunction with computer system/server 702. Examples, include, but are not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.
According to various embodiments, the processor 704 may generate an initial seed and allocate one or more authorized bits of the initial seed to each block from among a plurality of blocks in a distributed ledger (e.g., seed blockchain). The processor 704 may store the initial seed and an identification of which authorized bits of the initial seed are allocated to each block of the distributed ledger. The authorized bit sequence may be stored in the block or otherwise provided to the network nodes such as through broadcast transmission, etc. The distributed ledger may be stored in memory 706 and replicated across all of the nodes in the lottery distributed ledger. The network interface 726 may receive a final seed value that is partially generated by each of the plurality of network nodes via the distributed ledger based on the authorized bits allocated to and updated by each respective network node. In this example, the processor 704 may generate a random sequence based on the final seed value and store the random sequence in a block of a verification distributed ledger. Here, the receiving may include receiving seed distributed ledger data (e.g., authorized bits) that has been encrypted by network nodes, decrypting the seed distributed ledger data, and determining a final seed based on the decrypted data.
According to various other embodiments, the network interface 724 may receive an initial seed generated by an organizing node of a distributed ledger network that includes a plurality of distributed ledger nodes. For example, the initial seed may be retrieved from a distributed ledger received from a node in the distributed ledger network, and the like. The processor 704 may identify authorized bits of the initial seed which are uniquely allocated to a block of the distributed ledger associated with the network node from among the plurality of network nodes, modify the identified authorized bits of the initial seed, encrypt the modified authorized bits using an encryption key of the network node, and store the encrypted authorized bits in a block of the distributed ledger that includes blocks of authorized bits of each of the plurality of network nodes. In this example, the processor 704 may generate or otherwise assemble a final seed using the authorized bits modified by the network node and other authorized bits modified by the plurality of network nodes stored in the distributed ledger and the network interface is further configured to transmit the final seed to the organizing node.
The authorized bits may be bits within the initial seed (or bit positions) that are allocated to a block and which is associated with a network node. Each block may be allocated different authorized bits (e.g., mutually exclusive bits) of the initial seed. Accordingly, each network node may access the distributed ledger, receive access to a block, and may be responsible for modifying authorized bits associated with that respective block when it interacts with the distributed ledger. The node may store the updated authorized bits of a block via the same block of the distributed ledger. In some embodiments, the allocating may include allocating a same amount of authorized bits from the initial seed to each block from among the plurality of blocks corresponding to a plurality of network nodes. In some embodiments, the amount of authorized bits allocated to each block may be determined based on a number of bits in the initial seed and an amount of nodes included in the plurality of network nodes.
In 830, the method includes storing the initial seed and an identification of which authorized bits of the initial seed are allocated to each block within a plurality of blocks of the distributed ledger. For example, the block may include an ID of a network node (e.g., a requesting node) associated with the block, an initial seed value, an identification of which bits of the initial seed value are allocated to the respective block corresponding to the network node of the ID, and the like. When all network nodes update their respective authorized bits of the initial seed, the network nodes may store the updated values on the seed distributed ledger in encrypted form.
In 840, the method includes receiving a final seed value that is partially generated by each of the plurality of nodes configured to access the distributed ledger based on the authorized bits updated by each respective node among the plurality of network nodes. For example, the receiving the final seed may include receiving an encryption key of each of the plurality of nodes and decrypting encrypted authorized bits updated by each respective node stored in the seed distributed ledger based on a respective encryption key of each respective node. In this example, the method may further include assembling the final seed based on the encrypted authorized bits updated by each respective node from among the plurality of network nodes.
In 850, the method includes generating a random sequence value based on the final seed value and storing the random sequence value in a block of the distributed ledger. The random sequence may be a sequence of randomly generated numbers corresponding to a lottery ticket, lottery balls, lottery numbers, and the like. In some embodiments, each network node may generate a corresponding random sequence and transmit a notification to the organizing node indicating whether the network node has verified the random number sequence generated by the organizing node (by generating the same random number sequence). In this example, referring to
In 920, the method includes modifying the identified authorized bits of the initial seed and encrypting the modified authorized bits using an encryption key of the network node. For example, the authorized bits may be updated using a random sequence generator to generate a random number or sequence of random numbers for the authorized bits. In 930, the method includes storing the encrypted authorized bits in a block of the distributed ledger that includes authorized bits modified by at least one other node from among the plurality of network nodes. For example, the network node may encrypt the modified/updated authorized bits with a private key and store the encrypted bits in a block of the distributed ledger. In some embodiments, the method may further include transmitting the encryption key of the network node to the plurality of network nodes for decrypting the authorized bits of the network node stored in the seed distributed ledger.
Furthermore, in 940, the method may include assembling a final seed using the authorized bits of the initial seed modified by the network node and other authorized bits of the initial seed modified by the at least one other node which are stored in a block of the distributed ledger. In this example, the method may further include transmitting the generated final seed to the organizing node. For example, in
In some embodiments, the method 900 may further include generating a random sequence value based on the final seed value and storing the generated random sequence value in a block of the distributed ledger. In some embodiments, the method 900 may further include receiving a random sequence value from the organizing node, verifying the random sequence value generated by the organizing node based on the generated random sequence value, and transmitting a result of the verification to the organizing node.
Although an exemplary embodiment of at least one of a system, method, and non-transitory computer readable medium has been illustrated in the accompanied drawings and described in the foregoing detailed description, it will be understood that the application is not limited to the embodiments disclosed, but is capable of numerous rearrangements, modifications, and substitutions as set forth and defined by the following claims. For example, the capabilities of the system of the various figures can be performed by one or more of the modules or components described herein or in a distributed architecture and may include a transmitter, receiver or pair of both. For example, all or part of the functionality performed by the individual modules, may be performed by one or more of these modules. Further, the functionality described herein may be performed at various times and in relation to various events, internal or external to the modules or components. Also, the information sent between various modules can be sent between the modules via at least one of: a data network, the Internet, a voice network, an Internet Protocol network, a wireless device, a wired device and/or via plurality of protocols. Also, the messages sent or received by any of the modules may be sent or received directly and/or via one or more of the other modules.
One skilled in the art will appreciate that a “system” could be embodied as a personal computer, a server, a console, a personal digital assistant (PDA), a cell phone, a tablet computing device, a smartphone or any other suitable computing device, or combination of devices. Presenting the above-described functions as being performed by a “system” is not intended to limit the scope of the present application in any way, but is intended to provide one example of many embodiments. Indeed, methods, systems and apparatuses disclosed herein may be implemented in localized and distributed forms consistent with computing technology.
It should be noted that some of the system features described in this specification have been presented as modules, in order to more particularly emphasize their implementation independence. For example, a module may be implemented as a hardware circuit comprising custom very large scale integration (VLSI) circuits or gate arrays, off-the-shelf semiconductors such as logic chips, transistors, or other discrete components. A module may also be implemented in programmable hardware devices such as field programmable gate arrays, programmable array logic, programmable logic devices, graphics processing units, or the like.
A module may also be at least partially implemented in software for execution by various types of processors. An identified unit of executable code may, for instance, comprise one or more physical or logical blocks of computer instructions that may, for instance, be organized as an object, procedure, or function. Nevertheless, the executables of an identified module need not be physically located together, but may comprise disparate instructions stored in different locations which, when joined logically together, comprise the module and achieve the stated purpose for the module. Further, modules may be stored on a computer-readable medium, which may be, for instance, a hard disk drive, flash device, random access memory (RAM), tape, or any other such medium used to store data.
Indeed, a module of executable code could be a single instruction, or many instructions, and may even be distributed over several different code segments, among different programs, and across several memory devices. Similarly, operational data may be identified and illustrated herein within modules, and may be embodied in any suitable form and organized within any suitable type of data structure. The operational data may be collected as a single data set, or may be distributed over different locations including over different storage devices, and may exist, at least partially, merely as electronic signals on a system or network.
It will be readily understood that the components of the application, as generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the detailed description of the embodiments is not intended to limit the scope of the application as claimed, but is merely representative of selected embodiments of the application.
One having ordinary skill in the art will readily understand that the above may be practiced with steps in a different order, and/or with hardware elements in configurations that are different than those which are disclosed. Therefore, although the application has been described based upon these preferred embodiments, it would be apparent to those of skill in the art that certain modifications, variations, and alternative constructions would be apparent.
While preferred embodiments of the present application have been described, it is to be understood that the embodiments described are illustrative only and the scope of the application is to be defined solely by the appended claims when considered with a full range of equivalents and modifications (e.g., protocols, hardware devices, software platforms etc.) thereto.