WO2020103782A1 - 一种电视数据的共享方法、存储介质及应用服务器 - Google Patents

一种电视数据的共享方法、存储介质及应用服务器

Info

Publication number
WO2020103782A1
WO2020103782A1 PCT/CN2019/119134 CN2019119134W WO2020103782A1 WO 2020103782 A1 WO2020103782 A1 WO 2020103782A1 CN 2019119134 W CN2019119134 W CN 2019119134W WO 2020103782 A1 WO2020103782 A1 WO 2020103782A1
Authority
WO
WIPO (PCT)
Prior art keywords
smart
data
chain
geographic
time
Prior art date
Application number
PCT/CN2019/119134
Other languages
English (en)
French (fr)
Inventor
严方红
孙茂杰
Original Assignee
深圳Tcl新技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳Tcl新技术有限公司 filed Critical 深圳Tcl新技术有限公司
Publication of WO2020103782A1 publication Critical patent/WO2020103782A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server

Definitions

  • the present disclosure relates to the technical field of regional chain consensus mechanism, and in particular, to a TV data sharing method, storage medium, and application server.
  • Blockchain is a decentralized distributed ledger system. Ledgers are formed by blocks containing several transaction records linked by hash values. The ledger maintained by each node of the distributed system needs to be consistent, so a rule is needed to replicate the state between the nodes in the system. State replication is achieved by executing the same command sequence on the basis of the same state, ensuring data consistency.
  • the command sequence in the blockchain is the transaction sequence, and the transaction sequence exists in the block. Therefore, the state replication of each node in the blockchain is the process by which all nodes reach consensus on the next block added to the chain, and This algorithm for reaching consensus on blocks is called a consensus mechanism.
  • the present disclosure aims to provide a TV data sharing method, storage medium, and application server to apply the consensus mechanism to a distributed smart TV system.
  • a method for sharing TV data including:
  • the data index is registered in the private chain of the smart TV containing the TV according to the consensus mechanism based on the physical area and the time area, so that the TVs in the private chain of the smart TV share the shared data.
  • the generating a data index according to the shared data specifically includes:
  • a data index is generated according to the hash value of the shared data and the feature value of the shared data, where the data index is used in the private chain of the smart TV according to the consensus mechanism.
  • the data index is registered in the TV private chain according to the consensus mechanism based on the physical area and the time area, so that the TV in the TV private chain shares the shared data specifically includes:
  • Group the smart TVs included in the smart TV private chain according to geographic regions to obtain several geographical groups, and use each geographical group as a geographic node of the smart TV private chain;
  • the data index is recorded in each smart TV included in the geographical group corresponding to the geographical node, so that the smart TVs in the private chain of the smart TV share the shared data.
  • the smart TVs included in the smart TV private chain are grouped according to geographic regions to obtain several geographical groups, and each geographical group as a geographic node of the smart TV private chain specifically includes:
  • Grouping the smart TVs included in the smart TV private chain to obtain geographical groupings based on the administrative area as the basis for division, and taking each geographical grouping as a geographic node of the smart TV private chain.
  • the smart TVs included in the smart TV private chain are grouped according to time zones to obtain a number of time groups, and all the time groups obtained by division are combined to obtain a time zone chain, where each time
  • the nodes grouped into a time zone chain specifically include:
  • each smart TV included in the private chain of the smart TV is grouped to obtain a number of time groups, and all the time groups obtained by the division are combined to obtain a time zone chain.
  • the time zone area is determined based on the time zone; the acquiring the geographical location of each smart TV included in the private chain of the smart TV, and determining the location of each smart TV according to the geographical location
  • the specific time zone is:
  • For each smart TV in the smart TV private chain obtain the time zone corresponding to the geographical location of the smart TV, and set the time zone as the time zone of the smart TV.
  • the determining the contribution value of each geographic node according to the time-region chain, using the contribution value as an equity and determining the geographic node corresponding to the data index by means of proof of equity specifically includes:
  • the contribution value of each smart TV is calculated according to the time zone chain
  • For each geographic node determine all smart TVs corresponding to the geographic node, and determine the contribution value of the geographic node according to all determined contribution values;
  • the contribution value is used as an equity and the geographic node corresponding to the data index is determined in the form of proof of equity.
  • the determining of the geographic node corresponding to the data index by using the contribution value as the equity and proving the equity specifically includes:
  • the geographical node that records the data index is determined according to the result of the competition accounting.
  • the contribution value of the geographic node is the proof of work of the geographic node; the use of the contribution value as the equity and the competition accounting in the form of proof of equity specifically include:
  • the hashing algorithm of the contribution value of each smart TV is the validity of the smart TV P, the contribution effort of the smart TV PW, the validity of the nodes online in the time zone chain at the same time T, and the time zone The product of the chain effective online weighted value TW, where, when the validity is valid, the validity takes 1; when the validity is invalid, the validity takes 0.
  • the online weighted value is proportional to the number of simultaneous online nodes in the time zone chain.
  • the method further includes :
  • the geographic node obtains tokens corresponding to the data index, and distributes the tokens to each smart TV according to the online time and performance of each smart TV included in the token.
  • the consensus mechanism is configured with a punishment mechanism, and the punishment mechanism is that within a preset time condition corresponding to a geographic node, when a smart TV is in a working state in the geographic node, the geographic node Normal accounting.
  • a computer-readable storage medium stores one or more programs, and the one or more programs may be executed by one or more processors to implement the television data as described above Steps in your sharing method.
  • An application server includes: a processor, a memory, and a communication bus; a computer-readable program executable by the processor is stored on the memory;
  • the communication bus realizes connection communication between the processor and the memory
  • the present disclosure provides a TV data sharing method, storage medium, and application server.
  • the method includes acquiring TV shared data and generating a data index based on the shared data;
  • the consensus mechanism of the physical area and the time area registers the data index in the TV private chain, so that the TVs in the TV private chain share the shared data.
  • the present disclosure realizes data sharing within the private chain of the TV by determining the contribution value of each accounting point according to the geographic area and the time area, and determining the allocation of the accounting right based on the contribution value.
  • FIG. 1 is a flowchart of an embodiment of a television data sharing method provided by the present disclosure.
  • FIG. 2 is a flowchart of step S20 in an embodiment of a television data sharing method provided by the present disclosure.
  • FIG. 3 is a flowchart of step S21 in an embodiment of a television data sharing method provided by the present disclosure.
  • FIG. 4 is a flowchart of step S22 in an embodiment of a television data sharing method provided by the present disclosure.
  • FIG. 5 is a flowchart of step S23 in an embodiment of a television data sharing method provided by the present disclosure.
  • FIG. 6 is a structural schematic diagram of an embodiment of an application server provided by the present disclosure.
  • the present disclosure provides a TV data sharing method, storage medium, and application server.
  • the disclosure will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present disclosure and are not intended to limit the present disclosure.
  • FIG. 1 is a flowchart of a preferred embodiment of a method for sharing TV data provided by the present disclosure.
  • the method includes:
  • the shared data is data released by the TV and shared with other TVs in the TV private chain. That is to say, when there is shared data in the private chain of the TV, a data index is generated based on the shared data, so that the shared data can be found according to the data index.
  • the data index may be composed of a hash value of the shared data and a characteristic value of the shared data, wherein the hash value of the shared data is obtained by hashing and encrypting the shared data, and The data index is written into the smart TV private chain of the distributed smart TV according to the consensus mechanism.
  • the TV private chain may include multiple distributed nodes, where each distributed node may specifically be composed of multiple TVs or a single TV.
  • each TV can join the TV private chain by applying, that is, register the TV as a distributed node in the TV private chain, and after successful registration, the distributed nodes in the TV private chain have the reserve TV private chain , Shared data and submit shared data acquisition requests and other functions.
  • the consensus mechanism based on geographic area and time area is to calculate the contribution value of each determined geographic node based on the geographic area and time area, and use the contribution value as an equity to compete in the manner of proof of equity Accounting, so as to account for the shared data according to the consensus mechanism, so as to share the location of the shared data with other TVs in the TV private chain, so that the shared data is shared.
  • the accounting of the data index of the shared data according to the consensus mechanism is to determine the geographic node that accounts for the data index of the shared data by the consensus mechanism, and index the data of the shared data Recorded in all smart TVs included in the geographical group corresponding to the geographical node, the manager in the geographical node synchronizes the data index of the shared data to the managers of other geographical nodes, so that each in the smart TV private chain
  • the smart TV may obtain the shared data through the smart TV included in the geographic grouping, thereby sharing the shared data.
  • the data index is registered in the TV private chain according to the consensus mechanism based on the physical area and the time area, so that the TV in the TV private chain Sharing the shared data includes the following steps:
  • the geographic area is a geographic location area, and the geographic area is based on the geographic location where the smart TV is located as a division basis.
  • the administrative area of a geographic area may be used as a division basis.
  • the administrative area may use a province or a city as a unit, and the foreign area may use a state or a city as a unit.
  • the administrative area can be determined according to the size of the blockchain, for example, in units of countries, in units of streets, etc.
  • the smart TVs included in the smart TV private chain are grouped according to geographic regions to obtain several geographical groups, and each geographical group is regarded as a smart TV private chain
  • a geographic node of includes:
  • S212 Group the smart TVs included in the private chain of the smart TV based on the administrative area as a division to obtain geographical groups, and use each geographical group as a geographic node of the private chain of the smart TV.
  • the geographic group includes at least one smart TV. All the smart TVs included in the geographic group jointly use a geographic node for billing, and all the smart TVs in the geographic node act as miners. At the time of coins, geographic nodes distribute tokens according to the online time and performance of smart TV miners. That is to say, after acquiring the accounting right for each geographic node, the geographic node obtains the token corresponding to the accounting right, and allocates the token to each smart according to the online time and performance of each smart TV included in the token TV. Wherein, the performance is the performance of the smart TV itself, which can be obtained by calling the configuration table of the smart TV.
  • the punishment mechanism of the consensus mechanism is that, under a preset time condition of a geographic area, when a smart TV is stored in a geographic node in a working state, the geographic node normally keeps accounts.
  • the preset time condition is preset, for example, from 6 am to 12 pm, etc.
  • the time zone is determined based on the time zone, for example, an area within Beijing time and an area within Washington time.
  • the time zone includes 24 zones, and correspondingly, 24 time groups can be divided according to the time zone.
  • the smart TVs included in the smart TV private chain are grouped according to time zone to obtain several time groups, and all the time groups obtained by the division are combined
  • the time zone chain specifically includes:
  • S221 Obtain the geographical location of each smart TV included in the private chain of the smart TV, and determine the time zone area of each smart TV according to the geographical location;
  • the geographic location determines that the time zone area of each smart TV is the time zone corresponding to the geographic location, and the time zone is set as the time zone area of the smart TV.
  • the geographical location of the smart TV is Beijing
  • the time zone corresponding to Beijing is the Beijing time zone
  • the time zone area where the smart TV is located is the Beijing time zone area.
  • the time grouping is based on the time zone to divide the blocks, and all smart TVs included in each block are in the same time zone. In other words, 24 time groups can be obtained by dividing the blocks according to the time zone area.
  • the contribution value of each geographic node is obtained based on the contribution value of all smart TVs included in each geographic node, and the contribution value is the proof of work of each geographic node.
  • the proof of work is used as the equity of the proof of equity, so the proof of work is determined by combining the proof of work and proof of equity.
  • the contribution value of each geographic node is determined according to the time zone chain, and the contribution value is used as equity to conduct competition accounting in the manner of proof of equity This includes:
  • the contribution value of each smart TV may be determined according to the effectiveness of the smart TV, the workload of the smart TV contribution, and the time zone chain.
  • the contribution value of each smart TV is calculated using a hash algorithm according to the effectiveness of the smart TV, the workload of the smart TV contribution, and the time zone chain.
  • the hash algorithm of the contribution value of each smart TV can be: the contribution value of each smart TV is equal to the effectiveness of the smart TV P, the contribution of the smart TV PW, the validity of the nodes online in the time zone chain T and the time The product of the area chain effective online weighted value TW, where when the validity is valid, the validity takes 1; when the validity is invalid, the validity takes 0.
  • the online weighted value is proportional to the number of simultaneous online nodes in the time zone chain. That is, the greater the number of simultaneous online nodes, the greater the weighted value.
  • the present disclosure also provides a computer readable storage medium, the computer storable medium has one or more programs, and the one or more programs can be executed by one or more processors To implement the steps of the TV data sharing method described in the above embodiment.
  • the present disclosure also provides a terminal device, as shown in FIG. 6, including: the present disclosure also provides an application server, which includes at least one processor (processor) 20; the display screen 21 ; And memory (memory) 22, may also include a communication interface (Communications) Interface 23 and bus 24.
  • the processor 20, the display screen 21, the memory 22 and the communication interface 23 can complete communication with each other through the bus 24.
  • the display screen 21 is set to display a user guide interface preset in the initial setting mode.
  • the communication interface 23 can transmit information.
  • the processor 20 may call logical instructions in the memory 22 to execute the method in the above-mentioned embodiment.
  • logic instructions in the aforementioned memory 22 may be implemented in the form of software functional units and sold or used as independent products, and may be stored in a computer-readable storage medium.
  • the memory 22 as a computer-readable storage medium may be configured to store software programs and computer-executable programs, such as program instructions or modules corresponding to the method in the embodiments of the present disclosure.
  • the processor 20 executes functional applications and data processing by running software programs, instructions, or modules stored in the memory 22, that is, implementing the method in the foregoing embodiment.
  • the memory 22 may include a storage program area and a storage data area, wherein the storage program area may store an operating system and application programs required for at least one function; the storage data area may store data created according to the use of a terminal device and the like.
  • the memory 22 may include a high-speed random access memory, and may also include a non-volatile memory.
  • U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or CD-ROM and other media that can store program codes can also be temporary State storage media.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本公开了一种电视数据的共享方法、存储介质及应用服务器,所述方法包括:获取电视的共享数据,并根据所述共享数据生成数据索引;按照基于物理区域和时间区域的共识机制将所述数据索引登记在电视私有链的中,以使得电视私有链中的电视共享所述共享数据。本公开通过依据地理区域和时间区域确定各记账点的贡献值,并依据所述贡献值确定分配记账,实现电视私有链内的数据共享。

Description

一种电视数据的共享方法、存储介质及应用服务器
优先权要求说明:
本申请要求于2018年11月21日提交中国专利局、申请号为2018113908893、申请名称为“一种电视数据的共享方法、存储介质及应用服务器”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本公开涉及区域链共识机制技术领域,特别涉及一种电视数据的共享方法、存储介质及应用服务器。
背景技术
区块链是一种去中心化的分布式账本系统,账本是由包含若干交易记录的区块通过哈希值链接而成。分布式系统各节点所维护的账本需要保证一致,因此需要一个规则实现系统中节点间的状态复制。状态复制通过在相同状态的基础上执行相同的命令序列来实现,保证数据的一致性。区块链中的命令序列即交易序列,而交易序列存在于区块当中,因此,区块链中各节点实现状态复制即是所有节点对下一个加入链中的区块达成共识的过程,而这种对区块达成共识的算法则称为共识机制。
目前广泛采用的共识机制包括工作量证明(POW),权益证明(POS),委托权益证明(DPOS),重要性证明(POI),实用拜占庭容错(PBFT)以及授权拜占庭容错(DBFT)等。但是,由于智能电视私有链具有地域特性和时间特性,从而相应的共识机制无法直接应用于智能电视私有链。
因而现有技术还有待改进和提高。
公开内容
鉴于现有技术的不足,本公开旨在提供一种电视数据的共享方法、存储介质及应用服务器,以将所述共识机制应用于分布式智能电视系统。
本公开所采用的技术方案如下:
一种电视数据的共享方法,其包括:
获取电视的共享数据,并根据所述共享数据生成数据索引;
按照基于物理区域和时间区域的共识机制将所述数据索引登记在包含所述电视的智能电视私有链中,以使得所述智能电视私有链中的电视共享所述共享数据。
进一步,在一个实施例中,所述根据所述共享数据生成数据索引具体为:
根据所述共享数据的哈希值以及所述共享数据的特征值生成数据索引,其中,所述数据索引用于按照共识机制所述智能电视私有链中。
进一步,在一个实施例中,所述按照基于物理区域和时间区域的共识机制将所述数据索引登记在电视私有链的中,以使得电视私有链中的电视共享所述共享数据具体包括:
将智能电视私有链包含的智能电视按照地理区域进行分组得到若干地理分组,并将每个地理分组作为智能电视私有链的一个地理节点;
将智能电视私有链包含的智能电视按照时间区域进行分组得到若干时间分组,并将划分得到的所有时间分组进行联合以得到时间区域链,其中,每个时间分组为时间区域链的节点;
依据时间区域链确定各地理节点的贡献值,将所述贡献值作为权益并以权益证明的方式确定所述数据索引对应的地理节点;
将所述数据索引记录于所述地理节点对应的地理分组包含的各智能电视中,以使得智能电视私有链中的智能电视共享所述共享数据。
进一步,在一个实施例中,所述将智能电视私有链包含的智能电视按照地理区域进行分组得到若干地理分组,并将每个地理分组作为智能电视私有链的一个地理节点具体包括:
获取智能电视私有链包含的各智能电视所处的地理位置,并根据所述地理位置确定各智能电视所处的行政区域;
以行政区域作为划分依据对智能电视私有链包含的智能电视进行分组以得到地理分组,并将各地理分组作为智能电视私有链的一个地理节点。
进一步,在一个实施例中,所述将智能电视私有链包含的智能电视按照时间区域进行分组得到若干时间分组,并将划分得到的所有时间分组进行联合以得到时间区域链,其中,每个时间分组为时间区域链的节点具体包括:
获取智能电视私有链包含的各智能电视所处的地理位置,并根据所述地理位置确定各智能电视所处的时区区域;
以时区区域作为划分依据对智能电视私有链包含的各智能电视进行分组以得到若干时间分组,并将划分得到的所有时间分组进行联合以得到时间区域链。
进一步,在一个实施例中,所述时区区域是以时区为依据确定的;所述获取智能电视私有链包含的各智能电视所处的地理位置,并根据所述地理位置确定各智能电视所处的时区区域具体为:
针对于智能电视私有链中的每个智能电视,获取该智能电视所处的地理位置对应的时区,将该时区设置为该智能电视所处的时区区域。
进一步,在一个实施例中,所述依据时间区域链确定各地理节点的贡献值,将所述贡献值作为权益并以权益证明的方式确定所述数据索引对应的地理节点具体包括:
当智能电视私有链接收到索引数据时,依据时间区域链计算各智能电视的贡献值;
针对于每一地理节点,确定该地理节点对应的所有智能电视,并根据确定得到的所有的贡献值确定该地理节点的贡献值;
将贡献值作为权益并以权益证明的方式确定所述数据索引对应的地理节点。
进一步,在一个实施例中,所述将贡献值作为权益并以权益证明的方式确定所述数据索引对应的地理节点具体包括:
以所述贡献值作为权益,并以权益证明的方式进行竞争记账,得到竞争记账的结果;
根据所述竞争记账的结果确定对所述数据索引进行记账的地理节点。
进一步,在一个实施例中,所述地理节点的贡献值为所述地理节点的工作量证明;所述以所述贡献值作为权益,并以权益证明的方式进行竞争记账具体为:
以所述地理节点的工作量证明作为权益证明的权益,以将所述工作量证明与权益证结合的方式进行竞争记账。
进一步,在一个实施例中,所述各智能电视的贡献值的哈希算法为智能电视的有效性P、智能电视贡献力工作量PW、时间区域链内节点同时在线的有效性T以及时间区域链有效在线加权数值TW的乘积,其中,当所述有效性为有效时,所述有效性取1;当所述有效性为无效时,所述有效性取0。
进一步,在一个实施例中,所述在线加权数值与时间区域链中同时在线节点的数量成正比。
进一步,在一个实施例中,所述将所述数据索引记录于所述地理节点对应的地理分组包含的各智能电视中,以使得智能电视私有链中的智能电视共享所述共享数据之后还包括:
所述地理节点获取所述数据索引对应的代币,并将所述代币按照其包含的各智能电视的在线时间以及性能分配至各智能电视。
进一步,在一个实施例中,所述共识机制配置有惩罚机制,所述惩罚机制为在地理节点对应的预设时间条件内,当地理节点内存在一智能电视处于工作状态时,所述地理节点正常记账。
一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如上任一所述的电视数据的共享方法中的步骤。
一种应用服务器,其包括:处理器、存储器及通信总线;所述存储器上存储有可被所述处理器执行的计算机可读程序;
所述通信总线实现处理器和存储器之间的连接通信;
所述处理器执行所述计算机可读程序时实现如上任一所述的电视数据的共享方法中的步骤。
有益效果:与现有技术相比,本公开提供了一种电视数据的共享方法、存储介质及应用服务器,所述方法包括获取电视的共享数据,并根据所述共享数据生成数据索引;按照基于物理区域和时间区域的共识机制将所述数据索引登记在电视私有链的中,以使得电视私有链中的电视共享所述共享数据。本公开通过依据地理区域和时间区域确定各记账点的贡献值,并依据所述贡献值确定分配记账权,实现电视私有链内的数据共享。
附图说明
图1为本公开提供的电视数据的共享方法的一个实施例的流程图。
图2为本公开提供的电视数据的共享方法的一个实施例中步骤S20的流程图。
图3为本公开提供的电视数据的共享方法的一个实施例中步骤S21的流程图。
图4为本公开提供的电视数据的共享方法的一个实施例中步骤S22的流程图。
图5为本公开提供的电视数据的共享方法的一个实施例中步骤S23的流程图。
图6为本公开提供的应用服务器的一个实施例的结构原理图。
具体实施方式
本公开提供一种电视数据的共享方法、存储介质及应用服务器,为使本公开的目的、技术方案及效果更加清楚、明确,以下参照附图并举实施例对本公开进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本公开,并不用于限定本公开。
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本公开的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。
本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本公开所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。
下面结合附图,通过对实施例的描述,对公开内容作进一步说明。
请参照图1,图1为本公开提供的一种电视数据的共享方法的较佳实施例的流程图。所述方法包括:
S10、获取电视的共享数据,并根据所述共享数据生成数据索引。
具体地,所述共享数据为电视发布的共享给电视私有链中其他电视的数据。也就是说,所述电视私有链中的存在共享数据时,根据所述共享数据生成数据索引,以便于根据所述数据索引查找所述共享数据。其中,所述数据索引可以是有该共享数据的哈希值与该共享数据的特征值构成的,其中,所述共享数据的哈希值为对所述共享数据进行哈希加密得到的,同时,所述数据索引是被按照共识机制写入分布式智能电视的智能电视私有链中。此外,所述电视私有链可以包括多个分布式节点,其中,每个分布式节点可以具体是有多个电视构成,也可以是有单个电视构成。当然,各电视可以通过申请加入所述电视私有链,即将电视注册成为所述电视私有链中的分布式节点,并在注册成功后,所述电视私有链中的分布式节点具有储备电视私有链、共享数据以及提交共享数据获取请求等功能。
S20、按照基于物理区域和时间区域的共识机制将所述数据索引登记在智能电视私有链的中,以使得智能电视私有链中的智能电视共享所述共享数据。
具体地,所述基于地理区域和时间区域的共识机制是以所述地理区域和时间区域来计算所述确定各地理节点的贡献值,并以所述贡献值作为权益以权益证明的方式进行竞争记账,从而根据所述共识机制对所述共享数据进行记账,以便于向电视私有链中的其他电视共享所述共享数据的位置,以使得所述共享数据的共享。其中,所述根据共识机制对所述共享数据的数据索引进行记账是以所述共识机制来确定对所述共享数据的数 据索引进行记账的地理节点,并将所述共享数据的数据索引记录在所述地理节点对应的地理分组包含的所有智能电视中,所述地理节点中的管理者将所述共享数据的数据索引同步至其他地理节点的管理者,这样智能电视私有链中的各智能电视可以通过所述地理分组包含的智能电视获取到所述共享数据,实现了所述共享数据的共享。
同时在本实施例的一个实现方式中,如图2所示,所述按照基于物理区域和时间区域的共识机制将所述数据索引登记在电视私有链的中,以使得电视私有链中的电视共享所述共享数据,包括以下步骤:
S21、将智能电视私有链包含的智能电视按照地理区域进行分组得到若干地理分组,并将每个地理分组作为智能电视私有链的一个地理节点;
S22、将智能电视私有链包含的智能电视按照时间区域进行分组得到若干时间分组,并将划分得到的所有时间分组进行联合以得到时间区域链,其中,每个时间分组为时间区域链的节点;
S23、依据时间区域链确定各地理节点的贡献值,将所述贡献值作为权益并以权益证明的方式确定所述数据索引对应的地理节点;
S24、将所述数据索引记录于所述地理节点对应的地理分组包含的各智能电视中,以使得智能电视私有链中的电视共享所述共享数据。
具体地,在所述步骤S21中,所述地理区域为地理位置区域,所述地理区域是以智能电视所处的地理位置作为划分依据。例如,可以以地理区域的行政区域作为划分依据,举例来说,所述行政区域可以以省或市为单元,对于国外区域可以以州或者市为单元。当然,所述行政区域可以根据区块链的大小来确定,例如,以国家为单位、以街道为单位等。
进一步,在本实施例的一个实现方式中,如图3所示,所述将智能电视私有链包含的智能电视按照地理区域进行分组得到若干地理分组,并将每个地理分组作为智能电视私有链的一个地理节点具体包括:
S211、获取智能电视私有链包含的各智能电视所处的地理位置,并根据所述地理位置确定各智能电视所处的行政区域;
S212、以行政区域作为划分依据对智能电视私有链包含的智能电视进行分组以得到地理分组,并将各地理分组作为智能电视私有链的一个地理节点。
具体地,所述地理分组包含至少一个智能电视,所述地理分组包含的所有智能电视共同采用一个地理节点进行记账,并且在地理节点内的所有智能电视作为矿工,当该地理节点挖到代币时,地理节点按照智能电视矿工的在线时间和性能进行代币分布。也就是说,对于各当地理节点获取记账权后,地理节点获取所述记账权对应的代币,并将所述代币按照其包含的各智能电视的在线时间以及性能分配至各智能电视。其中,所述性能为智能电视自身的性能,可以通过调取所述智能电视的配置表得到。此外,对于每个地理节点,其均配置有惩罚机制,只要保证在行政市区域内,预设时间条件下,地理节点所属的行政区域内,只要有一台机器在正常运行,就保证此节点正常记账不出现数据遗漏问题。也就是说,所述共识机制的所述惩罚机制为在地理区域的预设时间条件下,当地理节点内存在一智能电视处于工作状态时,所述地理节点正常记账。其中,所述预设时间条件为预先设置的,例如,早上6点至晚上12点等。
进一步,在所述步骤S22中,所述时间区域是以时区为依据确定,例如,北京时间内的区域以及华盛顿时间内的区域等。也就是说,所述时间区域包括24个区域,相应的,根据所述时间区域可以划分得到24个时间分组。相应的,在本实施例的一个实现方式中,如图4所示,所述将智能电视私有链包含的智能电视按照时间区域进行分组得到若干时间分组,并将划分得到的所有时间分组进行联合以得到时间区域链具体包括:
S221、获取智能电视私有链包含的各智能电视所处的地理位置,并根据所述地理位置确定各智能电视所处的时区区域;
S222、以时区区域作为划分依据对智能电视私有链包含的各智能电视进行分组以得到若干时间分组,并将划分得到的所有时间分组进行联合以得到时间区域链。
具体地,所述地理位置确定各智能电视所处的时区区域为获取地理位置对应的时区,在将所述时区设置为所述智能电视所处的时区区域。例如,所述智能电视的地理位置为北京,北京对应的时区为北京时区,那么所述智能电视所处的时区区域为北京时区区域。 此外,所述时间分组是以时区为依据进行区块划分,每个区块包含的所有智能电视均处于相同时区。也就是说,按照所述时区区域进行划分区块可以得到24个时间分组。
进一步,在所述步骤S23中,所述各地理节点的贡献值是根据各地理节点包含的所有智能电视的贡献值得到,所述贡献值为各地理节点的工作量证明。也就是说,将工作量证明作为权益证明的权益,从而将工作量证明与权益证明结合来确定记账权。相应的,在本实施例的一个实现方式中,如图5所示,所述依据时间区域链确定各地理节点的贡献值,并以所述贡献值作为权益以权益证明的方式进行竞争记账具体包括:
S231、当智能电视私有链接收到索引数据时,依据时间区域链计算各智能电视的贡献值;
S232、根据各地理节点对应的地理分组包含的所有智能电视的贡献值确定各地理节点的贡献值,并将所述贡献值作为权益并以权益证明的方式确定所述数据索引对应的地理节点。
具体地,所述各智能电视的贡献值可以是根据智能电视的有效性、智能电视贡献力工作量以及时间区域链确定。在本实施例中,各智能电视的贡献值是根据智能电视的有效性、智能电视贡献力工作量以及时间区域链,采用哈希算法计算得到。其中,各智能电视的贡献值的哈希算法可以为:各智能电视的贡献值等于智能电视的有效性P、智能电视贡献力工作量PW、时间区域链内节点同时在线的有效性T以及时间区域链有效在线加权数值TW的乘积,其中,当所述有效性为有效时,所述有效性取1;当所述有效性为无效时,所述有效性取0。此外,所述在线加权数值与时间区域链中同时在线节点的数量成正比。即同时在线节点的数量越多,所述加权数值越大。
基于上述电视数据的共享方法,本公开还提供了一种计算机可读存储介质,所述计算机可存储介质有一个或多个程序,所述一个或者多个程序可被一个或多个处理器执行,以实现如上述实施例所述的电视数据的共享方法的步骤。
基于上述电视数据的共享方法,本公开还提供了一种终端设备,如图6所示,包括:本公开还提供了一种应用服务器,其包括至少一个处理器(processor)20;显示屏21;以及存储器(memory)22,还可以包括通信接口(Communications Interface)23和总线 24。其中,处理器20、显示屏21、存储器22和通信接口23可以通过总线24完成相互间的通信。显示屏21设置为显示初始设置模式中预设的用户引导界面。通信接口23可以传输信息。处理器20可以调用存储器22中的逻辑指令,以执行上述实施例中的方法。
此外,上述的存储器22中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。
存储器22作为一种计算机可读存储介质,可设置为存储软件程序、计算机可执行程序,如本公开实施例中的方法对应的程序指令或模块。处理器20通过运行存储在存储器22中的软件程序、指令或模块,从而执行功能应用以及数据处理,即实现上述实施例中的方法。
存储器22可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储器22可以包括高速随机存取存储器,还可以包括非易失性存储器。例如,U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。
此外,上述存储介质以及移动终端中的多条指令处理器加载并执行的具体过程在上述方法中已经详细说明,在这里就不再一一陈述。
最后应说明的是:以上实施例仅用以说明本公开的技术方案,而非对其限制;尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本公开各实施例技术方案的精神和范围。

Claims (15)

  1. 一种电视数据的共享方法,其包括:
    获取电视的共享数据,并根据所述共享数据生成数据索引;
    按照基于物理区域和时间区域的共识机制将所述数据索引登记在包含所述电视的智能电视私有链中,以使得所述智能电视私有链中的电视共享所述共享数据。
  2. 根据权利要求1所述电视数据的共享方法,其特征在于,所述根据所述共享数据生成数据索引具体为:
    根据所述共享数据的哈希值以及所述共享数据的特征值生成数据索引,其中,所述数据索引用于按照共识机制所述智能电视私有链中。
  3. 根据权利要求1所述电视数据的共享方法,所述按照基于物理区域和时间区域的共识机制将所述数据索引登记在电视私有链的中,以使得电视私有链中的电视共享所述共享数据具体包括:
    将智能电视私有链包含的智能电视按照地理区域进行分组得到若干地理分组,并将每个地理分组作为智能电视私有链的一个地理节点;
    将智能电视私有链包含的智能电视按照时间区域进行分组得到若干时间分组,并将划分得到的所有时间分组进行联合以得到时间区域链,其中,每个时间分组为时间区域链的节点;
    依据时间区域链确定各地理节点的贡献值,将所述贡献值作为权益并以权益证明的方式确定所述数据索引对应的地理节点;
    将所述数据索引记录于所述地理节点对应的地理分组包含的各智能电视中,以使得智能电视私有链中的智能电视共享所述共享数据。
  4. 根据权利要求3所述电视数据的共享方法,所述将智能电视私有链包含的智能电视按照地理区域进行分组得到若干地理分组,并将每个地理分组作为智能电视私有链的一个地理节点具体包括:
    获取智能电视私有链包含的各智能电视所处的地理位置,并根据所述地理位置确定各智能电视所处的行政区域;
    以行政区域作为划分依据对智能电视私有链包含的智能电视进行分组以得到地理分组,并将各地理分组作为智能电视私有链的一个地理节点。
  5. 根据权利要求3所述电视数据的共享方法,所述将智能电视私有链包含的智能电视按照时间区域进行分组得到若干时间分组,并将划分得到的所有时间分组进行联合以得到时间区域链,其中,每个时间分组为时间区域链的节点具体包括:
    获取智能电视私有链包含的各智能电视所处的地理位置,并根据所述地理位置确定各智能电视所处的时区区域;
    以时区区域作为划分依据对智能电视私有链包含的各智能电视进行分组以得到若干时间分组,并将划分得到的所有时间分组进行联合以得到时间区域链。
  6. 根据权利要求5所述电视数据的共享方法,所述时区区域是以时区为依据确定的;所述获取智能电视私有链包含的各智能电视所处的地理位置,并根据所述地理位置确定各智能电视所处的时区区域具体为:
    针对于智能电视私有链中的每个智能电视,获取该智能电视所处的地理位置对应的时区,将该时区设置为该智能电视所处的时区区域。
  7. 根据权利要求3所述电视数据的共享方法,所述依据时间区域链确定各地理节点的贡献值,将所述贡献值作为权益并以权益证明的方式确定所述数据索引对应的地理节点具体包括:
    当智能电视私有链接收到索引数据时,依据时间区域链计算各智能电视的贡献值;
    针对于每一地理节点,确定该地理节点对应的所有智能电视,并根据确定得到的所有的贡献值确定该地理节点的贡献值;
    将贡献值作为权益并以权益证明的方式确定所述数据索引对应的地理节点。
  8. 根据权利要求7所述电视数据的共享方法,所述将贡献值作为权益并以权益证明的方式确定所述数据索引对应的地理节点具体包括:
    以所述贡献值作为权益,并以权益证明的方式进行竞争记账,得到竞争记账的结果;
    根据所述竞争记账的结果确定对所述数据索引进行记账的地理节点。
  9. 根据权利要求8所述电视数据的共享方法,其特征在于,所述地理节点的贡献值为所述地理节点的工作量证明;所述以所述贡献值作为权益,并以权益证明的方式进行竞争记账具体为:
    以所述地理节点的工作量证明作为权益证明的权益,以将所述工作量证明与权益证结合的方式进行竞争记账。
  10. 根据权利要求3所述电视数据的共享方法,所述各智能电视的贡献值的哈希算法为智能电视的有效性P、智能电视贡献力工作量PW、时间区域链内节点同时在线的有效性T以及时间区域链有效在线加权数值TW的乘积,其中,当所述有效性为有效时,所述有效性取1;当所述有效性为无效时,所述有效性取0。
  11. 根据权利要求10所述电视数据的共享方法,所述在线加权数值与时间区域链中同时在线节点的数量成正比。
  12. 根据权利要求3所述电视数据的共享方法,所述将所述数据索引记录于所述地理节点对应的地理分组包含的各智能电视中,以使得智能电视私有链中的智能电视共享所述共享数据之后还包括:
    所述地理节点获取所述数据索引对应的代币,并将所述代币按照其包含的各智能电视的在线时间以及性能分配至各智能电视。
  13. 根据权利要求1所述电视数据的共享方法,所述共识机制配置有惩罚机制,所述惩罚机制为在地理节点对应的预设时间条件内,当地理节点内存在一智能电视处于工作状态时,所述地理节点正常记账。
  14. 一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如权利要求1~13任意一项所述的电视数据的共享方法中的步骤。
  15. 一种应用服务器,其包括:处理器、存储器及通信总线;所述存储器上存储有可被所述处理器执行的计算机可读程序;
    所述通信总线实现处理器和存储器之间的连接通信;
    所述处理器执行所述计算机可读程序时实现如权利要求1-13任意一项所述的电视数据的共享方法中的步骤。
PCT/CN2019/119134 2018-11-21 2019-11-18 一种电视数据的共享方法、存储介质及应用服务器 WO2020103782A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811390889.3 2018-11-21
CN201811390889.3A CN111209441B (zh) 2018-11-21 2018-11-21 一种电视数据的共享方法、存储介质及应用服务器

Publications (1)

Publication Number Publication Date
WO2020103782A1 true WO2020103782A1 (zh) 2020-05-28

Family

ID=70773702

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/119134 WO2020103782A1 (zh) 2018-11-21 2019-11-18 一种电视数据的共享方法、存储介质及应用服务器

Country Status (2)

Country Link
CN (1) CN111209441B (zh)
WO (1) WO2020103782A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938515A (zh) * 2010-08-31 2011-01-05 北京世纪互联工程技术服务有限公司 实现互联网电视用户间信息共享的方法
CN107580242A (zh) * 2017-09-20 2018-01-12 深圳前海茂佳软件科技有限公司 基于电视设备的视频实时传送方法、电视设备及存储介质
US20180219821A1 (en) * 2015-06-24 2018-08-02 Private Giant Method and system for sender-controlled messaging and content sharing
CN108737374A (zh) * 2018-04-12 2018-11-02 三维通信股份有限公司 一种区块链中数据存储的隐私保护方法

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106296191A (zh) * 2016-08-13 2017-01-04 深圳市樊溪电子有限公司 一种区块链功耗感知的PoW共识机制
CN108667931B (zh) * 2018-05-10 2021-10-29 上海敏皓电力投资有限公司 基于gps/北斗定位的自组织区块链网络

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938515A (zh) * 2010-08-31 2011-01-05 北京世纪互联工程技术服务有限公司 实现互联网电视用户间信息共享的方法
US20180219821A1 (en) * 2015-06-24 2018-08-02 Private Giant Method and system for sender-controlled messaging and content sharing
CN107580242A (zh) * 2017-09-20 2018-01-12 深圳前海茂佳软件科技有限公司 基于电视设备的视频实时传送方法、电视设备及存储介质
CN108737374A (zh) * 2018-04-12 2018-11-02 三维通信股份有限公司 一种区块链中数据存储的隐私保护方法

Also Published As

Publication number Publication date
CN111209441B (zh) 2023-09-19
CN111209441A (zh) 2020-05-29

Similar Documents

Publication Publication Date Title
CN110868440B (zh) 区块链公链
TWI691919B (zh) 基於區塊鏈的交易處理方法及裝置、電子設備
US11989704B2 (en) Sharded permissioned distributed ledgers
US10728283B1 (en) Methods, systems, and devices for encrypted electronic storage and confidential network transfer of private data through a trustless distributed ledger technology system
US11438383B2 (en) Controlling permissible actions a computing device can perform on a data resource based on a use policy evaluating an authorized context of the device
TWI694350B (zh) 基於區塊鏈的資訊監管方法及裝置
TWI713840B (zh) 數位憑證管理方法、裝置及電子設備
US11636541B2 (en) Secure system
US20210256016A1 (en) Blockchain system and method
CN111612455A (zh) 一种面向用电信息保护的拜占庭容错联盟链共识方法及其系统、存储介质
TW202004594A (zh) 基於區塊鏈的交易處理方法及裝置、電子設備
CN110825810B (zh) 一种基于区块链的群智感知双重隐私保护方法
WO2020015635A1 (zh) 分布式投票系统、方法、装置、计算机设备及可读存储介质
CN110705973B (zh) 应用于区块链系统中矿工节点的共识方法和区块链系统
CN112187866B (zh) 一种基于共享存储的新型区块链共识方法
CN111475538A (zh) 一种数据处理方法、装置及存储介质
TW202008270A (zh) 區塊發佈方法及裝置、電子設備
WO2020103782A1 (zh) 一种电视数据的共享方法、存储介质及应用服务器
Wels Guaranteed-TX: The exploration of a guaranteed cross-shard transaction execution protocol for Ethereum 2.0.
US20210224827A1 (en) User apparatus and manager apparatus included in blockchain network and controlling method thereof
US11627128B2 (en) Network management using trusted execution environments
US20200175037A1 (en) Obtaining blockchain data in stages
WO2024087347A1 (zh) 一种区块链生成方法、系统及相应数据存储方法和系统
Wu et al. Research on Trusted Data Evidence of Bidding and Procurement Based on Block-chain Technology
CN116957794A (zh) 资产管理方法、装置、介质及电子设备

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: 19886706

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19886706

Country of ref document: EP

Kind code of ref document: A1