KR20230155919A - Electronic apparatus and substitute agreement method for inactive nodes in the mobile blockchain network - Google Patents

Electronic apparatus and substitute agreement method for inactive nodes in the mobile blockchain network Download PDF

Info

Publication number
KR20230155919A
KR20230155919A KR1020220066666A KR20220066666A KR20230155919A KR 20230155919 A KR20230155919 A KR 20230155919A KR 1020220066666 A KR1020220066666 A KR 1020220066666A KR 20220066666 A KR20220066666 A KR 20220066666A KR 20230155919 A KR20230155919 A KR 20230155919A
Authority
KR
South Korea
Prior art keywords
electronic device
agreement
node
external electronic
proxy
Prior art date
Application number
KR1020220066666A
Other languages
Korean (ko)
Inventor
김남군
김용준
오병윤
조도현
조진수
하승민
Original Assignee
삼성전자주식회사
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 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to PCT/KR2023/004645 priority Critical patent/WO2023214695A2/en
Publication of KR20230155919A publication Critical patent/KR20230155919A/en

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/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/59Providing operational support to end devices by off-loading in the network or by emulation, e.g. when they are unavailable
    • 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
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1087Peer-to-peer [P2P] networks using cross-functional networking aspects
    • H04L67/1093Some peer nodes performing special functions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

다양한 실시예에 따른 블록체인 네트워크에 포함된 블록체인 노드를 구성하는 전자 장치는 통신 모듈, 블록체인 네트워크에 대한 전체 원장 중 일부를 포함하는 부분 원장 또는 전체 원장을 저장하는 메모리, 상기 통신 모듈 및 상기 메모리와 전기적으로 연결된 적어도 하나의 프로세서를 포함하고, 상기 원장은 상기 전자 장치가 합의에 참여한 적어도 하나의 트랜잭션 각각에 상응하는 적어도 하나의 블록을 포함하고, 상기 적어도 하나의 프로세서는, 상기 통신 모듈을 통해 제1 외부 전자 장치와 통신하여 상기 제1 외부 전자 장치와의 대리 합의 관계를 설정하고, 제2 외부 전자 장치로부터 상기 통신 모듈을 통해 상기 제1 외부 전자 장치와 상기 제2 외부 전자 장치 간의 서비스에 대한 제1 트랜잭션의 합의 요청을 수신하고, 상기 제1 외부 전자 장치의 대리 합의 시작 요청이 수신된 것에 기초하여 상기 제1 외부 전자 장치와 상기 제2 외부 전자 장치 간의 서비스에 대한 제1 트랜잭션에 대해 상기 제1 외부 전자 장치를 대리하여 합의 동작을 수행하고, 상기 대리 합의된 완료 결과를 상기 통신 모듈을 통해 상기 제2 외부 전자 장치로 전달하도록 설정될 수 있다.Electronic devices constituting a blockchain node included in a blockchain network according to various embodiments include a communication module, a memory for storing a partial ledger or the entire ledger including a portion of the entire ledger for the blockchain network, the communication module, and the Comprising at least one processor electrically connected to a memory, wherein the ledger includes at least one block corresponding to each of at least one transaction in which the electronic device participated in an agreement, and wherein the at least one processor operates the communication module. Establishing a proxy agreement relationship with the first external electronic device by communicating with the first external electronic device through the communication module, and providing a service between the first external electronic device and the second external electronic device through the communication module Receiving an agreement request for a first transaction for a first transaction for a service between the first external electronic device and the second external electronic device based on receiving a request to start a proxy agreement of the first external electronic device It may be set to perform an agreement operation on behalf of the first external electronic device and transmit the completed result of the proxy agreement to the second external electronic device through the communication module.

Description

비활성 노드를 위한 대리 합의 방법 및 전자 장치{ELECTRONIC APPARATUS AND SUBSTITUTE AGREEMENT METHOD FOR INACTIVE NODES IN THE MOBILE BLOCKCHAIN NETWORK} {ELECTRONIC APPARATUS AND SUBSTITUTE AGREEMENT METHOD FOR INACTIVE NODES IN THE MOBILE BLOCKCHAIN NETWORK}

다양한 실시 예들은 모바일 블록체인 네트워크 내 비활성 노드를 위한 대리 합의 방법 및 장치에 관한 것이다. Various embodiments relate to proxy agreement methods and devices for inactive nodes in a mobile blockchain network.

블록체인 네트워크(blockchain network)는 블록체인 네트워크에 참여하는 노드들의 합의 알고리즘에 따라 의사결정이 수행되는 네트워크를 지칭할 수 있다. 블록체인 네트워크에 참여하는 노드들은 블록체인 네트워크에서 수행되는 트랜잭션에 대한 합의 동작에 참여해야 한다. A blockchain network may refer to a network in which decisions are made according to the consensus algorithm of nodes participating in the blockchain network. Nodes participating in a blockchain network must participate in consensus operations for transactions performed in the blockchain network.

블록체인 네트워크에 참여하는 노드들은 전자 장치(예: 모바일 장치)로 구성될 수 있다. 그러나, 스마트폰과 같은 모바일 장치는 특성 상 전력 상태에 영향을 받을 수 있다. 예를 들어, 모바일 장치는 전력 절감을 위해 비활성화(예: idle/sleep)모드로 진입하여 프로그램 동작이 제약을 받거나 저전압 또는 전원 꺼짐 상태가 되거나 무선 네트워크의 연결 상태 저하로 인해 블록체인 네트워크와의 연결이 끊길 수 있다. 또한, 모바일 장치는 저장 공간의 크기가 매우 제한적일 수 있다. Nodes participating in a blockchain network may consist of electronic devices (e.g., mobile devices). However, mobile devices such as smartphones may be affected by power status due to their nature. For example, a mobile device enters a deactivated (e.g. idle/sleep) mode to save power, which restricts program operation, or enters a low-voltage or power-off state, or reduces connectivity to the blockchain network due to poor wireless network connectivity. This may break. Additionally, mobile devices may have very limited storage space.

이에 따라, 모바일 블록체인을 위한 네트워크(또는 모바일 블록체인 네트워크)는 항상 동작이 가능한 중계 노드(예: 서버 노드)를 두고, 비활성 상태인 모바일 노드를 깨워 블록체인 네트워크에 연결 참여하도록 구성할 수 있다. 또한, 모바일 노드의 저장소에는 일부 원장(예: 부분 원장)만 저장하고, 일부 모바일 노드에는 모든 원장(예: 전체 원장)을 저장하여 블록체인 네트워크에 대한 저장 이슈를 해결할 수 있다. Accordingly, the network for mobile blockchain (or mobile blockchain network) can be configured to have relay nodes (e.g. server nodes) that can always operate and wake up inactive mobile nodes to connect and participate in the blockchain network. . In addition, storage issues in blockchain networks can be resolved by storing only some ledgers (e.g., partial ledgers) in the storage of mobile nodes and all ledgers (e.g., full ledgers) in some mobile nodes.

모바일 블록체인 네트워크는 정보의 무결성과 신뢰성 보장의 이점으로 인해 블록체인에 기반한 다양한 서비스를 사용자에게 제공할 수 있다. 특히, 모바일 블록체인 네트워크는 사용자/사용자의 모바일 장치가 모바일 노드로서, 블록체인에 관여할 수 있다. Mobile blockchain networks can provide users with a variety of blockchain-based services due to the advantage of ensuring the integrity and reliability of information. In particular, a mobile blockchain network allows the user/user's mobile device to participate in the blockchain as a mobile node.

예를 들어, 개인 자산에 대한 거래 계약 또는 상대 확인이 필요한 공지를 하는 서비스들(예: NFT, 부동산, 금융 서비스들)이 모바일 블록체인으로 제공될 수 있다. 특정 사용자들이 소유한 모바일 장치가 블록체인의 참여 노드로서 사용될 때, 거래에 대한 동의나 공지를 사용자가 직접 지문 인식이나 패턴인식 또는 패스워드 입력을 통해 합의함으로 내용이나 행위에 대해 신뢰성을 높일 수 있다. For example, services that provide transaction contracts for personal assets or announcements that require counterparty confirmation (e.g., NFT, real estate, financial services) can be provided through mobile blockchain. When mobile devices owned by specific users are used as participating nodes in a blockchain, reliability of content or actions can be increased by allowing users to directly agree to or notify transactions through fingerprint recognition, pattern recognition, or password entry.

그러나, 임의의 모바일 노드에서 스마트 컨트랙트(smart contract)와 같이 합의 대상인 다른 모바일 노드와의 합의가 필요할 때, 다른 모바일 노드가 비활성 상태로 진입하여 블록체인 네트워크에 참여하기 어려운 상태일 수 있다. 이 때, 합의를 요청하는 모바일 노드는 다른 모바일 노드로부터 합의 완료를 받지 못하여, 서비스를 더 이상 진행할 수 없고, 스마트 계약에 대한 트랜잭션은 에러 처리되거나 폐기되고 있다. 이로 인해, 임의의 모바일 노드는 다른 모바일 모드와 다시 합의를 재 요청해야 하는 불필요한 상황이 발생되고 있다. However, when an arbitrary mobile node needs to reach an agreement with another mobile node that is the subject of an agreement, such as a smart contract, the other mobile node may enter an inactive state, making it difficult to participate in the blockchain network. At this time, the mobile node requesting consensus does not receive consensus completion from other mobile nodes, so the service cannot proceed any further, and transactions for smart contracts are processed in error or discarded. As a result, an unnecessary situation arises in which any mobile node has to re-request agreement with another mobile mode.

다양한 실시 예들은 모바일 블록체인 네트워크 상에서 트랜잭션에 대한 합의에 참여한 모바일 노드가 비활성화 상태일 때에도 합의가 가능하여 지속적으로 체인을 구성할 수 있는 방안에 대해서 제안하고자 한다. Various embodiments propose a method for continuously forming a chain by enabling consensus even when mobile nodes participating in agreement on transactions on a mobile blockchain network are in an inactive state.

다양한 실시예에 따른 블록체인 네트워크에 포함된 블록체인 노드를 구성하는 전자 장치는 통신 모듈, 블록체인 네트워크에 대한 전체 원장 중 일부를 포함하는 부분 원장 또는 전체 원장을 저장하는 메모리, 상기 통신 모듈 및 상기 메모리와 전기적으로 연결된 적어도 하나의 프로세서를 포함하고, 상기 원장은 상기 전자 장치가 합의에 참여한 적어도 하나의 트랜잭션 각각에 상응하는 적어도 하나의 블록을 포함하고, 상기 적어도 하나의 프로세서는, 상기 통신 모듈을 통해 제1 외부 전자 장치와 통신하여 상기 제1 외부 전자 장치와의 대리 합의 관계를 설정하고, 제2 외부 전자 장치로부터 상기 통신 모듈을 통해 상기 제1 외부 전자 장치와 상기 제2 외부 전자 장치 간의 서비스에 대한 제1 트랜잭션의 합의 요청을 수신하고, 상기 제1 외부 전자 장치의 대리 합의 시작 요청이 수신된 것에 기초하여 상기 제1 외부 전자 장치와 상기 제2 외부 전자 장치 간의 서비스에 대한 제1 트랜잭션에 대해 상기 제1 외부 전자 장치를 대리하여 합의 동작을 수행하고, 상기 대리 합의된 완료 결과를 상기 통신 모듈을 통해 상기 제2 외부 전자 장치로 전달하도록 설정될 수 있다.Electronic devices constituting a blockchain node included in a blockchain network according to various embodiments include a communication module, a memory for storing a partial ledger or the entire ledger including a portion of the entire ledger for the blockchain network, the communication module, and the Comprising at least one processor electrically connected to a memory, wherein the ledger includes at least one block corresponding to each of at least one transaction in which the electronic device participated in an agreement, and wherein the at least one processor operates the communication module. Establishing a proxy agreement relationship with the first external electronic device by communicating with the first external electronic device through the communication module, and providing a service between the first external electronic device and the second external electronic device through the communication module Receiving an agreement request for a first transaction for a first transaction for a service between the first external electronic device and the second external electronic device based on receiving a request to start a proxy agreement of the first external electronic device It may be set to perform an agreement operation on behalf of the first external electronic device and transmit the completed result of the proxy agreement to the second external electronic device through the communication module.

다양한 실시예에 따른 블록체인 네트워크 내 비활성 노드를 위한 대리 합의 방법은 블록체인 네트워크에 참여하는 모바일 노드 중 제1 외부 전자 장치와의 대리 합의 관계를 설정하는 동작, 상기 블록체인 네트워크에 참여하는 모바일 노드 중 제2 외부 전자 장치로부터 상기 제1 외부 전자 장치와 상기 제2 외부 전자 장치 간의 서비스에 대한 제1 트랜잭션의 합의 요청을 수신하는 동작, 상기 제1 외부 전자 장치의 대리 합의 시작 요청이 수신된 것에 기초하여 상기 제1 외부 전자 장치와 상기 제2 외부 전자 장치 간의 서비스에 대한 제1 트랜잭션에 대해 상기 제1 외부 전자 장치를 대리하여 합의 동작을 수행하는 동작, 상기 대리 합의된 완료 결과를 상기 블록체인 네트워크를 통해 상기 제2 외부 전자 장치로 전달하는 동작 및 상기 제1 외부 전자 장치와 상기 제2 외부 전자 장치 간의 제1 트랜잭션 합의가 완료된 것에 반응하여, 상기 블록체인 네트워크에 참여한 각 노드들의 원장을 업데이트하는 동작을 포함하고, 상기 원장은 상기 전자 장치가 합의에 참여한 적어도 하나의 트랜잭션 각각에 상응하는 적어도 하나의 블록을 포함하는 것을 특징으로 할 수 있다. A proxy agreement method for an inactive node in a blockchain network according to various embodiments includes the operation of establishing a proxy agreement relationship with a first external electronic device among mobile nodes participating in the blockchain network, and mobile nodes participating in the blockchain network. An operation of receiving an agreement request for a first transaction for a service between the first external electronic device and the second external electronic device from a second external electronic device, upon receiving a request to start a proxy agreement from the first external electronic device. Based on this, an operation of performing an agreement operation on behalf of the first external electronic device for a first transaction for a service between the first external electronic device and the second external electronic device, and sending the agreed upon completion result to the blockchain In response to the operation of transmitting to the second external electronic device through the network and the completion of the first transaction agreement between the first external electronic device and the second external electronic device, the ledger of each node participating in the blockchain network is updated. The ledger may include at least one block corresponding to each of at least one transaction in which the electronic device participates in an agreement.

다양한 실시 예들에 따르면, 모바일 블록체인 네트워크에서 노드들 간 서비스 합의가 필요할 때에, 제1 노드 요청에 의해 합의에 참여하는 제2 노드가 네트워크 불가능 상태일 경우, 합의 권한을 위임 받은 다른 제3 노드가 제1 노드와 대리 합의하여 블록체인 네트워크 서비스가 블로킹 없이 원활하게 계속 진행되도록 할 수 있다. According to various embodiments, when service agreement between nodes is required in a mobile blockchain network, if the second node participating in the agreement at the request of the first node is in a network unavailable state, another third node with delegated agreement authority By reaching a proxy agreement with the first node, blockchain network services can continue to proceed smoothly without blocking.

도 1은 다양한 실시 예들에 따른 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는 일 실시 예에 따른 전자 장치의 블록체인 플랫폼을 설명하기 위한 도면이다.
도 3은 일 실시 예에 따른 모바일 블록체인 시스템을 설명하기 위한 도면이다.
도 4는 일 실시 예에 따른 모바일 블록체인 네트워크 내 전자 장치의 대리 합의 설정 방법을 도시한다.
도 5는 일 실시 예에 따른 모바일 블록체인 네트워크 내 전자 장치 간 대리 합의 방법을 도시한다.
도 6a 및 도 6b는 일 실시 예에 따른 모바일 블록체인 네트워크 내 전자 장치 간 대리 합의 경로 변경 방법을 도시한다.
도 7은 일 실시 예에 따른 모바일 블록체인 네트워크에 내 전자 장치 간 대리 합의 중지 방법을 도시한다.
도 8은 일 실시 예에 따른 모바일 블록체인 네트워크에 내 전자 장치 간 대리 합의 설정 삭제 방법을 도시한다.
도 9a 및 도 9b는 일 실시 예에 따른 모바일 블록체인 네트워크에 내 복수의 전자 장치들 간의 대리 합의 방법을 도시한다.
도 10a 및 10b는 일 실시 예에 따른 모바일 블록체인 네트워크에 내 복수의 전자 장치들 간의 대리 합의 방법을 도시한다.
도 11은 일 실시 예에 따른 모바일 블록체인 네트워크 내 전자 장치의 대리 합의 방법을 도시한다.
1 is a block diagram of an electronic device in a network environment according to various embodiments.
Figure 2 is a diagram for explaining a blockchain platform of an electronic device according to an embodiment.
Figure 3 is a diagram for explaining a mobile blockchain system according to an embodiment.
Figure 4 illustrates a method of establishing proxy agreement for electronic devices in a mobile blockchain network according to an embodiment.
Figure 5 illustrates a proxy agreement method between electronic devices in a mobile blockchain network according to an embodiment.
Figures 6a and 6b illustrate a method of changing the proxy agreement path between electronic devices in a mobile blockchain network according to an embodiment.
Figure 7 illustrates a method for stopping proxy agreement between electronic devices in a mobile blockchain network according to an embodiment.
Figure 8 illustrates a method of deleting proxy agreement settings between electronic devices in a mobile blockchain network according to an embodiment.
9A and 9B illustrate a proxy agreement method between a plurality of electronic devices in a mobile blockchain network according to an embodiment.
Figures 10a and 10b illustrate a proxy agreement method between a plurality of electronic devices in a mobile blockchain network according to an embodiment.
Figure 11 illustrates a proxy agreement method for electronic devices in a mobile blockchain network according to an embodiment.

본 문서에 개시된 다양한 실시 예들에 따른 전자 장치(101)는 다양한 형태의 장치가 될 수 있다. 전자 장치(101)는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시 예에 따른 전자 장치(101)는 전술한 기기들에 한정되지 않는다.The electronic device 101 according to various embodiments disclosed in this document may be of various types. The electronic device 101 may include, for example, a portable communication device (eg, a smartphone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance device. The electronic device 101 according to an embodiment of this document is not limited to the devices described above.

도 1은 다양한 실시 예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블록도이다. FIG. 1 is a block diagram of an electronic device 101 in a network environment 100, according to various embodiments.

도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108) 중 적어도 하나와 통신할 수 있다. 일 실시 예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일 실시 예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시 예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시 예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.Referring to FIG. 1, in the network environment 100, the electronic device 101 communicates with the electronic device 102 through a first network 198 (e.g., a short-range wireless communication network) or a second network 199. It is possible to communicate with at least one of the electronic device 104 or the server 108 through (e.g., a long-distance wireless communication network). According to one embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108. According to one embodiment, the electronic device 101 includes a processor 120, a memory 130, an input module 150, an audio output module 155, a display module 160, an audio module 170, and a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or may include an antenna module 197. In some embodiments, at least one of these components (eg, the connection terminal 178) may be omitted or one or more other components may be added to the electronic device 101. In some embodiments, some of these components (e.g., sensor module 176, camera module 180, or antenna module 197) are integrated into one component (e.g., display module 160). It can be.

프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일 실시 예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일 실시 예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor 120, for example, executes software (e.g., program 140) to operate at least one other component (e.g., hardware or software component) of the electronic device 101 connected to the processor 120. It can be controlled and various data processing or calculations can be performed. According to one embodiment, as at least part of data processing or computation, processor 120 stores commands or data received from another component (e.g., sensor module 176 or communication module 190) in volatile memory 132. The commands or data stored in the volatile memory 132 can be processed, and the resulting data can be stored in the non-volatile memory 134. According to one embodiment, the processor 120 includes the main processor 121 (e.g., a central processing unit or an application processor) or an auxiliary processor 123 that can operate independently or together (e.g., a graphics processing unit, a neural network processing unit ( It may include a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor). For example, if the electronic device 101 includes a main processor 121 and a secondary processor 123, the secondary processor 123 may be set to use lower power than the main processor 121 or be specialized for a designated function. You can. The auxiliary processor 123 may be implemented separately from the main processor 121 or as part of it.

보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일 실시 예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. 일 실시 예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다. The auxiliary processor 123 may, for example, act on behalf of the main processor 121 while the main processor 121 is in an inactive (e.g., sleep) state, or while the main processor 121 is in an active (e.g., application execution) state. ), together with the main processor 121, at least one of the components of the electronic device 101 (e.g., the display module 160, the sensor module 176, or the communication module 190) At least some of the functions or states related to can be controlled. According to one embodiment, coprocessor 123 (e.g., image signal processor or communication processor) may be implemented as part of another functionally related component (e.g., camera module 180 or communication module 190). there is. According to one embodiment, the auxiliary processor 123 (eg, neural network processing device) may include a hardware structure specialized for processing artificial intelligence models. Artificial intelligence models can be created through machine learning. For example, such learning may be performed in the electronic device 101 itself, where artificial intelligence is performed, or may be performed through a separate server (e.g., server 108). Learning algorithms may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but It is not limited. An artificial intelligence model may include multiple artificial neural network layers. Artificial neural networks include deep neural network (DNN), convolutional neural network (CNN), recurrent neural network (RNN), restricted boltzmann machine (RBM), belief deep network (DBN), bidirectional recurrent deep neural network (BRDNN), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the examples described above. In addition to hardware structures, artificial intelligence models may additionally or alternatively include software structures.

메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다. The memory 130 may store various data used by at least one component (eg, the processor 120 or the sensor module 176) of the electronic device 101. Data may include, for example, input data or output data for software (e.g., program 140) and instructions related thereto. Memory 130 may include volatile memory 132 or non-volatile memory 134.

프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다. The program 140 may be stored as software in the memory 130 and may include, for example, an operating system 142, middleware 144, or application 146.

입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다. The input module 150 may receive commands or data to be used in a component of the electronic device 101 (e.g., the processor 120) from outside the electronic device 101 (e.g., a user). The input module 150 may include, for example, a microphone, mouse, keyboard, keys (eg, buttons), or digital pen (eg, stylus pen).

음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일 실시 예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output module 155 may output sound signals to the outside of the electronic device 101. The sound output module 155 may include, for example, a speaker or a receiver. Speakers can be used for general purposes such as multimedia playback or recording playback. The receiver can be used to receive incoming calls. According to one embodiment, the receiver may be implemented separately from the speaker or as part of it.

디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일 실시 예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다. The display module 160 can visually provide information to the outside of the electronic device 101 (eg, a user). The display module 160 may include, for example, a display, a hologram device, or a projector, and a control circuit for controlling the device. According to one embodiment, the display module 160 may include a touch sensor configured to detect a touch, or a pressure sensor configured to measure the intensity of force generated by the touch.

오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일 실시 예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.The audio module 170 can convert sound into an electrical signal or, conversely, convert an electrical signal into sound. According to one embodiment, the audio module 170 acquires sound through the input module 150, the sound output module 155, or an external electronic device (e.g., directly or wirelessly connected to the electronic device 101). Sound may be output through the electronic device 102 (e.g., speaker or headphone).

센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일 실시 예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 176 detects the operating state (e.g., power or temperature) of the electronic device 101 or the external environmental state (e.g., user state) and generates an electrical signal or data value corresponding to the detected state. can do. According to one embodiment, the sensor module 176 includes, for example, a gesture sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, It may include a temperature sensor, humidity sensor, or light sensor.

인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일 실시 예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 177 may support one or more designated protocols that can be used to connect the electronic device 101 directly or wirelessly with an external electronic device (eg, the electronic device 102). According to one embodiment, the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일 실시 예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 178 may include a connector through which the electronic device 101 can be physically connected to an external electronic device (eg, the electronic device 102). According to one embodiment, the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).

햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일 실시 예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 179 can convert electrical signals into mechanical stimulation (e.g., vibration or movement) or electrical stimulation that the user can perceive through tactile or kinesthetic senses. According to one embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일 실시 예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The camera module 180 can capture still images and moving images. According to one embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.

전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일 실시 예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 188 can manage power supplied to the electronic device 101. According to one embodiment, the power management module 188 may be implemented as at least a part of, for example, a power management integrated circuit (PMIC).

배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일 실시 예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 189 may supply power to at least one component of the electronic device 101. According to one embodiment, the battery 189 may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.

통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일 실시 예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(198)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다. Communication module 190 is configured to provide a direct (e.g., wired) communication channel or wireless communication channel between electronic device 101 and an external electronic device (e.g., electronic device 102, electronic device 104, or server 108). It can support establishment and communication through established communication channels. Communication module 190 operates independently of processor 120 (e.g., an application processor) and may include one or more communication processors that support direct (e.g., wired) communication or wireless communication. According to one embodiment, the communication module 190 is a wireless communication module 192 (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (e.g., : LAN (local area network) communication module, or power line communication module) may be included. Among these communication modules, the corresponding communication module is a first network 198 (e.g., a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (e.g., legacy It may communicate with an external electronic device 104 through a telecommunication network such as a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., LAN or WAN). These various types of communication modules may be integrated into one component (e.g., a single chip) or may be implemented as a plurality of separate components (e.g., multiple chips). The wireless communication module 192 uses subscriber information (e.g., International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199. The electronic device 101 can be confirmed or authenticated.

무선 통신 모듈(192)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(192)은 전자 장치(101), 외부 전자 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제 2 네트워크(199))에 규정되는 다양한 요구사항A을 지원할 수 있다. 일 실시 예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.The wireless communication module 192 may support 5G networks after 4G networks and next-generation communication technologies, for example, NR access technology (new radio access technology). NR access technology provides high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and access to multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low latency). -latency communications)) can be supported. The wireless communication module 192 may support high frequency bands (eg, mmWave bands), for example, to achieve high data rates. The wireless communication module 192 uses various technologies to secure performance in high frequency bands, for example, beamforming, massive array multiple-input and multiple-output (MIMO), and full-dimensional multiplexing. It can support technologies such as input/output (FD-MIMO: full dimensional MIMO), array antenna, analog beam-forming, or large scale antenna. The wireless communication module 192 may support various requirements A specified in the electronic device 101, an external electronic device (e.g., electronic device 104), or a network system (e.g., second network 199). According to one embodiment, the wireless communication module 192 supports peak data rate (e.g., 20 Gbps or more) for realizing eMBB, loss coverage (e.g., 164 dB or less) for realizing mmTC, or U-plane latency (e.g., 164 dB or less) for realizing URLLC. Example: Downlink (DL) and uplink (UL) each of 0.5 ms or less, or round trip 1 ms or less) can be supported.

안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일 실시 예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일 실시 예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시 예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다. The antenna module 197 may transmit or receive signals or power to or from the outside (eg, an external electronic device). According to one embodiment, the antenna module 197 may include an antenna including a radiator made of a conductor or a conductive pattern formed on a substrate (eg, PCB). According to one embodiment, the antenna module 197 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is connected to the plurality of antennas by, for example, the communication module 190. can be selected Signals or power may be transmitted or received between the communication module 190 and an external electronic device through the at least one selected antenna. According to some embodiments, in addition to the radiator, other components (eg, radio frequency integrated circuit (RFIC)) may be additionally formed as part of the antenna module 197.

다양한 실시 예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일 실시 예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, the antenna module 197 may form a mmWave antenna module. According to one embodiment, a mmWave antenna module includes: a printed circuit board, an RFIC disposed on or adjacent to a first side (e.g., bottom side) of the printed circuit board and capable of supporting a designated high frequency band (e.g., mmWave band); And a plurality of antennas (e.g., array antennas) disposed on or adjacent to the second side (e.g., top or side) of the printed circuit board and capable of transmitting or receiving signals in the designated high frequency band. can do.

상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method between peripheral devices (e.g., bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and signal ( (e.g. commands or data) can be exchanged with each other.

일 실시 예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일 실시 예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102,104, 또는108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시 예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일 실시 예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제 2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다. According to one embodiment, commands or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199. Each of the external electronic devices 102 or 104 may be of the same or different type as the electronic device 101. According to one embodiment, all or part of the operations performed in the electronic device 101 may be executed in one or more of the external electronic devices 102, 104, or 108. For example, when the electronic device 101 needs to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device 101 may perform the function or service instead of executing the function or service on its own. Alternatively, or additionally, one or more external electronic devices may be requested to perform at least part of the function or service. One or more external electronic devices that have received the request may execute at least part of the requested function or service, or an additional function or service related to the request, and transmit the result of the execution to the electronic device 101. The electronic device 101 may process the result as is or additionally and provide it as at least part of a response to the request. For this purpose, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology can be used. The electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing. In another embodiment, the external electronic device 104 may include an Internet of Things (IoT) device. Server 108 may be an intelligent server using machine learning and/or neural networks. According to one embodiment, the external electronic device 104 or server 108 may be included in the second network 199. The electronic device 101 may be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology and IoT-related technology.

다양한 실시 예에 따른 전자 장치(101)는, 블록체인 관련 동작을 수행하는 적어도 하나의 블록체인 어플리케이션 또는 블록체인 모듈에 대응하는 블록체인 플랫폼을 포함할 수 있다. The electronic device 101 according to various embodiments may include a blockchain platform corresponding to at least one blockchain application or blockchain module that performs blockchain-related operations.

블록체인은, 정보를 블록에 저장하여 기존 블록에 연속적으로 연결하여 체인 형태를 구성하는 자료 구조로서, 하나의 컴퓨터에서 동작하는 데이터 베이스와 같은 자료 저장 구조가 아닌 노드 대 노드(peer to peer, P2P) 네트워크 시스템을 이용한 분산형 자료 구조를 의미할 수 있다. 블록체인은 보안성을 위해 모든 모드들이 동일한 데이터 블록을 저장할 수 있다. Blockchain is a data structure that stores information in blocks and continuously connects them to existing blocks to form a chain. It is not a data storage structure like a database running on a single computer, but a node-to-node (peer-to-peer, P2P) structure. ) It can refer to a distributed data structure using a network system. Blockchain allows all modes to store the same data block for security purposes.

일 실시 예에 따르면, 전자 장치(101)는 블록체인 네트워크에 대한 분산 원장 중에서 노드와 관련된 블록들과, 블록과 관련된 원장을 부분적(예: 부분 원장)으로 저장하거나, 블록체인 네트워크에 대한 분산 원장의 전체(또는 전체 원장)을 저장할 수 있다. 예를 들어, 분산 원장은 블록체인 네트워크에서의 적어도 하나의 트랜잭션을 각각 포함하는 적어도 하나의 블록 및 스테이트 데이터 베이스(state data base)를 포함할 수 있다. 분산 원장 각각에 포함된 적어도 하나의 블록은 각각 해시 필드를 이용해 연결될 수 있다. 따라서, 해시 필드를 통한 연결이 끊어지거나, 상이한 분산 원장이 발견된 경우, 블록체인 노드들은 해당 블록에 대한 신뢰성 및 유효성을 의심할 수 있다.According to one embodiment, the electronic device 101 stores blocks related to nodes and ledgers related to blocks partially (e.g., partial ledger) among the distributed ledgers for the blockchain network, or stores the distributed ledger for the blockchain network. The entirety (or entire ledger) can be stored. For example, a distributed ledger may include at least one block and state database, each containing at least one transaction in the blockchain network. At least one block included in each distributed ledger can be linked using a hash field. Therefore, if the connection through the hash field is lost or a different distributed ledger is discovered, blockchain nodes may question the reliability and validity of the block.

도 2는 일 실시 예에 따른 전자 장치의 블록체인 플랫폼을 설명하기 위한 도면이다.Figure 2 is a diagram for explaining a blockchain platform of an electronic device according to an embodiment.

도 2를 참조하면, 일 실시 예에 따른 전자 장치(101)는 블록체인 플랫폼(200)을 포함할 수 있다. Referring to FIG. 2, the electronic device 101 according to one embodiment may include a blockchain platform 200.

일 실시 예에 따르면, 블록체인 플랫폼(200)은 도 1의 메모리(130)에 저장된 블록체인 관련 동작을 수행하는 블록체인 어플리케이션 또는 도 1의 프로세서(120)에 포함된 블록체인 관련 동작을 수행하는 블록체인 모듈에 대응될 수 있다.According to one embodiment, the blockchain platform 200 is a blockchain application that performs a blockchain-related operation stored in the memory 130 of FIG. 1 or a blockchain application that performs a blockchain-related operation included in the processor 120 of FIG. 1. It can correspond to a blockchain module.

일 실시 예에 따르면, 블록체인 플랫폼(200)은 스마트 컨트랙트(smart contract)(210), 분산 원장(220), 블록체인 프로세서(230), 트랜잭션 합의 모듈(240) 및 블록체인 네트워크 관리 모듈(250)을 포함할 수 있다. 다양한 실시 예들에 따라, 블록체인 플랫폼(200)은 블록체인과 관련된 동작을 수행하기 위해 다양한 구성을 더 포함하거나 일부 구성이 생략될 수 있다.According to one embodiment, the blockchain platform 200 includes a smart contract 210, a distributed ledger 220, a blockchain processor 230, a transaction consensus module 240, and a blockchain network management module 250. ) may include. According to various embodiments, the blockchain platform 200 may further include various components or some components may be omitted to perform operations related to the blockchain.

블록체인 프로세서(230)는 프로세서(예: 도 1의 프로세서(120))에 포함될 수 있다. 블록체인 프로세서(230)는 블록체인 플랫폼(200)에 포함된 구성들의 동작을 제어할 수 있다. 예를 들어, 블록체인 프로세서(230)는 블록체인 네트워크 상에서 원장 동기화, 트랜잭션 서명 및/또는 트랜잭션 기록 수행을 포함하는 트랜잭션의 실행을 수행할 수 있다. The blockchain processor 230 may be included in a processor (eg, processor 120 of FIG. 1). The blockchain processor 230 can control the operations of components included in the blockchain platform 200. For example, blockchain processor 230 may perform execution of transactions, including synchronizing ledgers, signing transactions, and/or performing transaction records on a blockchain network.

일 실시 예에서, 분산 원장(220)은 블록체인 네트워크에서 전자 장치(101)와 관련된 트랜잭션에 대한 데이터를 저장할 수 있다. In one embodiment, distributed ledger 220 may store data about transactions related to electronic device 101 in a blockchain network.

일 실시 예에 따르면, 분산 원장(220)은 블록체인 네트워크의 전체 원장이 아닌 전체 원장의 적어도 일부를 포함하는 부분 원장일 수 있다. 예를 들어, 분산 원장(220)은 블록체인 네트워크에서의 모든 트랜잭션과 관련된 블록 및 데이터를 저장하는 전체 원장 중에서 전자 장치(101)와 관련된 트랜잭션에 대한 블록 및 데이터를 포함하는 부분 원장을 포함할 수 있다. According to one embodiment, the distributed ledger 220 may be a partial ledger that includes at least a portion of the entire ledger rather than the entire ledger of the blockchain network. For example, distributed ledger 220 may include a partial ledger containing blocks and data for transactions involving electronic device 101 among the overall ledger storing blocks and data associated with all transactions in the blockchain network. there is.

다른 실시 예에 따르면, 분산 원장(220)은 블록체인 네트워크에서의 모든 트랜잭션과 관련된 블록 및 데이터를 저장하는 전체 원장을 포함할 수 있다. According to another embodiment, distributed ledger 220 may include an overall ledger that stores blocks and data related to all transactions in a blockchain network.

일 실시 예에 따르면, 분산 원장(220)은 블록체인 네트워크를 통해 생성된 적어도 하나의 블록(221)과 스테이트 데이터 베이스(state DB(data base))(222)를 포함할 수 있다. 블록(221)은 스마트 컨트랙트(210)를 수행하기 위한 정보를 담은 트랜잭션들로 이루어 질 수 있다. 일 실시 예에서, 분산 원장(220)의 블록들은 블록체인 형태로 이루어지며, 블록 데이터를 포함할 수 있다. 예를 들어, 블록(221)은 해시 필드와 블록 데이터를 포함할 수 있다. 해시 필드는 블록체인 네트워크의 전체 원장에서의 이전 블록 정보 및 블록체인 네트워크의 부분 원장에서의 이전 블록 정보를 포함할 수 있다. According to one embodiment, the distributed ledger 220 may include at least one block 221 and a state database (data base) 222 generated through a blockchain network. Block 221 may be composed of transactions containing information for performing the smart contract 210. In one embodiment, blocks of the distributed ledger 220 are in the form of a blockchain and may include block data. For example, block 221 may include a hash field and block data. The hash field may include previous block information in the entire ledger of the blockchain network and previous block information in the partial ledger of the blockchain network.

일 실시 예에 따르면, 블록체인을 구성하는 적어도 하나의 블록(221)은 해시 필드에 포함된 이전 블록 정보에 기초하여 연결되는 것으로 표현될 수 있다 예를 들어, 블록체인을 구성하는 적어도 하나의 블록(221)은 유향 비순환 그래프(directed acyclic graph, DAG) 구조로 연결될 수 있다. 일 실시 예에 따르면, 블록체인 네트워크의 전체 원장에 포함된 적어도 하나의 블록이 DAG 구조로 연결된 경우, 블록체인 네트워크의 부분 원장은 전체 원장의 서브 그래프 구조로 연결될 수 있다.According to one embodiment, at least one block 221 constituting the blockchain may be expressed as being connected based on previous block information included in the hash field. For example, at least one block 221 constituting the blockchain (221) can be connected in a directed acyclic graph (DAG) structure. According to one embodiment, when at least one block included in the entire ledger of the blockchain network is connected in a DAG structure, the partial ledger of the blockchain network may be connected in a subgraph structure of the entire ledger.

스테이트 데이터 베이스(222)는 블록체인 네트워크에서의 트랜잭션 실행으로 인해 변경된 값들을 키 값(key-value) 형태로 저장할 수 있다. 일 실시 예에서, 스테이트 데이터 베이스(222)에 저장된 데이터는 스테이트 데이터(state data)로 표현될 수 있다. 스테이트 데이터는, 예를 들어, 하이퍼레저 패브릭(hyperledger fabric)에서 사용되는 데이터 베이스인 월드 스테이트(world state)에 저장된 데이터를 의미할 수 있다. 다만, 이에 한정되지 아니한다.The state database 222 can store values changed due to transaction execution in the blockchain network in key-value form. In one embodiment, data stored in the state database 222 may be expressed as state data. State data may refer, for example, to data stored in world state, a database used in Hyperledger Fabric. However, it is not limited to this.

스테이트 데이터 베이스(222)는 하이퍼레저 패브릭에서 사용되는 일종의 데이터 베이스로, 트랜잭션을 실행하여 변경된 최종의 값들을 키 값 형태로 저장할 수 있다. 따라서, 전자 장치(101)는 블록체인 네트워크 내의 트랜잭션 실행에 의한 최종의 값들을 확인하기 위해서 스테이트 데이터 베이스(222)를 확인할 수 있다. 스테이트 데이터 베이스(222)에 저장된 스테이트 데이터는 블록체인 네트워크 내에서 전역 변수와 같은 특징을 가질 수 있다.The state database 222 is a type of database used in Hyperledger Fabric, and can store final values changed by executing a transaction in the form of key values. Accordingly, the electronic device 101 can check the state database 222 to confirm final values resulting from transaction execution within the blockchain network. State data stored in the state database 222 may have characteristics such as global variables within the blockchain network.

일 실시 예에 따르면, 스테이트 데이터 베이스(222)는 전자 장치(101)의 사용자가 관여한 트랜잭션에 대한 데이터를 저장할 수 있다. 예를 들어, 블록체인 네트워크에서 전자 장치(101)와 관련된 트랜잭션 실행으로 인해 변경된 값들을 저장할 수 있다.According to one embodiment, the state database 222 may store data about transactions in which the user of the electronic device 101 participates. For example, in a blockchain network, values changed due to execution of a transaction related to the electronic device 101 may be stored.

일 실시 예에 따르면, 트랜잭션 합의 모듈(240)은 블록체인 네트워크에서 전자 장치(101)가 트랜잭션의 합의 절차를 수행하기 위한 동작을 제어할 수 있다. 예를 들어, 트랜잭션 합의 모듈(240)은 블록체인 네트워크에서 사용되는 합의 알고리즘에 기초하여 트랜잭션 합의를 처리하는 동작을 수행할 수 있다. 트랜잭션 합의 모듈(240)은 통상적인 블록체인에서 사용되는 다양한 합의 알고리즘을 지원할 수 있다. 예를 들어, 트랜잭션 합의 모듈(240)은 proof of work(POW), proof of state(POS), PBFT(practical byzantine fault tolerance), 및/또는 RAFT에 기초하여 블록체인 네트워크에 포함된 노드들(예: 모바일 노드들)과 트랜잭션 합의를 수행할 수 있다.According to one embodiment, the transaction consensus module 240 may control operations for the electronic device 101 to perform a transaction consensus procedure in a blockchain network. For example, the transaction consensus module 240 may perform an operation to process transaction consensus based on the consensus algorithm used in the blockchain network. The transaction consensus module 240 can support various consensus algorithms used in typical blockchains. For example, the transaction consensus module 240 may be used to connect nodes included in the blockchain network (e.g., based on proof of work (POW), proof of state (POS), practical byzantine fault tolerance (PBFT), and/or RAFT). : Transaction agreement can be performed with mobile nodes).

일 실시 예에 따르면, 블록체인 네트워크 관리 모듈(250)은 전자 장치(101)가 노드(예: 모바일 노드)로 참여한 블록체인 네트워크와 관련된 동작을 수행할 수 있다. 일 실시 예에 따르면, 블록체인 네트워크 관리 모듈(250)은 블록체인 네트워크를 형성하고, 블록체인 네트워크에 포함된 다른 노드들(외부 전자 장치들)과 관련된 동작을 수행할 수 있다. According to one embodiment, the blockchain network management module 250 may perform operations related to a blockchain network in which the electronic device 101 participates as a node (eg, a mobile node). According to one embodiment, the blockchain network management module 250 can form a blockchain network and perform operations related to other nodes (external electronic devices) included in the blockchain network.

도 3은 일 실시 예에 따른 모바일 블록체인 시스템을 설명하기 위한 도면이다. Figure 3 is a diagram for explaining a mobile blockchain system according to an embodiment.

도 3을 참조하면, 일 실시 예에 따르면, 모바일 블록체인 네트워크 내 전자 장치(예: 도 1의 전자 장치(101))는 통신 모듈(예: 도 1의 통신 모듈(190)을 통해 적어도 하나의 외부 전자 장치와 블록체인 네트워크를 형성할 수 있다. 전자 장치(101)는 블록체인 네트워크에 포함된 적어도 하나의 외부 전자 장치들과 데이터를 송수신하고, 블록체인 네트워크에서의 트랜잭션 합의에 참여할 수 있다. Referring to FIG. 3, according to one embodiment, an electronic device (e.g., electronic device 101 of FIG. 1) in a mobile blockchain network communicates with at least one device through a communication module (e.g., communication module 190 of FIG. 1). A blockchain network can be formed with external electronic devices.The electronic device 101 can transmit and receive data with at least one external electronic device included in the blockchain network and participate in transaction agreement in the blockchain network.

일 실시예에 따르면, 모바일 블록체인 네트워크는 복수의 전자 장치들(301,302,303,304)로 구성될 수 있다.According to one embodiment, a mobile blockchain network may be composed of a plurality of electronic devices (301, 302, 303, and 304).

복수의 전자 장치들(301,302,303,304)은 블록체인 서비스에 참여하는 복수의 모바일 노드(또는 참여 노드)(예: 301,302,303)와 각 모바일 노드를 연결하는 중계 노드(또는 서버 노드)(예: 304)를 포함할 수 있다. 모바일 노드(예: 301,302,303)는 휴대 가능한 전자 장치(예: 휴대폰, 태블릿 PC, 또는 노트북)일 수 있다. 중계 노드(예: 304)는 서버 장치일 수 있다. The plurality of electronic devices 301, 302, 303, and 304 include a plurality of mobile nodes (or participating nodes) (e.g., 301, 302, 303) participating in the blockchain service and a relay node (or server node) (e.g., 304) connecting each mobile node. can do. A mobile node (e.g., 301, 302, or 303) may be a portable electronic device (e.g., a cell phone, tablet PC, or laptop). The relay node (e.g. 304) may be a server device.

일 실시 예에 따르면, 블록체인 네트워크에 포함된 모바일 노드들(301,302,303) 및 중계 노드(304)는 전체 원장 또는 부분 원장을 각각 저장(또는 소유)할 수 있다.According to one embodiment, the mobile nodes 301, 302, and 303 and the relay node 304 included in the blockchain network may store (or own) the entire ledger or partial ledger, respectively.

일 실시 예에 따르면, 중계 노드(304)(또는 중계 역할을 하는 전자 장치)는 모든 트랜잭션의 실행에 참여하도록 구성될 수 있다. 중계 노드(304)는 블록체인 네트워크의 모든 트랜잭션에 대한 합의 및 모든 블록을 기록할 수 있다. 중계 노드(304)는 모든 트랜잭션에 대한 합의에 참여하고, 블록체인 네트워크의 모든 트랜잭션의 블록 및 스테이트 데이터(state data)를 저장할 수 있다. 중계 노드(304)는 블록체인 네트워크의 분산 원장인 전체 원장을 저장할 수 있다. According to one embodiment, the relay node 304 (or an electronic device serving as a relay) may be configured to participate in the execution of all transactions. The relay node 304 can record all blocks and consensus on all transactions in the blockchain network. The relay node 304 participates in consensus on all transactions and can store blocks and state data of all transactions in the blockchain network. The relay node 304 can store the entire ledger, which is a distributed ledger of the blockchain network.

일 실시 예에 따르면, 중계 노드(304)는 비활성 상태(예: idle/sleep state)인 모바일 노드(예: 301,302 or 303)로 웨이크업 신호(예: wake up signal, push message)를 전달할 수 있다. 모바일 노드(예: 301,302 or 303)는 중계 노드(304)로부터 웨이크업 신호가 수신되는 것에 반응하여 활성 상태(예: running state)로 전환하고, 블록체인 네트워크에 연결하여 블록체인 네트워크 서비스에 참여할 수 있다. 모바일 노드(예: 301,302 or 303)는 웨이크업 신호에 반응하여 중계 노드(304)로 응답 신호(response signal)를 전송할 수 있다. 중계 노드(304)는 트랜잭션에 참여하는 모바일 노드(예: 301,302 or 303)로부터 응답 신호가 수신되면, 노드 간 트랜잭션 생성 및 합의 동작을 수행하도록 중계할 수 있다. According to one embodiment, the relay node 304 may transmit a wake-up signal (e.g., wake up signal, push message) to a mobile node (e.g., 301, 302 or 303) that is in an inactive state (e.g., idle/sleep state). . The mobile node (e.g., 301, 302 or 303) can switch to an active state (e.g., running state) in response to receiving a wake-up signal from the relay node 304 and participate in blockchain network services by connecting to the blockchain network. there is. The mobile node (eg, 301, 302 or 303) may transmit a response signal to the relay node 304 in response to the wake-up signal. When a response signal is received from a mobile node (e.g., 301, 302 or 303) participating in a transaction, the relay node 304 can relay the transaction to create a transaction and perform a consensus operation between nodes.

일 실시 예에 따르면, 모바일 노드(또는 모바일 노드로 이용되는 전자 장치들) (예: 301,302 or 303)는 각 전자 장치와 관련된 트랜잭션의 생성 및 블록을 기록할 수 있다. According to one embodiment, a mobile node (or electronic devices used as a mobile node) (eg, 301, 302 or 303) may record the creation and block of transactions related to each electronic device.

일 실시 예에 따르면, 모바일 노드(예: 301,302 or 303)는 각 전자 장치와 관련된 트랜잭션의 실행에만 참여하도록 구성될 수 있다. 예를 들어, 모바일 노드(예: 301,302 or 303)는 블록체인 네트워크의 전체 원장 중에서 사용자(또는 사용자 장치)와 관련된 트랜잭션 합의에 참여하고, 트랜잭션의 블록 및 스테이트 데이터(예: 부분 원장)만을 저장할 수 있다. 모바일 노드(예: 301,302 or 303)는 블록체인 네트워크의 분산 원장 중에서 각 전자 장치와 관련된 부분 원장을 저장할 수 있다. According to one embodiment, mobile nodes (e.g., 301, 302 or 303) may be configured to only participate in the execution of transactions related to each electronic device. For example, a mobile node (e.g., 301,302 or 303) may participate in transaction consensus related to a user (or user device) and store only the block and state data of the transaction (e.g., a partial ledger) of the entire ledger of the blockchain network. there is. Mobile nodes (e.g., 301, 302 or 303) can store partial ledgers related to each electronic device among the distributed ledgers of the blockchain network.

일 실시 예에 따르면, 모바일 노드(예: 301,302 or 303)는 스테이트 데이터에 기초하여 스마트 컨트랙트를 실행하고, 다른 모바일 노드들과 서로 간에 수행되는 합의 프로세스의 결과에 기초하여 트랜잭션을 실행할지 여부를 결정할 수 있다. 예를 들어, 모바일 노드(예: 301,302 or 303)는 스마트 컨트랙트를 실행하여 생성된 결과 값이 일치하는 경우 합의에 성공하는 것으로 판단할 수 있다. According to one embodiment, a mobile node (e.g., 301, 302 or 303) executes a smart contract based on state data and determines whether to execute a transaction based on the results of a consensus process performed between other mobile nodes and each other. You can. For example, a mobile node (e.g., 301, 302 or 303) may determine that the agreement is successful if the resulting values generated by executing the smart contract match.

일 실시 예에 따르면, 블록체인 네트워크에 참여하는 모바일 노드 중 일부 (예: 301 or 302)는 블록체인 네트워크의 분산 원장의 부분 원장을 저장(또는 소유)할 수 있다. 부분 원장을 저장하는 모바일 노드(예: 301 or 302)는 블록체인 네트워크에서 트랜잭션 생성을 요청하는 노드가 될 수 있고, 트랜잭션 생성 요청에 따라 트랜잭션에 대한 합의 동작을 수행하는 노드가 될 수 있다. According to one embodiment, some of the mobile nodes participating in the blockchain network (e.g., 301 or 302) may store (or own) a partial ledger of the distributed ledger of the blockchain network. The mobile node (e.g. 301 or 302) that stores the partial ledger can be a node that requests transaction creation in the blockchain network, and can be a node that performs a consensus operation for the transaction according to the transaction creation request.

일 실시 예에 따르면, 모바일 블록체인 네트워크에서 모바일 노드들 중 적어도 일부(예: 303)는 블록체인 네트워크의 분산 원장의 전체 원장을 저장(또는 소유)할 수 있다. 전체 원장을 저장하는 모바일 노드(예: 303) 또는 중계 노드(304)는, 다른 모바일 노드로부터 합의 권한을 양도받아 대리 합의 동작을 수행하는 노드가 될 수 있다. According to one embodiment, in a mobile blockchain network, at least some of the mobile nodes (e.g., 303) may store (or own) the entire ledger of the distributed ledger of the blockchain network. The mobile node (e.g., 303) or relay node 304 that stores the entire ledger may be a node that receives consensus authority from another mobile node and performs proxy consensus operations.

일 실시 예에 따르면, 블록체인 네트워크에 참여하는 모바일 노드 중 부분 원장을 저장하는 모바일 노드(예: 301 or 302)는 트랜잭션에 대한 합의 동작을 다른 모바일 노드(예: 303)에서 대리 합의하도록 요청(또는 대리 합의 동의에 대한 트랜잭션 실행)할 수 있다. According to one embodiment, among mobile nodes participating in a blockchain network, a mobile node (e.g., 301 or 302) that stores a partial ledger requests that another mobile node (e.g., 303) perform a proxy agreement on the transaction agreement (e.g., 303). Alternatively, a transaction may be executed based on the proxy agreement agreement.

예를 들어, 제1 노드(301)는 제3 노드(303)와 대리 합의 관계를 설정할 수 있다. 제1 노드(301)는 제3 노드(303)로 제1 노드(301)와 관련된 트랜잭션에 대해 제1 노드(301)를 대신하여 대리 합의하도록 요청하고, 제3 노드(303)는 대리 합의에 대해 동의할 수 있다. 중계 노드(304)는 제1 노드(301)와 제3 노드(303) 간의 대리 합의 관계에 대한 설정 정보(예: 대리 합의 정보 테이블, 합의 경로 변경 테이블)를 저장할 수 있다. For example, the first node 301 may establish a proxy agreement relationship with the third node 303. The first node 301 requests the third node 303 to make a proxy agreement on behalf of the first node 301 for a transaction related to the first node 301, and the third node 303 participates in the proxy agreement. We can agree on this. The relay node 304 may store setting information (e.g., proxy agreement information table, agreement path change table) about the proxy agreement relationship between the first node 301 and the third node 303.

일 실시 예에 따르면, 블록체인 네트워크에 참여하는 모바일 노드 중 전체 원장을 저장하는 모바일 노드(예: 303)는 다른 모바일 노드와 관련된 트랜잭션에 대해 다른 모바일 노드를 대신하여 대리 합의 동작(또는 절차)을 수행할 수 있다. According to one embodiment, among mobile nodes participating in a blockchain network, a mobile node (e.g., 303) that stores the entire ledger performs a proxy agreement operation (or procedure) on behalf of other mobile nodes for transactions related to other mobile nodes. It can be done.

예를 들어, 제2 노드(302)는 제1 노드(301)와의 스마트 컨트랙트 트랜잭션을 실행하고 제1 노드(301)의 합의를 요청할 수 있다. 중계 노드(304)는 제1 노드(301)와 제3 노드(303)와의 대리 합의 관계를 확인하고, 제2 노드(302)의 트랜잭션 합의 동작을 제3 노드(303)로 요청할 수 있다.For example, the second node 302 may execute a smart contract transaction with the first node 301 and request agreement from the first node 301. The relay node 304 may confirm the proxy agreement relationship between the first node 301 and the third node 303 and request the third node 303 to perform a transaction agreement operation of the second node 302.

제3 노드(303)는 제2 노드(302)에서 제1 노드(301)로 요청하는 트랜잭션 합의에 대해 제1 노드(301)를 대신하여 대리 합의하고, 대리 합의 결과를 중계 노드(304)를 통해 제2 노드(302)로 전달할 수 있다. The third node 303 makes a proxy agreement on behalf of the first node 301 for the transaction agreement requested from the second node 302 to the first node 301, and sends the proxy agreement result to the relay node 304. It can be transmitted to the second node 302 through.

다양한 실시 예에 따르면, 블록체인 네트워크에 참여하는 모바일 노드 중 부분 원장을 저장하는 모바일 노드(예: 301 or 302)는 다른 모바일 노드와의 대리 합의 관계 설정, 대리 합의 시작 요청, 대리 합의 중지 요청 또는 대리 합의 정보 삭제 요청과 관련된 트랜잭션을 실행하여 다른 모바일 노드(예: 303)와 합의할 수 있다. According to various embodiments, among mobile nodes participating in a blockchain network, a mobile node (e.g., 301 or 302) that stores a partial ledger may establish a proxy agreement relationship with other mobile nodes, request to start a proxy agreement, request to stop a proxy agreement, or An agreement can be reached with another mobile node (e.g. 303) by executing a transaction related to a request to delete proxy agreement information.

어떤 실시 예에서, 중계 노드(304)와 제3 노드(303)가 일체형으로 구성될 수 있으며, 제3 노드(303)의 역할을 중계 노드(304)가 수행할 수 있다. In some embodiments, the relay node 304 and the third node 303 may be integrated, and the relay node 304 may perform the role of the third node 303.

다양한 실시예에 따른 블록체인 네트워크에 포함된 블록체인 노드를 구성하는 전자 장치(예: 도 1의 전자 장치(101), 도 3의 제3 노드(303))는 통신 모듈(예: 도 1의 통신 모듈(190)), 블록체인 네트워크에 대한 전체 원장 중 일부를 포함하는 부분 원장 또는 전체 원장을 저장하는 메모리(예: 도 1의 메모리(130)), 상기 통신 모듈 및 상기 메모리와 전기적으로 연결된 적어도 하나의 프로세서(예: 도 1의 프로세서(120), 도 2의 블록체인 프로세서(230))를 포함하고, 상기 원장은 상기 전자 장치가 합의에 참여한 적어도 하나의 트랜잭션 각각에 상응하는 적어도 하나의 블록을 포함하고, 상기 적어도 하나의 프로세서는, 상기 통신 모듈을 통해 제1 외부 전자 장치(예: 도 3의 제1 노드(301))와 통신하여 상기 제1 외부 전자 장치와의 대리 합의 관계를 설정하고, 제2 외부 전자 장치(예: 도 3의 제2 노드(302))로부터 상기 통신 모듈을 통해 상기 제1 외부 전자 장치와 상기 제2 외부 전자 장치 간의 서비스에 대한 제1 트랜잭션의 합의 요청을 수신하고, 상기 제1 외부 전자 장치의 대리 합의 시작 요청이 수신된 것에 기초하여 상기 제1 외부 전자 장치와 상기 제2 외부 전자 장치 간의 서비스에 대한 제1 트랜잭션에 대해 상기 제1 외부 전자 장치를 대리하여 합의 동작을 수행하고, 상기 대리 합의된 완료 결과를 상기 통신 모듈을 통해 상기 제2 외부 전자 장치로 전달하도록 설정될 수 있다.An electronic device constituting a blockchain node included in a blockchain network according to various embodiments (e.g., the electronic device 101 in FIG. 1, the third node 303 in FIG. 3) uses a communication module (e.g., the electronic device 101 in FIG. 1). Communication module 190), a memory that stores a partial ledger or the entire ledger including part of the entire ledger for the blockchain network (e.g., memory 130 in FIG. 1), electrically connected to the communication module and the memory It includes at least one processor (e.g., the processor 120 of FIG. 1 and the blockchain processor 230 of FIG. 2), and the ledger has at least one transaction corresponding to each of at least one transaction in which the electronic device participated in the agreement. and a block, wherein the at least one processor communicates with a first external electronic device (e.g., the first node 301 of FIG. 3) through the communication module to establish a proxy agreement relationship with the first external electronic device. Setting, and requesting agreement on a first transaction for a service between the first external electronic device and the second external electronic device through the communication module from a second external electronic device (e.g., the second node 302 in FIG. 3) Receives, and sends the first external electronic device to the first external electronic device for a first transaction for a service between the first external electronic device and the second external electronic device based on the proxy agreement start request of the first external electronic device being received. It may be set to perform an agreement operation on behalf of the user and transmit the completed result of the proxy agreement to the second external electronic device through the communication module.

다양한 실시예에 따르면, 상기 적어도 하나의 프로세서는, 상기 제1 외부 전자 장치와 상기 제2 외부 전자 장치 간의 제1 트랜잭션 합의가 완료된 것에 반응하여, 상기 블록체인 네트워크에 참여한 각 노드들의 원장을 업데이트하도록 상기 통신 모듈을 통해 요청할 수 있다. According to various embodiments, the at least one processor is configured to update the ledger of each node participating in the blockchain network in response to completion of the first transaction agreement between the first external electronic device and the second external electronic device. A request can be made through the communication module.

다양한 실시예에 따르면, 상기 적어도 하나의 프로세서는, 상기 제1 외부 전자 장치로부터 대리 합의 중지 요청이 수신되는 경우, 상기 대리 합의 완료된 블록 데이터를 상기 제1 외부 전자 장치로 전송하도록 더 설정될 수 있다. According to various embodiments, the at least one processor may be further configured to transmit the proxy agreement completed block data to the first external electronic device when a request to stop proxy agreement is received from the first external electronic device. .

다양한 실시예에 따르면, 상기 제1 외부 전자 장치 및 상기 제2 외부 전자 장치는 모바일 노드이고, 상기 적어도 하나의 프로세서는, 상기 블록체인 네트워크 내 중계 노드를 통해 상기 제1 외부 전자 장치 및 상기 제2 외부 전자 장치와 통신하도록 설정될 수 있다. According to various embodiments, the first external electronic device and the second external electronic device are mobile nodes, and the at least one processor is connected to the first external electronic device and the second external electronic device through a relay node in the blockchain network. It can be set to communicate with an external electronic device.

다양한 실시예에 따르면, 상기 적어도 하나의 프로세서는, 상기 제1 외부 전자 장치와 대리 합의 관계 설정 시, 대리 합의를 요청하는 노드 항목과 요청 노드를 대신하여 대리 합의 가능 상태를 체크하는 항목을 포함하는 대리 합의 정보 테이블을 저장 관리하도록 더 설정될 수 있다. According to various embodiments, when establishing a proxy agreement relationship with the first external electronic device, the at least one processor includes a node item requesting proxy agreement and an item checking whether a proxy agreement is possible on behalf of the requesting node. It may be further configured to store and manage the proxy agreement information table.

다양한 실시예에 따르면, 상기 적어도 하나의 프로세서는, 상기 대리 합의 정보 테이블에 상기 제1 외부 전자 장치와 관련하여 대리 합의 가능 상태가 온(on)으로 기록된 것에 기초하여 상기 제1 트랜잭션에 대해 상기 제1 외부 전자 장치를 대리하여 합의 동작을 수행하도록 더 설정될 수 있다.According to various embodiments, the at least one processor is configured to respond to the first transaction based on a proxy agreement possible state in relation to the first external electronic device being recorded as on in the proxy agreement information table. It may be further configured to perform a consensus operation on behalf of the first external electronic device.

다양한 실시예에 따르면, 상기 적어도 하나의 프로세서는, 상기 대리 합의 정보 테이블에 상기 제1 외부 전자 장치와 관련하여 대리 합의 가능 상태가 오프(off)로 기록된 상태에서, 상기 제1 외부 전자 장치의 대리 합의 시작 요청을 수신하지 못하는 경우, 상기 중계 노드로부터 대리 합의 정보 변경 요청을 수신하고, 상기 중계 노드로부터 수신된 대리 합의 정보 변경에 기초하여 상기 제1 외부 전자 장치와 관련하여 대리 합의 가능 상태를 온(on)으로 업데이트하도록 더 설정될 수 있다. According to various embodiments, the at least one processor records the proxy agreement possible state with respect to the first external electronic device as off in the proxy agreement information table, If a proxy agreement start request is not received, a proxy agreement information change request is received from the relay node, and a proxy agreement possible state is established with respect to the first external electronic device based on the proxy agreement information change received from the relay node. It may be further set to update to on.

다양한 실시예에 따르면, 상기 적어도 하나의 프로세서는, 상기 제1 외부 전자 장치와의 대리 합의 관계 설정 정보, 대리 합의 동작 정보 또는 대리 합의 중지 정보를 상기 블록체인 네트워크 내 원장에 기록하도록 설정될 수 있다. According to various embodiments, the at least one processor may be set to record proxy agreement relationship establishment information, proxy agreement operation information, or proxy agreement suspension information with the first external electronic device in the ledger within the blockchain network. .

다양한 실시예에 따르면, 상기 적어도 하나의 프로세서는, 상기 제1 외부 전자 장치로부터 대리 합의 관계 설정 삭제 요청이 수신되는 경우, 대리 합의 관계 삭제에 대한 정보를 상기 블록체인 네트워크 내 원장에 기록하도록 설정될 수 있다.According to various embodiments, the at least one processor may be set to record information about deletion of the proxy agreement relationship in the ledger within the blockchain network when a request to delete the proxy agreement relationship setting is received from the first external electronic device. You can.

이하, 블록체인 네트워크 내에서 대리 합의 동작과 관련된 다양한 케이스들에 대해서 설명하기로 한다. 다양한 실시 예에 따른 전자 장치(101)는 서비스 합의가 필요한 스마트 컨트랙트의 구현에 따라 자동으로 대리 합의 동작을 수행하도록 설정될 수도 있고, 스마트 컨트랙트에 대한 합의 과정에 패턴 인식 및/또는 생체 정보 인식(예: 지문 인식)과 같은 사용자 인증을 추가하여 설정할 수도 있다. Below, we will explain various cases related to proxy agreement operations within a blockchain network. The electronic device 101 according to various embodiments may be set to automatically perform proxy agreement operations depending on the implementation of a smart contract requiring service agreement, and may use pattern recognition and/or biometric information recognition ( You can also set up additional user authentication, such as fingerprint recognition.

도 4는 일 실시 예에 따른 모바일 블록체인 네트워크 내 전자 장치의 대리 합의 설정 방법을 도시한다. Figure 4 illustrates a method of establishing proxy agreement for electronic devices in a mobile blockchain network according to an embodiment.

도 4를 참조하면, 다양한 실시 예들에 따른 전자 장치(101)는 블록체인 네트워크에 참여하는 모바일 노드로서, 전자 장치의 상태 변화에 따라 블록체인 미참여를 방지하기 위해 블록체인 네트워크에 참여하는 다른 노드(에: 다른 모바일 노드 또는 중계 노드)와 대리 합의 관계를 사전에 설정할 수 있다.Referring to FIG. 4, the electronic device 101 according to various embodiments is a mobile node participating in a blockchain network, and in order to prevent non-participation in the blockchain according to changes in the state of the electronic device, other nodes participating in the blockchain network ( A proxy agreement relationship with another mobile node or relay node) can be established in advance.

도 4의 실시 예에서, 제1 노드(예: 도 3의 301)는 대리 합의 설정자(또는 합의자)이고, 제3 노드(예: 도 3의 303)는 제1 노드(301)를 대리하여 트랜잭션 합의에 참여하는 대리 합의자일 수 있다. 예를 들어, 제1 노드(301)는 블록체인 네트워크에서 부분 원장을 소유하는 임의의 모바일 노드일 수 있다. In the embodiment of FIG. 4, the first node (e.g., 301 in FIG. 3) is the proxy agreement setter (or agreeer), and the third node (e.g., 303 in FIG. 3) acts on behalf of the first node (301). It may be a proxy agreeer participating in transaction agreement. For example, the first node 301 may be any mobile node that owns a partial ledger in a blockchain network.

410동작에서, 제1 노드(301)는 제3 노드(303)가 제1 노드(301)를 대신하여 대리 합의 설정을 요청하는 스마트 컨트랙트 트랜잭션을 실행하여 대리 합의 설정에 대한 합의를 중계 노드(304)로 요청할 수 있다. 예를 들어, 제1 노드(301)는 대리 합의 관계 설정 요청 정보를 트랜잭션 데이터(예: 데이터 1)로 전달할 수 있다. 대리 합의 관계 설정 정보는 노드 간 요청 관계 정보(예: 노드 1-> 노드 3)와 합의 대상 정보(예: 대리 합의 요청자인 노드 1, 및 대리 합의자인 노드 3)을 포함할 수 있다. In operation 410, the first node 301 executes a smart contract transaction in which the third node 303 requests the establishment of a proxy agreement on behalf of the first node 301, and transmits the agreement on the establishment of the proxy agreement to the relay node 304. ) can be requested. For example, the first node 301 may transmit proxy agreement relationship establishment request information as transaction data (eg, data 1). The proxy agreement relationship setting information may include request relationship information between nodes (e.g., node 1 -> node 3) and agreement target information (e.g., node 1, which is the proxy agreement requester, and node 3, which is the proxy agreeer).

415 동작에서, 중계 노드(304)는 제1 노드(301)의 대리 합의 관계 설정을 요청하는 트랜잭션 데이터(예: 데이터 1)를 제3 노드(303)로 전달할 수 있다. 420 동작에서, 제3 노드(303)는 대리 합의 관계 설정에 합의하고, 합의된 완료 정보를 중계 노드(304)로 전달할 수 있다. In operation 415, the relay node 304 may transmit transaction data (eg, data 1) requesting establishment of a proxy agreement relationship of the first node 301 to the third node 303. In operation 420, the third node 303 may agree to establish a proxy agreement relationship and transmit the agreed upon completion information to the relay node 304.

425 동작에서, 중계 노드(304)는 제3 노드(303)의 대리 합의 관계 설정에 합의된 완료 정보를 제1 노드(301)로 전달할 수 있다. In operation 425, the relay node 304 may transmit completion information agreed upon in establishing the proxy agreement relationship of the third node 303 to the first node 301.

430 동작에서, 각 노드(예: 제1 노드(301), 중계 노드(304), 제3노드(303)는 제1 노드(301)와 제3 노드(303) 간의 대리 합의 설정에 관한 트랜잭션 데이터(예: 데이터 1)을 각 노드의 분산 원장에 기록할 수 있다. In operation 430, each node (e.g., the first node 301, the relay node 304, and the third node 303) receives transaction data regarding the establishment of a proxy agreement between the first node 301 and the third node 303. (e.g. data 1) can be recorded in the distributed ledger of each node.

어떤 실시예에 따르면, 중계 노드(304)는 각 노드의 분산 원장 저장 없이, 노드들간의 대리 합의 설정 정보를 각 노드로 전달하는 역할만을 수행할 수도 있다. 440 동작에서, 제3 노드(303)는 대리 합의 관계 설정 합의에 기초하여 대리 합의 정보 테이블을 업데이트 할 수 있다. According to some embodiments, the relay node 304 may only perform the role of delivering proxy agreement setting information between nodes to each node without storing the distributed ledger of each node. In operation 440, the third node 303 may update the proxy agreement information table based on the proxy agreement relationship establishment agreement.

일 실시 예에 따르면, 대리 합의 역할을 수행하는 임의의 노드(예: 제3 노드(303))는 블록체인 네트워크 내에서 적어도 하나 이상의 다른 모바일 노드로부터 요청된 대리 합의 관계 설정 정보에 기초하여, 대리 합의 정보 테이블로 구성하고 관리할 수 있다. 예를 들어, 대리 합의 정보 테이블은 대리 합의를 요청하는 요청 노드 항목과, 대리 합의 가능 상태를 체크하는 항목을 포함할 수 있다. 대리 합의 가능 상태 여부를 체크하는 항목은 대리 합의를 요청한 모바일 노드(예: 제1 노드(301))로부터 대리 합의 시작 요청 또는 비활성 모드 진입 신호가 수신되는 경우, 대리 합의 가능 상태 항목을 온(on)으로 기록되고, 대리 합의를 요청한 모바일 노드(예: 제1 노드(301))로부터 대리 합의 중지 요청 또는 활성 모드 진입 정보가 수신되는 경우, 대리 합의 가능 상태 항목을 오프(off)로 기록될 수 있다. According to one embodiment, a random node (e.g., the third node 303) performing the proxy agreement role acts as a proxy based on proxy agreement relationship setting information requested from at least one other mobile node within the blockchain network. It can be configured and managed as a consensus information table. For example, the proxy agreement information table may include a request node item requesting a proxy agreement and an item checking whether a proxy agreement is possible. The item that checks whether a proxy agreement is possible is turned on when a proxy agreement start request or an inactive mode entry signal is received from the mobile node that requested the proxy agreement (e.g., the first node 301). ), and when a proxy agreement stop request or active mode entry information is received from the mobile node that requested the proxy agreement (e.g., the first node 301), the proxy agreement possible status item may be recorded as off. there is.

예를 들어, 제3 노드(303)는 요청 노드와 관련된 트랜잭션의 합의 요청 시, 요청 노드의 대리 합의 가능 항목이 온(on)으로 기록된 경우, 요청 노드를 대신하여 트랜잭션 합의 동작을 수행할 수 있다. For example, when requesting consensus on a transaction related to the request node, the third node 303 may perform a transaction consensus operation on behalf of the request node if the request node's proxy agreement possible item is recorded as on. there is.

도 5는 일 실시 예에 따른 모바일 블록체인 네트워크 내 전자 장치 간 대리 합의 방법을 도시한다. Figure 5 illustrates a proxy agreement method between electronic devices in a mobile blockchain network according to an embodiment.

도 5를 참조하면, 다양한 실시 예들에 따른 전자 장치(101)는 블록체인 네트워크에 참여하는 다른 노드(에: 다른 모바일 노드 또는 중계 노드)로 대리 합의 시작을 요청할 수 있다. Referring to FIG. 5, the electronic device 101 according to various embodiments may request the start of a proxy agreement from another node (eg, another mobile node or relay node) participating in the blockchain network.

510 동작에서 제1 노드(301)는 전자 장치(101)가 네트워크 비활성 모드(또는 전력 절전 상태)로 진입하는지를 감지할 수 있다. 예를 들어, 제1 노드(301)는 전자 장치(101)의 배터리 잔량이 설정된 기준치 이하로 진입하거나 무선 통신 신호(예: RSSI(received signal strength indicator))가 기준치 이하의 세기로 수신되는지를 모니터링하여 네트워크 통신이 불가능한 비활성 모드로 진입하는지를 모니터링할 수 있다. In operation 510, the first node 301 may detect whether the electronic device 101 enters a network inactive mode (or power saving state). For example, the first node 301 monitors whether the remaining battery capacity of the electronic device 101 falls below a set reference value or whether a wireless communication signal (e.g., received signal strength indicator (RSSI)) is received at a strength below the reference value. You can monitor whether it enters an inactive mode where network communication is not possible.

515 동작에서, 제1 노드(301)는 전자 장치(101)가 네트워크 비활성 모드로 진입 전에, 블록체인 네트워크로 대리 합의 시작을 요청하는 스마트 컨트랙트를 실행하여 대리 합의 시작에 대한 합의를 중계 노드(304)로 요청할 수 있다. 예를 들어, 제1 노드(301)는 사전 대리 합의 관계가 설정된 제3 노드(303)에서 대리 합의를 시작하라는 트랜잭션 데이터(예: 데이터 2)를 중계 노드(304)로 전달할 수 있다. In operation 515, before the electronic device 101 enters the network inactive mode, the first node 301 executes a smart contract requesting the start of a proxy agreement with the blockchain network to reach an agreement on the start of the proxy agreement with the relay node 304. ) can be requested. For example, the first node 301 may transmit transaction data (eg, data 2) to the relay node 304 to initiate a proxy agreement from the third node 303 with which a prior proxy agreement relationship has been established.

520 동작에서, 중계 노드(304)는 제1 노드(301)의 대리 합의 시작을 요청하는 제1 트랜잭션 데이터(예: 데이터 2)를 대리 합의자인 제3 노드(303)로 전달할 수 있다. In operation 520, the relay node 304 may transmit the first transaction data (e.g., data 2) requesting the start of proxy agreement of the first node 301 to the third node 303, which is a proxy agreeer.

530 동작에서, 제3 노드(303)는 제1 노드(301)를 대신하여 대리 합의 시작에 대한 정보(예: 데이터 2)를 전체 원장 또는 제1 노드(301)와 관련된 부분 원장에 기록할 수 있다. In operation 530, the third node 303 may record information about the start of the proxy agreement (e.g., data 2) on behalf of the first node 301 in the full ledger or the partial ledger associated with the first node 301. there is.

예를 들어, 제3 노드(303)는 제1 노드(301)로부터 전달된 제1 트랜잭션 데이터(예: 데이터 2)에 반응하여 제1 노드(301)로 응답신호를 전송하지 않고, 전체 원장 또는 제1 노드(301)와 관련된 부분 원장에 제1트랜잭션 데이터(예: 데이터 2)를 기록할 수 있다. For example, the third node 303 does not transmit a response signal to the first node 301 in response to the first transaction data (e.g., data 2) transmitted from the first node 301, but transmits the entire ledger or First transaction data (eg, data 2) may be recorded in the partial ledger related to the first node 301.

535 동작에서, 제3 노드(303)는 대리 합의 시작 요청에 반응하여, 대리 합의 정보 테이블을 업데이트할 수 있다. In operation 535, the third node 303 may update the proxy agreement information table in response to the proxy agreement start request.

예를 들어, 제3 노드(303)는 제1 노드(301)가 사전 대리 합의 관계로 설정된 요청 노드일 경우, 대리 합의 정보 테이블에서 제1 노드(301)와 관련된 대리 합의 가능 상태를 체크하는 항목을 오프(off) 에서 온(on)으로 갱신할 수 있다. For example, when the first node 301 is a requesting node with a prior proxy agreement relationship, the third node 303 is an item that checks the proxy agreement availability status related to the first node 301 in the proxy agreement information table. can be updated from off to on.

540 동작에서, 제3 노드(303)는 제1 노드(301)를 대신하여 대리 합의 가능한 상태로 변경된 것임을 알림(inform)하는 합의 경로 변경 요청 메시지를 중계 노드(304)로 전달할 수 있다. In operation 540, the third node 303 may transmit an agreement path change request message to the relay node 304 on behalf of the first node 301, informing that the state has changed to a state where proxy agreement is possible.

545 동작에서, 중계 노드(304)는 합의 경로 변경 테이블을 업데이트할 수 있다. 예를 들어, 합의 경로 변경 테이블은 대리 합의 경로 변경 전 노드 항목(예: 제 1 노드)과, 대리 합의 경로 변경 후 노드 항목(예: 제 3 노드)을 포함할 수 있다.At operation 545, relay node 304 may update the consensus reroute table. For example, the consensus path change table may include a node entry before the proxy consensus path change (e.g., the first node) and a node entry after the proxy consensus path change (e.g., the third node).

일 실시 예에 따르면, 중계 노드(304)는 블록체인 네트워크에 참여하는 적어도 하나의 모바일 노드와 관련된 합의 경로 변경 테이블을 생성하여 관리할 수 있다. 중계 노드(304)는 합의 경로 변경 요청 메시지에 기초하여 제1 노드(301)와 관련된 합의 대상을 제1 노드(301)가 아닌 제3 노드(303)로 변경하도록 합의 경로 변경 테이블을 업데이트할 수 있다. According to one embodiment, the relay node 304 may create and manage a consensus route change table related to at least one mobile node participating in the blockchain network. The relay node 304 may update the consensus path change table to change the consensus target related to the first node 301 to the third node 303 rather than the first node 301 based on the consensus path change request message. there is.

550 동작에서, 제2 노드(302)는 제1 노드(301)와 서비스 합의가 필요한 스마트 컨트랙트 트랜잭션을 실행하여 서비스 합의를 중계 노드(304)로 요청할 수 있다. 예를 들어, 제2 노드(302)는 제1 노드(301)와의 서비스 합의를 요청하는 트랜잭션 데이터(예: 데이터 3)를 중계 노드(304)로 전달할 수 있다. 이때, 제2 노드(302)는 서비스 특징 또는 서비스 정책을 고려하여 트랜잭션 합의에 관해 대리 합의 가능 여부를 지정할 수 있다. In operation 550, the second node 302 may execute a smart contract transaction requiring service agreement with the first node 301 and request service agreement from the relay node 304. For example, the second node 302 may transmit transaction data (eg, data 3) requesting service agreement with the first node 301 to the relay node 304. At this time, the second node 302 may specify whether a proxy agreement is possible regarding transaction agreement by considering service characteristics or service policy.

서비스 합의를 요청하는 트랜잭션 데이터(예: 데이터 3)는 합의가 필요한 서비스 정보, 합의 대상자(예: 제1 노드 및 제2 노드) 정보 및 대리 합의 가능 여부 정보를 포함할 수 있다. Transaction data requesting service agreement (e.g., data 3) may include service information requiring agreement, information on parties to agreement (e.g., first node and second node), and information on whether proxy agreement is possible.

555 동작에서, 중계 노드(304)는 제2 노드(302)로부터 전달된 트랜잭션 데이터(예: 데이터 3)를 기반으로 대리 합의 가능 여부 및 합의 경로를 확인할 수 있다. In operation 555, the relay node 304 may check whether proxy agreement is possible and the agreement path based on transaction data (e.g., data 3) transmitted from the second node 302.

예를 들어, 중계 노드(304)는 트랜잭션 데이터(예: 데이터 3)를 통해 트랜잭션에 대해 대리 합의가 가능한 경우, 합의 경로 변경 테이블에 제1 노드(301)가 포함되어 있는지를 확인하고, 제1 노드(301)의 경로가 제3 노드(303)로 변경된 것을 확인할 수 있다. For example, if proxy agreement is possible for a transaction through transaction data (e.g., data 3), the relay node 304 checks whether the first node 301 is included in the consensus path change table, and determines whether the first node 301 is included in the first node 301. It can be seen that the path of node 301 has changed to the third node 303.

560 동작에서, 중계 노드(304)는 제1 노드(301)와의 서비스 합의를 요청하는 트랜잭션 데이터(예: 데이터 3)을 제3 노드(303)로 전달할 수 있다. In operation 560, the relay node 304 may transmit transaction data (eg, data 3) requesting service agreement with the first node 301 to the third node 303.

565 동작에서, 제3 노드(303)는 제2 노드(302)를 대신하여 제1 노드(301)와 제2 노드(302)와의 서비스에 대해 대리 합의하고, 합의된 완료 정보를 중계 노드(304)로 전달할 수 있다. 예를 들어, 대리 합의 완료 정보는 트랜젝션 데이터에 대한 합의 정보를 포함할 수 있으나, 이에 한정하지 않으며, 추가적으로 제3 노드(303)가 제1 노드(301)를 대리하여 합의했다는 정보를 포함하거나 포함하지 않을 수도 있다. In operation 565, the third node 303 makes a proxy agreement on the service with the first node 301 and the second node 302 on behalf of the second node 302, and sends the agreed completion information to the relay node 304. ) can be transmitted. For example, proxy agreement completion information may include, but is not limited to, agreement information on transaction data, and may additionally include or include information that the third node 303 reached an agreement on behalf of the first node 301. You may not.

570 동작에서, 중계 노드(304)는 제3 노드(303)로부터 전달된 제1 노드(301)와 제2 노드(302)와의 서비스 합의 완료 정보를 제2 노드(302)로 전달할 수 있다.In operation 570, the relay node 304 may transmit the service agreement completion information between the first node 301 and the second node 302 delivered from the third node 303 to the second node 302.

580 동작에서, 제2 노드(302), 중계 노드(304) 및 제3 노드(303)는 제1 노드(301)와 제2 노드(302)와의 서비스에 대한 트랜잭션 합의 결과를 각 분산 원장에 기록 또는 업데이트할 수 있다. In operation 580, the second node 302, the relay node 304, and the third node 303 record the results of transaction agreements for services with the first node 301 and the second node 302 in each distributed ledger. Or you can update it.

이후 도면에 도시되지 않았으나, 제1 노드(301)가 블록체인 네트워크에 다시 참여 가능한 상태로 전환된 경우, 제3 노드(303)는 제1 노드(301)로 대리 합의한 결과 또는 데이터를 제1 노드(301)로 전달할 수 있다. 제 1 노드(301)는 제 3 노드(303)로부터 전달 받은 대리 합의한 결과 또는 데이터를 제 1 노드(301)의 분산 원장에 기록할 수 있다.Although not shown in the drawing, if the first node 301 returns to a state where it can participate in the blockchain network, the third node 303 sends the results or data of proxy agreement to the first node 301 to the first node. It can be delivered to (301). The first node 301 may record the proxy agreement result or data received from the third node 303 in the distributed ledger of the first node 301.

도 6a 및 도 6b는 일 실시 예에 따른 모바일 블록체인 네트워크 내 전자 장치 간 대리 합의 경로 변경 방법을 도시한다. Figures 6a and 6b illustrate a method of changing the proxy agreement path between electronic devices in a mobile blockchain network according to an embodiment.

도 6a 및 도 6b를 참조하면, 일 실시 예에 따른 전자 장치(101)(예: 중계 노드)는 블록체인 네트워크에 참여하는 모바일 노드와 대리 합의 시작 요청없이, 통신이 되지 않은 경우, 사전 대리 합의 설정 정보를 기반으로 임의적으로 대리 합의 경로를 변경할 수 있다. Referring to FIGS. 6A and 6B, the electronic device 101 (e.g., relay node) according to one embodiment may initiate a preliminary proxy agreement with the mobile node participating in the blockchain network without requesting start of proxy agreement, if communication is not achieved. The proxy agreement path can be arbitrarily changed based on setting information.

제1 노드(301) 및 제3 노드(303)는 도 4에 도시된 절차를 진행하여 대리 합의 관계가 사전 설정이 완료된 상태일 수 있다. The first node 301 and the third node 303 may proceed with the procedure shown in FIG. 4 to complete pre-establishment of the proxy agreement relationship.

일 예를 들면, 대리 합의 관계가 사전 설정이 완료된 상황에서, 제1 노드(301)는 610 동작에 도시된 바와 같이, 전자 장치(101)가 네트워크 비활성화 모드로 진입 전에, 블록체인 네트워크로 대리 합의 시작을 요청하지 못할 수 있다. 예를 들어, 전자 장치(101)가 예기치 않은 상황으로 인해 전원이 오프되거나, 네트워크 연결이 끊길 수 있다. For example, in a situation where the proxy agreement relationship has been pre-established, the first node 301 makes a proxy agreement on the blockchain network before the electronic device 101 enters the network deactivation mode, as shown in operation 610. You may not be able to request startup. For example, the electronic device 101 may be turned off or network connection may be lost due to an unexpected situation.

이 때, 제3 노드(303)는 615동작에 도시된 바와 같이, 제1 노드(301)와 대리 합의 관계 사전 설정 합의를 통해 대리 합의 정보 테이블 내 제1 노드(301)에 대한 대리 합의 가능 상태를 체크하는 항목이 오프(off)로 기록된 상태일 수 있다. At this time, as shown in operation 615, the third node 303 is in a state where proxy agreement is possible for the first node 301 in the proxy agreement information table through a pre-established proxy agreement relationship with the first node 301. The item checked may be recorded as off.

독립적으로, 블록체인 네트워크 내에서 제2 노드(302)는 620동작에서, 제1 노드(301)와 서비스 합의가 필요한 스마트 컨트랙트 트랜잭션을 실행하여 서비스 합의를 중계 노드(304)로 요청할 수 있다. 예를 들어, 제2 노드(302)는 제1 노드(301)와의 서비스 합의를 요청하는 트랜잭션 데이터(예: 데이터 3)를 중계 노드(304)로 전달할 수 있다. 서비스 합의를 요청하는 트랜잭션 데이터(예: 데이터 3)는 합의가 필요한 서비스 정보, 합의 대상자(예: 제1 노드 및 제2 노드) 정보 및 대리 합의 가능 여부 정보를 포함할 수 있다. Independently, within the blockchain network, the second node 302 may execute a smart contract transaction requiring service agreement with the first node 301 and request service agreement from the relay node 304 in operation 620. For example, the second node 302 may transmit transaction data (eg, data 3) requesting service agreement with the first node 301 to the relay node 304. Transaction data requesting service agreement (e.g., data 3) may include service information requiring agreement, information on parties to agreement (e.g., first node and second node), and information on whether proxy agreement is possible.

630 동작에서, 중계 노드(304)는 제1 노드(301)와의 서비스 합의를 요청하는 트랜잭션 데이터(예: 데이터3)에 포함된 합의 대상을 기반으로 제1 노드(301)로 제 2 트랜잭션에 대한 합의 요청을 전송할 수 있다. 이 경우, 제1 노드(301)는 비활성 모드로 진입하여 네트워크 연결이 끊겼으므로, 중계 노드(304)로부터 합의 요청을 수신하지 못할 수 있다. In operation 630, the relay node 304 provides information about the second transaction to the first node 301 based on the agreement target included in the transaction data (e.g., data 3) requesting service agreement with the first node 301. A consensus request can be sent. In this case, the first node 301 enters an inactive mode and is disconnected from the network, so it may not receive a consensus request from the relay node 304.

635 동작에서, 중계 노드(304)는 제1 노드(301)로부터 서비스 합의 요청에 대한 응답 신호를 수신하지 못하고 설정된 시간이 경과(예: time out)되는 경우, N회 반복적으로 제1 노드(301)로 서비스 합의 요청을 시도할 수 있다. In operation 635, when the relay node 304 does not receive a response signal to the service agreement request from the first node 301 and a set time elapses (e.g., time out), the relay node 301 repeats N times ), you can attempt to request a service agreement.

640 동작에서, 중계 노드(304)는 제1 노드(301)로 합의 요청을 N회 시도하였으나 응답 수신에 실패한 경우, 서비스 합의를 요청하는 트랜잭션 데이터를 기반으로 대리 합의 가능 여부와 합의 경로 변경이 가능함을 확인할 수 있다.In operation 640, if the relay node 304 attempts to request agreement with the first node 301 N times but fails to receive a response, it is possible to determine whether proxy agreement is possible and change the agreement path based on transaction data requesting service agreement. can confirm.

예를 들어, 중계 노드(304)는 제1 노드(301)에 대해 대리 합의 관계가 설정된 제3 노드(303)에 대한 정보를 확인할 수 있다. 중계 노드(304)는 서비스 합의에 대해 대리 합의가 가능한 경우, 대리 합의 정보 테이블을 기반으로 제1 노드(301)의 대리 합의자인 제3 노드(303)로 합의 경로를 강제적으로 변경할 수 있다. For example, the relay node 304 may check information about the third node 303 with which a proxy agreement relationship is established with the first node 301. If proxy agreement is possible for the service agreement, the relay node 304 can forcibly change the agreement path to the third node 303, which is the proxy agreement of the first node 301, based on the proxy agreement information table.

650 동작에서 중계 노드(304)는 제1 노드(301)의 대리 합의 정보 변경을 요청하는 메시지를 제3 노드(303)로 전달할 수 있다. In operation 650, the relay node 304 may transmit a message requesting a change to the proxy agreement information of the first node 301 to the third node 303.

655 동작에서, 제3 노드(303)는 대리 합의 정보 변경 요청 메시지에 기초하여, 대리 합의 정보 테이블을 업데이트할 수 있다. 예를 들어, 제3 노드(303)는 대리 합의 정보 테이블에서 제1 노드(301)에 대한 대리 합의 가능 상태를 체크하는 항목을 오프(off) 에서 온(on)으로 갱신할 수 있다.In operation 655, the third node 303 may update the proxy agreement information table based on the proxy agreement information change request message. For example, the third node 303 may update the item that checks the possibility of proxy agreement for the first node 301 from off to on in the proxy agreement information table.

660 동작에서, 제3 노드(303)는 제1 노드(301)를 대신하여 대리 합의 시작에 대한 정보를 전체 원장 또는 제1 노드(301)와 관련된 부분 원장에 기록할 수 있다. In operation 660, the third node 303 may record information about the start of the proxy agreement on behalf of the first node 301 in the entire ledger or a partial ledger related to the first node 301.

670 동작에서, 제3 노드(303)는 중계 노드(304)로 대리 합의 경로를 변경하라는 요청 메시지를 전달할 수 있다. In operation 670, the third node 303 may transmit a request message to change the proxy agreement path to the relay node 304.

675 동작에서, 중계 노드(304)는 합의 경로 변경 요청 메시지에 기초하여, 서비스 합의 요청에 따라 제1 노드(301)를 대신하여 제3 노드(303)가 대리 합의하도록 합의 경로 변경 테이블을 업데이트 할 수 있다. In operation 675, based on the consensus path change request message, the relay node 304 updates the consensus path change table so that the third node 303 makes a proxy agreement on behalf of the first node 301 according to the service agreement request. You can.

680 동작에서, 중계 노드(304)는 제1 노드(301)에서 서비스 합의를 요청하는 트랜잭션 데이터(예: 데이터 3)를 제3 노드(303)로 전달할 수 있다. In operation 680, the relay node 304 may transmit transaction data (eg, data 3) requesting service agreement from the first node 301 to the third node 303.

685 동작에서, 제3 노드(303)는 제1 노드(301)와 제2 노드(302)와의 서비스에 대해 제 1 노드(301)를 대신하여 대리 합의 하고, 합의된 완료 정보를 중계 노드(304)로 전달할 수 있다. In operation 685, the third node 303 makes a proxy agreement on behalf of the first node 301 for the service with the first node 301 and the second node 302, and sends the agreed completion information to the relay node 304. ) can be transmitted.

690 동작에서, 중계 노드(304)는 제2 트랜잭션에 대리 합의 완료 결과를 제2 노드(302)로 전달할 수 있다. 695 동작에서, 제1 노드(301), 중계 노드(304) 및 제3 노드(303)는 제1 노드(301)와 제2 노드(302)와의 서비스에 대한 트랜잭션 합의 결과를 각 분산 원장에 기록 또는 업데이트할 수 있다. In operation 690, the relay node 304 may transmit the result of completion of the proxy agreement for the second transaction to the second node 302. In operation 695, the first node 301, the relay node 304, and the third node 303 record the results of transaction agreements for services with the first node 301 and the second node 302 in each distributed ledger. Or you can update it.

어떤 실시예에 따르면, 중계 노드(304)가 각 노드들의 분산 원장을 저장하지 않고, 각 노드들간의 데이터를 전달하는 역할만 할 경우, 트랜잭션 합의 결과를 저장하지 않을 수도 있다. According to some embodiments, if the relay node 304 does not store the distributed ledger of each node and only serves to transmit data between each node, it may not store the result of the transaction agreement.

도 7은 일 실시 예에 따른 모바일 블록체인 네트워크에 내 전자 장치 간 대리 합의 중지 방법을 도시한다. Figure 7 illustrates a method for stopping proxy agreement between electronic devices in a mobile blockchain network according to an embodiment.

도 7을 참조하면, 일 실시 예에 따른 전자 장치(101)는 블록체인 네트워크에 참여하는 다른 노드(에: 다른 모바일 노드 또는 중계 노드)와 대리 합의에 대한 중지를 요청할 수 있다. Referring to FIG. 7, the electronic device 101 according to one embodiment may request the suspension of proxy agreement with another node (eg, another mobile node or relay node) participating in the blockchain network.

중계 노드(304) 및 제3 노드(303)는 도5 또는 도 6에 도시된 절차를 진행하여 대리 합의 경로가 변경된 상태이며, 제3 노드(303)가 제1 노드(301)를 대신하여 대리 합의 가능하도록 설정된 상태일 수 있다. 이 경우, 제1 노드(301)는 네트워크 불가능한 상태일 수 있다. The relay node 304 and the third node 303 proceed with the procedure shown in FIG. 5 or 6 to change the proxy agreement path, and the third node 303 acts as a proxy on behalf of the first node 301. The state may be set to enable agreement. In this case, the first node 301 may be in a non-networkable state.

예를 들어, 제3 노드(303)에서는 대리 합의 정보 테이블에서 제1 노드(301)에 대해 대리 합의 가능한 상태(예: on)로 기록되고, 중계 노드(304)에서는 합의 경로 변경 테이블에 제1 노드(301)에 대한 합의 경로가 제3 노드로 변경되어 기록된 상태일 수 있다. For example, in the third node 303, a proxy agreement possible state (e.g., on) is recorded for the first node 301 in the proxy agreement information table, and in the relay node 304, the first node 301 is recorded in the proxy agreement information table. The consensus path for node 301 may have been changed and recorded to a third node.

710 동작에서, 중계 노드(304)는 블록체인 네트워크 내에서 제1 노드(301)와 관련된 트랜잭션 합의 요청이 수신되면, 제1 노드(301)를 대신하여 제3 노드(303)에서 대리 합의를 수행하도록 제3 노드(303)로 트랜잭션 데이터를 전달할 수 있다. In operation 710, when a transaction agreement request related to the first node 301 is received within the blockchain network, the relay node 304 performs proxy agreement on the third node 303 on behalf of the first node 301. Transaction data can be transmitted to the third node 303 to do so.

720 동작에서, 제1 노드(301)는 네트워크 비활성 상태에서 네트워크 활성 상태로 변경되는 것을 감지할 수 있다. 예를 들어, 전자 장치(101)가 슬립 모드에서 액티브 모드로 깨어나거나, 전자 장치(101)의 배터리 잔량이 설정된 기준치 이상의 범위로 진입하거나 무선 통신 신호가 기준치 이상의 세기로 수신되는지를 모니터링할 수 있다. In operation 720, the first node 301 may detect a change from the network inactive state to the network active state. For example, it can be monitored whether the electronic device 101 wakes up from sleep mode to active mode, the remaining battery capacity of the electronic device 101 enters a range above a set reference value, or whether a wireless communication signal is received at a strength above the reference value. .

730 동작에서, 제1 노드(301)는 네트워크 활성화 상태로 변경된 것에 기초하여, 대리 합의를 중지하라는 스마트 컨트랙트 트랜잭션을 실행하고, 대리 합의 중지를 요청하는 트랜잭션 데이터(예: 데이터 4)를 중계 노드(304)로 전달할 수 있다. 대리 합의 중지에 대한 대상 노드는 제3 노드(303)일 수 있다. In operation 730, the first node 301 executes a smart contract transaction to stop the proxy agreement, based on the change to the network active state, and sends transaction data (e.g., data 4) requesting the stop of the proxy agreement to the relay node ( 304). The target node for suspending the proxy agreement may be the third node 303.

735 동작에서, 중계 노드(304)는 대리 합의 중지를 요청하는 트랜잭션 데이터(예: 데이터 4)를 제3 노드(303)로 전달할 수 있다. In operation 735, the relay node 304 may transmit transaction data (eg, data 4) requesting suspension of the proxy agreement to the third node 303.

740 동작에서, 제3 노드(303)는 대리 합의 중지에 대한 정보를 전체 원장 또는 제1 노드(301)와 관련된 부분 원장에 기록할 수 있다. 745 동작에서, 제3 노드(303)는 대리 합의 중지 요청에 따라 대리 합의 정보 테이블을 업데이트할 수 있다. 예를 들어, 제3 노드(303)는 제1 노드(301)의 대리 합의 가능 여부 상태를 온(on)에서 오프(off) 상태로 갱신할 수 있다. In operation 740, the third node 303 may record information about the suspension of the proxy agreement in the entire ledger or a partial ledger related to the first node 301. In operation 745, the third node 303 may update the proxy agreement information table according to the request to stop proxy agreement. For example, the third node 303 may update the proxy agreement availability status of the first node 301 from on to off.

750 동작에서, 제3 노드(303)는 제1 노드의 합의 변경 경로를 삭제하라는 요청 메시지를 중계 노드(304)로 전달할 수 있다. In operation 750, the third node 303 may transmit a request message to delete the consensus change path of the first node to the relay node 304.

755 동작에서, 중계 노드(304)는 합의 경로 변경 테이블에 제1 노드(301)의 경로 변경 기록을 삭제하도록 업데이트할 수 있다. In operation 755, the relay node 304 may update the consensus route change table to delete the route change record of the first node 301.

760 동작에서, 제3 노드(303)는 제1 노드(301)에 대한 대리 합의를 중지하라는 요청에 대해 합의하고, 합의 완료 정보를 중계 노드(304)로 전달할 수 있다. In operation 760, the third node 303 may agree on a request to stop proxy agreement for the first node 301 and transmit agreement completion information to the relay node 304.

765 동작에서, 중계 노드(304)는 대리 합의 중지에 대한 합의 완료 결과를 제1 노드(301)로 전달할 수 있다. In operation 765, the relay node 304 may transmit the result of agreement completion for suspending the proxy agreement to the first node 301.

770 동작에서, 제1 노드(301)는 네트워크 비활성화 상태에서 제3 노드가 대리 합의한 결과 또는 데이터를 중계 노드(304)로 요청할 수 있다.In operation 770, the first node 301 may request the relay node 304 for the result or data of the third node's proxy agreement while the network is inactive.

775 동작에서, 중계 노드(304)는 대리 합의자인 제3 노드(303)로 제1 노드(301)를 대신하여 대리 합의한 데이터 또는 블록을 요청하고, 780 동작에서 제3 노드(303)는 대리 합의 결과에 대한 블록(또는 데이터)을 제1 노드(301)로 전달할 수 있다. In operation 775, the relay node 304 requests data or blocks agreed upon on behalf of the first node 301 by the third node 303, which is a proxy agreeer, and in operation 780, the third node 303 makes a proxy agreement. A block (or data) for the result may be transmitted to the first node 301.

도 8은 일 실시 예에 따른 모바일 블록체인 네트워크에 내 전자 장치 간 대리 합의 설정 삭제 방법을 도시한다. Figure 8 illustrates a method of deleting proxy agreement settings between electronic devices in a mobile blockchain network according to an embodiment.

도 8을 참조하면, 일 실시 예에 따른 전자 장치(101)는 블록체인 네트워크 내에 설정된 대리 합의 설정 정보를 삭제 요청할 수 있다. Referring to FIG. 8, the electronic device 101 according to one embodiment may request deletion of proxy agreement setting information set in the blockchain network.

중계 노드(304) 및 제3 노드(303)는 도7에 도시된 절차를 진행하여 노드 간 대리 합의 중지 설정이 완료된 상태이며, 제3 노드(303)에서는 대리 합의 정보 테이블에서 제1 노드(301)에 대해 대리 합의 가능한 상태(예: off)로 기록된 상태일 수 있다. The relay node 304 and the third node 303 proceed with the procedure shown in FIG. 7 to complete the setting of stopping the proxy agreement between nodes, and the third node 303 selects the first node 301 in the proxy agreement information table. ) may be recorded as a state in which proxy agreement is possible (e.g., off).

810 동작에서, 제1 노드(301)는 제1 노드(301)와 관련된 대리 합의의 설정 정보를 삭제하라는 스마트 컨트랙트 트랜잭션을 실행하고, 대리 합의 정보 삭제를 요청하는 트랜잭션 데이터(예: 데이터 5)를 중계 노드(304)로 전달할 수 있다. 대리 합의 정보 삭제에 대한 대상 노드는 제3 노드(303)일 수 있다. In operation 810, the first node 301 executes a smart contract transaction to delete the setting information of the proxy agreement related to the first node 301 and sends transaction data (e.g., data 5) requesting deletion of the proxy agreement information. It can be transmitted to the relay node 304. The target node for deletion of proxy agreement information may be the third node 303.

815 동작에서, 중계 노드(304)는 대리 합의 정보 삭제를 요청하는 트랜잭션 데이터(예: 데이터 5)를 제3 노드(303)로 전달할 수 있다. In operation 815, the relay node 304 may transmit transaction data (eg, data 5) requesting deletion of proxy agreement information to the third node 303.

820 동작에서, 제3 노드(303)는 제1 노드(301)의 대리 합의 설정에 대한 삭제 요청에 따라 대리 합의 정보 테이블에 제1 노드(301)에 대한 기록을 삭제할 수 있다. In operation 820, the third node 303 may delete the record for the first node 301 in the proxy agreement information table according to the request for deletion of the proxy agreement settings of the first node 301.

830 동작에서, 제3 노드(303)는 제1 노드(301)의 대리 합의 설정에 대한 삭제 요청에 합의하고, 합의된 완료 정보를 중계 노드(304)로 전달할 수 있다. 835 동작에서, 중계 노드(304)는 대리 합의 설정 삭제 요청에 대한 합의 결과를 제1 노드(301)로 전달할 수 있다. In operation 830, the third node 303 may agree on the deletion request for the proxy agreement setting of the first node 301 and transmit the agreed-upon completion information to the relay node 304. In operation 835, the relay node 304 may transmit the result of the agreement on the request to delete the proxy agreement settings to the first node 301.

840 동작에서, 제3 노드(303) 및 제1 노드(301)는 제1 노드(301)의 대리 합의 설정 삭제에 대한 정보를 각 분산 원장에 기록할 수 있다. In operation 840, the third node 303 and the first node 301 may record information about deletion of the proxy agreement settings of the first node 301 in each distributed ledger.

도 9a 및 도 9b는 일 실시 예에 따른 모바일 블록체인 네트워크에 내 복수의 전자 장치들 간의 대리 합의 방법을 도시한다. 9A and 9B illustrate a proxy agreement method between a plurality of electronic devices in a mobile blockchain network according to an embodiment.

도 9a 및 도 9b를 참조하면, 다양한 실시 예에 따른 전자 장치(101)(예: 중계 노드)는 블록체인 네트워크에 참여하는 복수의 노드들(예: 부분 원장을 소유하는)과 대리 합의 관계를 설정하여 대리 합의 후보 리스트를 구성할 수 있다. Referring to FIGS. 9A and 9B, an electronic device 101 (e.g., relay node) according to various embodiments has a proxy agreement relationship with a plurality of nodes (e.g., owning a partial ledger) participating in a blockchain network. You can configure a list of proxy agreement candidates by setting this.

일 실시 예에서, 제1 노드(301)는 제4 노드(305), 제5 노드(306) 및 제6 노드(307)에게 각각 대리 합의 사전 설정을 요청하는 스마트 컨트랙트 트랜잭션을 실행할 수 있다. In one embodiment, the first node 301 may execute a smart contract transaction requesting a proxy agreement preset from the fourth node 305, the fifth node 306, and the sixth node 307, respectively.

910 동작에서, 제1 노드(301)는 블록체인 네트워크에 참여하는 모바일 노드 중 부분 원장을 소유하는 제4 노드(305)와 대리 합의 설정을 요청하는 스마트 컨트랙트 트랜잭션을 실행하여 대리 합의 설정에 대한 합의를 중계 노드(304)로 요청할 수 있다. 예를 들어, 제1 노드(301)는 대리 합의 관계 설정 요청 정보를 트랜잭션 데이터(예: 데이터 1-1)로 전달할 수 있다. 대리 합의 관계 설정 정보는 노드 간 요청 관계 정보(예: 노드 1-> 노드 4)와 합의 대상 정보(예: 대리 합의 요청자인 노드 1, 및 대리 합의자인 노드 4)를 포함할 수 있다. In operation 910, the first node 301 executes a smart contract transaction requesting the establishment of a proxy agreement with the fourth node 305, which owns a partial ledger among mobile nodes participating in the blockchain network, to reach an agreement on the establishment of the proxy agreement. can be requested from the relay node 304. For example, the first node 301 may transmit proxy agreement relationship establishment request information as transaction data (eg, data 1-1). The proxy agreement relationship setting information may include request relationship information between nodes (e.g., node 1 -> node 4) and agreement target information (e.g., node 1, which is the proxy agreement requester, and node 4, which is the proxy agreeer).

915 동작에서, 중계 노드(304)는 제1 노드(301)의 대리 합의 관계 설정을 요청하는 트랜잭션 데이터(예: 데이터 1-1)를 제4 노드(305)로 전달할 수 있다. In operation 915, the relay node 304 may transmit transaction data (eg, data 1-1) requesting establishment of a proxy agreement relationship of the first node 301 to the fourth node 305.

920 동작에서 제4 노드(305)는 대리 합의 관계 설정에 합의하고, 대리 합의 관계 설정에 기초하여, 대리 합의 정보 테이블을 기록할 수 있다. 제4 노드(305)는 제1 노드(301)에 대한 대리 합의 가능 상태를 체크하는 항목을 오프(off)로 기록하고, 이후, 대리 합의 시작 요청이 수신되면, 대리 합의 가능 상태를 체크하는 항목을 온(on)으로 기록할 수 있다. 제4 노드(305)는 제1 노드(301)에 대해 대리 합의 가능 상태가 온(on)일 경우, 제1 노드(301)를 대신하여 다른 임의의 노드로부터 요청된 트랙잭션에 대해 합의 동작(또는 절차)를 수행할 수 있다. In operation 920, the fourth node 305 may agree to establish a proxy agreement relationship and record a proxy agreement information table based on the proxy agreement relationship setting. The fourth node 305 records the item checking the possible status of proxy agreement for the first node 301 as off, and then, when a request to start proxy agreement is received, the item checking the possible status of proxy agreement can be recorded as on. When the proxy agreement possible state for the first node 301 is on, the fourth node 305 performs a consensus operation (or procedure) can be performed.

925 동작에서, 제4 노드(305)는 대리 합의 관계 설정에 합의된 완료 정보를 중계 노드(304)로 전달할 수 있다. In operation 925, the fourth node 305 may transmit completed information agreed to establish the proxy agreement relationship to the relay node 304.

930 동작에서, 중계 노드(304)는 제4 노드(305)의 대리 합의 관계 설정에 합의된 완료 정보를 제1 노드(301)로 전달할 수 있다. In operation 930, the relay node 304 may transmit completion information agreed upon in establishing the proxy agreement relationship of the fourth node 305 to the first node 301.

935 동작에서, 각 노드(예: 제1 노드(301), 중계 노드(304), 제4노드(305))는 제1 노드(301)와 제4 노드(305) 간의 대리 합의 설정에 관한 트랜잭션 데이터(예: 데이터 1-1)을 각 노드의 분산 원장에 기록할 수 있다. In operation 935, each node (e.g., the first node 301, the relay node 304, and the fourth node 305) executes a transaction related to establishing a proxy agreement between the first node 301 and the fourth node 305. Data (e.g. data 1-1) can be recorded in the distributed ledger of each node.

어떤 실시예에 따르면, 중계 노드(304)가 각 노드들의 분산 원장을 저장하지 않고, 각 노드들간의 데이터를 전달하는 역할만 할 경우, 트랜잭션 합의 결과(예: 트랜잭션 데이터(예: 데이터 1-1))를 저장하지 않을 수도 있다. According to some embodiments, when the relay node 304 does not store the distributed ledger of each node and only serves to transmit data between each node, the transaction agreement result (e.g., transaction data (e.g., data 1-1 )) may not be saved.

940 동작에서, 제1 노드(301)는 모바일 노드 중 부분 원장을 소유하는 제5 노드(306)와 대리 합의 설정을 요청하는 스마트 컨트랙트 트랜잭션을 실행하여 대리 합의 설정에 대한 합의를 중계 노드(304)로 전달할 수 있다. 예를 들어, 제1 노드(301)는 노드 간 요청 관계 정보(예: 노드 1-> 노드 5)와 합의 대상 정보(예: 노드1, 노드5)를 포함하는 대리 합의 관계 설정 요청 정보를 트랜잭션 데이터(예: 데이터 1-2)로 전달할 수 있다. In operation 940, the first node 301 executes a smart contract transaction requesting the establishment of a proxy agreement with the fifth node 306, which owns the partial ledger among the mobile nodes, to reach an agreement on the establishment of the proxy agreement with the relay node 304. It can be passed on. For example, the first node 301 transmits proxy agreement relationship establishment request information including request relationship information between nodes (e.g., node 1 -> node 5) and agreement target information (e.g., node 1, node 5) into a transaction. It can be passed as data (e.g. data 1-2).

945 동작에서, 중계 노드(304)는 제5 노드(306)의 대리 합의 관계 설정을 요청하는 트랜잭션 데이터(예: 데이터 1-2)를 제5 노드(306)로 전달할 수 있다. In operation 945, the relay node 304 may transmit transaction data (eg, data 1-2) requesting establishment of a proxy agreement relationship with the fifth node 306 to the fifth node 306.

950 동작에서 제5 노드(306)는 대리 합의 관계 설정에 합의하고, 대리 합의 관계 설정에 기초하여, 대리 합의 정보 테이블을 기록할 수 있다. 제5 노드(306)는 제1 노드(301)에 대한 대리 합의 가능 상태를 체크하는 항목을 오프(off)로 기록하고, 이후, 대리 합의 시작 요청이 수신되면, 대리 합의 가능 상태를 체크하는 항목을 온(on)으로 기록할 수 있다.In operation 950, the fifth node 306 may agree to establish a proxy agreement relationship and record a proxy agreement information table based on the proxy agreement relationship setting. The fifth node 306 records the item checking the possible status of proxy agreement for the first node 301 as off, and then, when a request to start proxy agreement is received, the item checking the possible status of proxy agreement can be recorded as on.

955 동작에서, 제5 노드(306)는 대리 합의 관계 설정에 합의된 완료 정보를 중계 노드(304)로 전달할 수 있다. In operation 955, the fifth node 306 may transmit completed information agreed upon in establishing the proxy agreement relationship to the relay node 304.

960 동작에서, 중계 노드(304)는 제5 노드(306)의 대리 합의 관계 설정에 합의된 완료 정보를 제1 노드(301)로 전달할 수 있다. In operation 960, the relay node 304 may transmit completion information agreed upon in establishing the proxy agreement relationship of the fifth node 306 to the first node 301.

965 동작에서, 각 노드(예: 제1 노드(301), 중계 노드(304), 제5노드(306))는 제1 노드(301)와 제5 노드(306) 간의 대리 합의 설정에 관한 트랜잭션 데이터(예: 데이터 1-2)를 각 노드의 분산 원장에 기록할 수 있다. In operation 965, each node (e.g., the first node 301, the relay node 304, and the fifth node 306) performs a transaction regarding establishment of a proxy agreement between the first node 301 and the fifth node 306. Data (e.g. data 1-2) can be recorded in the distributed ledger of each node.

970 동작에서, 제1 노드(301)는 모바일 노드 중 부분 원장을 소유하는 제6 노드(307)와 대리 합의 설정을 요청하는 스마트 컨트랙트 트랜잭션을 실행하여 대리 합의 설정에 대한 합의를 중계 노드(304)로 요청할 수 있다. 예를 들어, 제1 노드(301)는 노드 간 요청 관계 정보(예: 노드 1-> 노드 6)와 합의 대상 정보(예: 노드1, 노드6)를 포함하는 대리 합의 관계 설정 요청 정보를 트랜잭션 데이터(예: 데이터 1-3)로 전달할 수 있다. In operation 970, the first node 301 executes a smart contract transaction requesting the establishment of a proxy agreement with the sixth node 307, which owns the partial ledger among the mobile nodes, to reach an agreement on the establishment of the proxy agreement with the relay node 304. You can request it with . For example, the first node 301 transmits proxy agreement relationship establishment request information including request relationship information between nodes (e.g., node 1 -> node 6) and agreement target information (e.g., node 1, node 6) into a transaction. It can be passed as data (e.g. data 1-3).

975 동작에서, 중계 노드(304)는 제6 노드(307)와의 대리 합의 관계 설정을 요청하는 트랜잭션 데이터(예: 데이터 1-3)를 제6 노드(307)로 전달할 수 있다. 그러나, 제6 노드(307)가 네트워크 비활성 상태로 대리 합의 관계 설정 요청을 수신하지 못하는 경우, 제1 노드(301)는 제6 노드(307)로부터 대리 합의 관계에 대한 합의 완료 결과를 수신하지 못할 수 있다. In operation 975, the relay node 304 may transmit transaction data (eg, data 1-3) requesting establishment of a proxy agreement relationship with the sixth node 307 to the sixth node 307. However, if the sixth node 307 is in a network inactive state and does not receive a request to establish a proxy agreement relationship, the first node 301 may not receive the agreement completion result for the proxy agreement relationship from the sixth node 307. You can.

제1 노드(301)는 대리 합의 관계에 대한 합의 완료 결과를 수신한 노드들을 기반으로 대리 합의 후보군 리스트(예: 제4 노드, 제 5노드)를 구성하고, 대리 합의 후보군 리스트를 중계 노드(304) 및 제3 노드(예: 전체 원장을 소유하는 모바일 노드)와 공유할 수 있다. The first node 301 constructs a list of proxy agreement candidates (e.g., the fourth node and the fifth node) based on the nodes that have received the agreement completion result for the proxy agreement relationship, and sends the list of proxy agreement candidates to the relay node 304. ) and third nodes (e.g. mobile nodes that own the entire ledger).

일 실시 예에서, 대리 합의 후보군 리스트는 합의 이력 시점 및/또는 합의 이력 횟수에 기반하여 구성될 수 있다. 예를 들어, 합의 입력이 적어도 1회 이상이고, 합의 시점이 가장 최근인 모바일 노드를 대리 합의 후보군 중 최우선 순위로 하여 상기 리스트를 구성할 수 있다.In one embodiment, the list of proxy agreement candidates may be constructed based on the time of agreement history and/or the number of times of agreement history. For example, the list can be constructed by giving the mobile node with the consensus input at least once and the most recent consensus time as the highest priority among the proxy agreement candidates.

다른 실시 예에서, 대리 합의 후보군 리스트는 사용자 입력에 의해 구성될 수도 있다.In another embodiment, the proxy agreement candidate list may be constructed by user input.

일 실시 예에서, 대리 합의 후보군 리스트는 일정 주기로 갱신될 수 있다. 전자 장치(101)는일정 주기로 대리 합의 후보군을 재검토하여 일정 유효 시간을 지난 후보군은 삭제 처리할 수 있다. 일 실시 예에서, 대리 합의 후보군 리스트 내 모든 후보군이 삭제된 경우, 사용자 설정을 통해 대리 합의 후보군 리스트에서 후보군 노드를 추가할 수 있다. In one embodiment, the list of proxy agreement candidates may be updated at regular intervals. The electronic device 101 may review the proxy agreement candidates at regular intervals and delete candidates that have elapsed a certain validity time. In one embodiment, when all candidates in the proxy agreement candidate list are deleted, a candidate node can be added to the proxy agreement candidate list through user settings.

도 10a 및 10b는 일 실시 예에 따른 모바일 블록체인 네트워크에 내 복수의 전자 장치들 간의 대리 합의 방법을 도시한다. Figures 10a and 10b illustrate a proxy agreement method between a plurality of electronic devices in a mobile blockchain network according to an embodiment.

도 10a 및 10b를 참조하면, 다양한 실시 예에 따른 전자 장치(101)(예: 중계 노드(304))는 대리 합의 후보 리스트를 기반으로 대리 합의를 순차적으로 요청할 수 있다. Referring to FIGS. 10A and 10B, the electronic device 101 (e.g., relay node 304) according to various embodiments may sequentially request proxy agreement based on a proxy agreement candidate list.

일 예를 들면, 제1 노드(301)는, 제4 노드(305) 및 제5 노드(306)와 대리 합의 관계가 사전 설정이 완료된 상황이고, 제4 노드(305) 및 제5 노드(306)는 제1 노드(301)로부터 대리 합의 시작 요청을 수신하지 못하여, 제1 노드(301)에 대한 대리 합의 가능 상태가 오프(off)로 기록된 상태일 수 있다. For example, the first node 301 has a pre-established proxy agreement relationship with the fourth node 305 and the fifth node 306, and the fourth node 305 and the fifth node 306 ) may not have received a request to start a proxy agreement from the first node 301, and the proxy agreement possible state for the first node 301 may be recorded as off.

1010 동작에 도시된 바와 같이, 제1 노드(301)는 전자 장치(101)가 네트워크 비활성화 모드로 진입 전에, 블록체인 네트워크로 대리 합의 시작을 요청하지 못할 수 있다. As shown in operation 1010, the first node 301 may not request the start of proxy agreement with the blockchain network before the electronic device 101 enters the network deactivation mode.

독립적으로, 블록체인 네트워크 내에서 제2 노드(302)는 1020 동작에서, 제1 노드(301)와 서비스 합의가 필요한 스마트 컨트랙트 트랜잭션을 실행하여 서비스 합의를 중계 노드(304)로 요청할 수 있다. 예를 들어, 제2 노드(302)는 제1 노드(301)와의 서비스 합의를 요청하는 트랜잭션 데이터(예: 데이터 3)를 중계 노드(304)로 전달할 수 있다. Independently, within the blockchain network, the second node 302 may execute a smart contract transaction requiring service agreement with the first node 301 in operation 1020 and request service agreement from the relay node 304. For example, the second node 302 may transmit transaction data (eg, data 3) requesting service agreement with the first node 301 to the relay node 304.

1025 동작에서, 중계 노드(303)는 제1 노드(301)와의 서비스 합의를 요청하는 트랜잭션 데이터(예: 데이터3)에 포함된 합의 대상을 기반으로 제1 노드(301)로 트랜잭션에 대한 합의 요청을 전송할 수 있다. 이 경우, 제1 노드(301)는 비활성 모드로 진입하여 네트워크 연결이 끊겼으므로, 중계 노드(304)로부터 합의 요청을 수신하지 못할 수 있다. In operation 1025, the relay node 303 requests agreement on a transaction with the first node 301 based on the agreement target included in the transaction data (e.g., data 3) requesting service agreement with the first node 301. can be transmitted. In this case, the first node 301 enters an inactive mode and is disconnected from the network, so it may not receive a consensus request from the relay node 304.

1030 동작에서, 중계 노드(304)는 제1 노드(301)로부터 서비스 합의 요청에 대한 응답 신호를 수신하지 않고 설정된 시간이 경과(예: time out)되는 경우, N회 반복적으로 제1 노드(301)로 서비스 합의 요청을 시도할 수 있다.In operation 1030, when a set time elapses (e.g., time out) without receiving a response signal to the service agreement request from the first node 301, the relay node 304 repeatedly connects the first node 301 N times. ), you can attempt to request a service agreement.

1035 동작에서, 중계 노드(304)는 제1 노드(301)로 합의 요청을 N회 시도하였으나 실패한 경우, 서비스 합의를 요청하는 트랜잭션 데이터를 기반으로 대리 합의 가능 여부와 합의 경로 변경이 가능함을 확인할 수 있다.In operation 1035, if the relay node 304 attempts to request consensus with the first node 301 N times but fails, it can confirm whether proxy agreement is possible and whether the agreement path can be changed based on the transaction data requesting service agreement. there is.

1040 동작에서, 중계 노드(304)는 모바일 노드 중 전체 원장을 소유하는 제3 노드(303)로 대리 합의 후보군 리스트를 요청하는 메시지를 전송할 수 있다. 제3 노드(303)는 도 9에 도시된 동작들을 통해 제 1 노드(301)에 대한 대리 합의 후보군 리스트를 저장한 상태일 수 있다. In operation 1040, the relay node 304 may transmit a message requesting a list of proxy agreement candidates to the third node 303, which owns the entire ledger, among mobile nodes. The third node 303 may have stored a list of proxy agreement candidates for the first node 301 through the operations shown in FIG. 9 .

1045 동작에서, 제3 노드(303)는 중계 노드(304)로 제1 노드(301)와 대리 합의 사전 설정 완료된 후보군 리스트(예: 노드 4, 노드 5) 정보를 전달할 수 있다. In operation 1045, the third node 303 may transmit information on a list of candidates (e.g., node 4, node 5) for which a proxy agreement has been preset with the first node 301 to the relay node 304.

1050 동작에서, 중계 노드(304)는 제3 노드(303)로부터 전달된 후보군 리스트를 기반으로 제4노드(305)로 제1 노드(301)와의 서비스 합의를 요청하는 트랜잭션 데이터(예: 데이터 3)를 전송할 수 있다. In operation 1050, the relay node 304 transmits transaction data (e.g., data 3) requesting service agreement with the first node 301 to the fourth node 305 based on the candidate group list transmitted from the third node 303. ) can be transmitted.

그러나, 중계 노드(304)는 제4 노드(305)가 비활성 상태일 경우, 제4 노드(305)로부터 합의 요청에 대한 응답 신호를 수신하지 못할 수 있다. 예를 들어, 도 10a를 참조하면, 제4 노드(305)는 배터리 잔량이 설정된 기준치 이하로 진입하거나 무선 통신 신호가 기준치 이하의 세기로 수신되어 네트워크 통신이 불가능한 비활성 모드로 진입한 상태일 수 있다.However, if the fourth node 305 is in an inactive state, the relay node 304 may not receive a response signal to the consensus request from the fourth node 305. For example, referring to FIG. 10A, the fourth node 305 may be in an inactive mode in which network communication is not possible because the remaining battery capacity is below a set reference value or a wireless communication signal is received at a strength below the reference value. .

1055 동작에서, 중계 노드(304)는 제4 노드(305)로부터 설정된 시간 동안 응답 신호를 수신하지 못한 경우, 후보 리스트에 포함된 제5 노드(306)로 제1 노드(301)와의 서비스 합의를 요청하는 트랜잭션 데이터(예: 데이터 3)를 전송할 수 있다.In operation 1055, when the relay node 304 does not receive a response signal from the fourth node 305 for a set time, it enters into a service agreement with the first node 301 with the fifth node 306 included in the candidate list. Requested transaction data (e.g. data 3) can be transmitted.

1060 동작에서, 제5 노드(306)는 대리 합의 사전 설정된 제1 노드(301)와 관련된 트랜잭션 합의 요청에 따라 제1 노드(301)와 관련하여 대리 합의 가능 상태를 온(on)으로 대리 합의 정보 테이블을 업데이트하고, 제1 노드(301)를 대신하여 대리 합의를 시작할 수 있다. In operation 1060, the fifth node 306 turns on the proxy agreement enabled state with respect to the first node 301 according to a transaction agreement request related to the first node 301 that is preset by proxy agreement, proxy agreement information. The table can be updated and proxy agreement can be started on behalf of the first node 301.

1065 동작에서, 제5 노드(306)는 제3 노드(303)로 제1 노드(301)와 관련된 트랜잭션 합의에 필요한 블록 데이터를 요청할 수 있다. 1070 동작에서, 제3 노드(303)는 제1 노드(301)와 제2 노드(302)와의 서비스 합의에 필요한 블록 데이터를 제5 노드(306)로 전달할 수 있다. In operation 1065, the fifth node 306 may request block data required for transaction agreement related to the first node 301 from the third node 303. In operation 1070, the third node 303 may transmit block data required for service agreement with the first node 301 and the second node 302 to the fifth node 306.

1075 동작에서, 제5 노드(306)는 제1 노드(301)와 제2 노드(302)와의 서비스 합의에 필요한 블록 데이터를 기반으로 대리 합의 동작(또는 절차)를 처리할 수 있다. In operation 1075, the fifth node 306 may process a proxy agreement operation (or procedure) based on block data required for service agreement with the first node 301 and the second node 302.

1080 동작에서, 제5 노드(306)는 제1 노드(301)와 제2 노드(302)와의 서비스에 대해 대리 합의된 완료 정보 및 대리 합의 경로 변경 정보를 중계 노드(304)로 전달할 수 있다. In operation 1080, the fifth node 306 may transmit proxy-agreed completion information and proxy-agreed path change information for the service with the first node 301 and the second node 302 to the relay node 304.

1085 동작에서, 중계 노드(304)는 트랜잭션의 대리 합의 완료 결과를 제2 노드(302)로 전달할 수 있다. 1090 동작에서, 중계 노드(304)는 제1 노드(301)와 관련된 트랜잭션에 대한 합의를 제5 노드(306)가 대리 합의하도록 합의 경로 변경 테이블을 업데이트 할 수 있다. In operation 1085, the relay node 304 may transmit the result of completing the proxy agreement of the transaction to the second node 302. In operation 1090, the relay node 304 may update the consensus path change table so that the fifth node 306 proxy-agrees on the transaction related to the first node 301.

1095 동작에서, 각 노드들(예: 제2 노드(302), 중계 노드(304), 제3 노드(303), 및 제5 노드(306))는 제1 노드(301)와 제2 노드(302)와의 서비스에 대한 트랜잭션 합의 결과를 각 분산 원장에 기록 또는 업데이트할 수 있다. In operation 1095, each node (e.g., the second node 302, the relay node 304, the third node 303, and the fifth node 306) is connected to the first node 301 and the second node ( 302) The transaction agreement results for the service can be recorded or updated in each distributed ledger.

도 11은 일 실시 예에 따른 모바일 블록체인 네트워크 내 전자 장치의 대리 합의 방법을 도시한다. Figure 11 illustrates a proxy agreement method for electronic devices in a mobile blockchain network according to an embodiment.

도 11을 참조하면, 일 실시 예에 따른 모바일 블록체인 네트워크에 참여하는 전자 장치(예: 도 1의 전자 장치(101), 도 3의 제3 노드(303)) 또는 전자 장치(101)의 프로세서(예: 도 1의 프로세서(120), 도 2의 블록체인 프로세서(230))는 1110 동작에서, 모바일 블록체인 네트워크에 참여하는 제1 외부 전자 장치(예: 도 3의 제1 노드(301))와 통신하여 제1 외부 전자 장치와의 대리 합의 관계를 설정할 수 있다. 예를 들어, 전자 장치(101)는 도 4의 절차들을 수행하여 제1 외부 전자 장치(예: 제1 노드)와 대리 합의 관계를 설정할 수 있다. Referring to FIG. 11, an electronic device (e.g., the electronic device 101 in FIG. 1, the third node 303 in FIG. 3) or a processor of the electronic device 101 participating in a mobile blockchain network according to an embodiment. (e.g., processor 120 in FIG. 1, blockchain processor 230 in FIG. 2), in operation 1110, a first external electronic device (e.g., first node 301 in FIG. 3) participating in the mobile blockchain network. ) can establish a proxy agreement relationship with the first external electronic device. For example, the electronic device 101 may establish a proxy agreement relationship with a first external electronic device (eg, a first node) by performing the procedures of FIG. 4 .

1120 동작에서, 전자 장치(101)는 제2 외부 전자 장치(예: 도 3의 제2 노드(302))로부터 제1 외부 전자 장치와 제2 외부 전자 장치와의 서비스에 대한 트랜잭션 합의 요청을 수신할 수 있다. 예를 들어, 전자 장치(101)는 제2 외부 전자 장치 또는 모바일 블록체인 네트워크 내 중계 노드(예: 도 3의 중계 노드(304))를 통해 서비스에 대한 트랜잭션 합의 요청을 수신할 수 있다. In operation 1120, the electronic device 101 receives a transaction agreement request for services between the first external electronic device and the second external electronic device from the second external electronic device (e.g., the second node 302 in FIG. 3). can do. For example, the electronic device 101 may receive a transaction agreement request for a service through a second external electronic device or a relay node in the mobile blockchain network (eg, relay node 304 in FIG. 3).

1130 동작에서, 전자 장치(101)는 대리 합의 시작 요청을 수신하였는지를 확인할 수 있다. In operation 1130, the electronic device 101 may check whether a request to start a proxy agreement has been received.

예를 들어, 전자 장치(101)는 제1 외부 전자 장치 또는 중계 노드로부터 제1 외부 전자 장치가 네트워크 비활성 상태로 진입 전, 대리 합의 시작을 요청하는 트랜잭션 데이터를 수신하거나, 중계 노드로부터 제1 외부 전자 장치와의 대리 합의 가능 상태를 변경하여 대리 합의 시작을 요청하는 메시지를 수신할 수 있다. For example, the electronic device 101 receives transaction data requesting the start of a proxy agreement before the first external electronic device enters the network inactive state from the first external electronic device or the relay node, or receives the first external electronic device from the relay node. You can receive a message requesting to start a proxy agreement by changing the status of proxy agreement with the electronic device.

전자 장치(101)는 제1 외부 전자 장치 또는 중계 노드로부터 제1 외부 전자 장치를 대신하여 대리 합의를 시작하라는 요청이 수신되는 경우, 전자 장치(101)에 저장된 대리 합의 정보 테이블을 갱신하여 제1 외부 전자 장치에 대한 대리 합의 가능 상태를 오프(off)에서 온(on)으로 기록할 수 있다. When a request to start a proxy agreement on behalf of the first external electronic device is received from the first external electronic device or a relay node, the electronic device 101 updates the proxy agreement information table stored in the electronic device 101 to make the first The status of possible proxy agreement for an external electronic device can be recorded from off to on.

전자 장치(101)가 대리 합의 시작 요청을 수신하지 않을 시, 해당 프로세스는 종료될 수 있다. If the electronic device 101 does not receive a request to start a proxy agreement, the process may be terminated.

1140 동작에서, 전자 장치(101)는 제1 외부 전자 장치에 대한 대리 합의 시작 요청이 수신된 경우(또는 제1 외부 전자 장치에 대한 대리 합의 가능 상태를 오프(off)에서 온(on)인 경우), 제1 외부 전자 장치와 제2 외부 전자 장치 간의 서비스 합의에 대한 합의를 제1 외부 전자 장치를 대신하여 처리(또는 대리 합의)할 수 있다. In operation 1140, the electronic device 101 receives a proxy agreement start request for the first external electronic device (or changes the proxy agreement possible state for the first external electronic device from off to on). ), the agreement on service agreement between the first external electronic device and the second external electronic device may be processed (or agreed upon on behalf of the first external electronic device) on behalf of the first external electronic device.

1150 동작에서, 전자 장치(101)는 트랜잭션 합의 요청에 기초한 대리 합의 완료 결과를 제2 외부 전자 장치로 전달할 수 있다. 예를 들어, 전자 장치(101)는 모바일 블록체인 네트워크 내 중계 노드를 통해 대리 합의 완료 결과를 제2 외부 전자 장치로 전달할 수 있다. In operation 1150, the electronic device 101 may transmit the result of completing the proxy agreement based on the transaction agreement request to the second external electronic device. For example, the electronic device 101 may transmit the proxy agreement completion result to a second external electronic device through a relay node in the mobile blockchain network.

1160 동작에서, 전자 장치(101)는 대리 합의 중지 요청이 수신되는 지를 확인할 수 있다. 예를 들어, 전자 장치(101)와 대리 합의 관계를 설정한 제1 외부 전자 장치가 네트워크 비활성 상태에서 네트워크 통신이 가능한 활성 상태로 진입 시, 제1 외부 전자 장치는 모바일 블록체인 네트워크로 통신 가능함을 안내(inform)하고 대리 합의 중지 요청을 전송할 수 있다. 전자 장치(101)는 모바일 블록체인 네트워크 내 중계 노드를 통해 제1 외부 전자 장치의 대리 합의 중지 요청을 수신할 수 있다. In operation 1160, the electronic device 101 may check whether a request to stop proxy agreement is received. For example, when a first external electronic device that has established a proxy agreement relationship with the electronic device 101 enters an active state in which network communication is possible from a network inactive state, the first external electronic device can communicate through the mobile blockchain network. You can inform and send a request to stop the proxy agreement. The electronic device 101 may receive a request to stop proxy agreement from the first external electronic device through a relay node in the mobile blockchain network.

1170 동작에서, 전자 장치(101)는 대리 합의 중지 요청을 수신하는 경우, 대리 합의 완료된 블록 데이터를 제1 외부 전자 장치로 전달할 수 있다. 예를 들어, 전자 장치(101)는 대리 합의 완료된 블록 데이터를 모바일 블록체인 네트워크 내 중계 노드를 통해 제1 외부 전자 장치로 전달 할 수 있다. In operation 1170, when receiving a request to stop proxy agreement, the electronic device 101 may transmit block data on which proxy agreement has been completed to the first external electronic device. For example, the electronic device 101 may transmit the block data on which the proxy agreement has been completed to the first external electronic device through a relay node in the mobile blockchain network.

전자 장치(101)가 대리 합의 중지 요청을 수신하지 않을 시, 전자 장치(101)는 1140 동작으로 회귀하여 제1 외부 전자 장치를 대신하여, 제1 외부 전자 장치와 관련된 트랜잭션 합의 요청에 대해 대리 합의 동작을 수행할 수 있다. When the electronic device 101 does not receive the proxy agreement stop request, the electronic device 101 returns to operation 1140 and, on behalf of the first external electronic device, makes a proxy agreement on the transaction agreement request related to the first external electronic device. The action can be performed.

다양한 실시예에 따른 블록체인 네트워크 내 비활성 노드를 위한 대리 합의 방법은 블록체인 네트워크에 참여하는 모바일 노드 (예: 도 1의 전자 장치(101), 도 3의 제3 노드(303)) 중 제1 외부 전자 장치 (예: 도 3의 제1 노드(301))와의 대리 합의 관계를 설정하는 동작, 상기 블록체인 네트워크에 참여하는 모바일 노드 중 제2 외부 전자 장치 (예: 도 3의 제2 노드(302))로부터 상기 제1 외부 전자 장치와 상기 제2 외부 전자 장치 간의 서비스에 대한 제1 트랜잭션의 합의 요청을 수신하는 동작, 상기 제1 외부 전자 장치의 대리 합의 시작 요청이 수신된 것에 기초하여 상기 제1 외부 전자 장치와 상기 제2 외부 전자 장치 간의 서비스에 대한 제1 트랜잭션에 대해 상기 제1 외부 전자 장치를 대리하여 합의 동작을 수행하는 동작, 상기 대리 합의된 완료 결과를 상기 블록체인 네트워크를 통해 상기 제2 외부 전자 장치로 전달하는 동작 및 상기 제1 외부 전자 장치와 상기 제2 외부 전자 장치 간의 제1 트랜잭션 합의가 완료된 것에 반응하여, 상기 블록체인 네트워크에 참여한 각 노드들의 원장을 업데이트하는 동작을 포함하고, 상기 원장은 상기 전자 장치가 합의에 참여한 적어도 하나의 트랜잭션 각각에 상응하는 적어도 하나의 블록을 포함하는 것을 특징으로 할 수 있다.A proxy consensus method for an inactive node in a blockchain network according to various embodiments is a first among mobile nodes (e.g., the electronic device 101 in FIG. 1 and the third node 303 in FIG. 3) participating in the blockchain network. An operation of establishing a proxy agreement relationship with an external electronic device (e.g., the first node 301 in FIG. 3), and a second external electronic device among mobile nodes participating in the blockchain network (e.g., the second node (301 in FIG. 3) An operation of receiving an agreement request for a first transaction for a service between the first external electronic device and the second external electronic device from 302)), based on receiving a proxy agreement start request of the first external electronic device An operation of performing an agreement operation on behalf of the first external electronic device for a first transaction for a service between the first external electronic device and the second external electronic device, and transmitting the proxy-agreed completion result through the blockchain network. An operation of transmitting to the second external electronic device and an operation of updating the ledger of each node participating in the blockchain network in response to completion of the first transaction agreement between the first external electronic device and the second external electronic device. and the ledger may include at least one block corresponding to each of at least one transaction in which the electronic device participates in an agreement.

다양한 실시예에 따른 방법은, 상기 제1 외부 전자 장치를 대리하여 합의 동작을 수행하는 동작 이후에, 상기 제1 외부 전자 장치로부터 대리 합의 중지 요청이 수신되는 경우, 상기 대리 합의 완료된 블록 데이터를 상기 제1 외부 전자 장치로 전송하는 동작을 더 포함할 수 있다.A method according to various embodiments includes, when a request to stop proxy agreement is received from the first external electronic device after performing an agreement operation on behalf of the first external electronic device, the block data on which the proxy agreement has been completed is sent to the It may further include transmitting to a first external electronic device.

다양한 실시예에 따르면, 상기 제1 외부 전자 장치 및 상기 제2 외부 전자 장치는 모바일 노드일 수 있다. According to various embodiments, the first external electronic device and the second external electronic device may be mobile nodes.

다양한 실시예에 따르면, 상기 제1 외부 전자 장치와의 대리 합의 관계를 설정하는 동작은, 상기 제1 외부 전자 장치와 대리 합의 관계 설정 시, 대리 합의를 요청하는 노드 항목과 요청 노드를 대신하여 대리 합의 가능 상태를 체크하는 항목을 포함하는 대리 합의 정보 테이블을 저장하는 동작을 더 포함할 수 있다. According to various embodiments, the operation of establishing a proxy agreement relationship with the first external electronic device includes a node item requesting proxy agreement and a proxy on behalf of the requesting node when establishing a proxy agreement relationship with the first external electronic device. The operation of storing a proxy agreement information table including an item for checking the agreement possible state may be further included.

다양한 실시예에 따르면, 상기 제1 외부 전자 장치를 대리하여 합의 동작을 수행하는 동작은, 상기 대리 합의 정보 테이블에 상기 제1 외부 전자 장치와 관련하여 대리 합의 가능 상태가 온(on)으로 기록된 것에 기초하여 상기 제1 트랜잭션에 대해 상기 제1 외부 전자 장치를 대리하여 합의 동작을 수행하는 것을 특징으로 할 수 있다.According to various embodiments, the operation of performing a consensus operation on behalf of the first external electronic device may be performed when a proxy agreement possible state with respect to the first external electronic device is recorded as on in the proxy agreement information table. Based on this, a consensus operation may be performed on behalf of the first external electronic device for the first transaction.

다양한 실시예에 따르면, 상기 제1 외부 전자 장치를 대리하여 합의 동작을 수행하는 동작은, 상기 대리 합의 정보 테이블에 상기 제1 외부 전자 장치와 관련하여 대리 합의 가능 상태가 오프(off)로 기록된 상태에서, 상기 제1 외부 전자 장치의 대리 합의 시작 요청을 수신하지 못하는 경우, 상기 중계 노드로부터 대리 합의 정보 변경 요청을 수신하는 동작 및 상기 중계 노드로부터 수신된 대리 합의 정보 변경에 기초하여 상기 제1 외부 전자 장치와 관련하여 대리 합의 가능 상태를 온(on)으로 업데이트하는 동작을 더 포함할 수 있다.According to various embodiments, the operation of performing a consensus operation on behalf of the first external electronic device may be performed when a proxy agreement possible state with respect to the first external electronic device is recorded as off in the proxy agreement information table. In this state, when the proxy agreement start request from the first external electronic device is not received, the first agent based on the operation of receiving a proxy agreement information change request from the relay node and the proxy agreement information change received from the relay node It may further include updating the proxy agreement possible state to on in relation to the external electronic device.

다양한 실시예에 따른 방법은 상기 제1 외부 전자 장치를 대리하여 합의 동작을 수행하는 동작 이후에, 상기 제1 외부 전자 장치로부터 대리 합의 관계 설정 삭제 요청이 수신되는 경우, 대리 합의 관계 삭제에 대한 정보를 상기 블록체인 네트워크 내 원장에 기록하는 동작을 더 포함할 수 있다. A method according to various embodiments provides, when a request to delete a proxy agreement relationship setting is received from the first external electronic device after performing an agreement operation on behalf of the first external electronic device, information about deletion of the proxy agreement relationship. It may further include the operation of recording in the ledger within the blockchain network.

본 문서의 다양한 실시 예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시 예들로 한정하려는 것이 아니며, 해당 실시 예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.The various embodiments of this document and the terms used herein are not intended to limit the technical features described in this document to specific embodiments, and should be understood to include various changes, equivalents, or replacements of the embodiments. In connection with the description of the drawings, similar reference numbers may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of the above items, unless the relevant context clearly indicates otherwise. As used herein, “A or B”, “at least one of A and B”, “at least one of A or B”, “A, B or C”, “at least one of A, B and C”, and “A Each of phrases such as “at least one of , B, or C” may include any one of the items listed together in the corresponding phrase, or any possible combination thereof. Terms such as "first", "second", or "first" or "second" may be used simply to distinguish one component from another, and to refer to that component in other respects (e.g., importance or order) is not limited. One (e.g., first) component is said to be “coupled” or “connected” to another (e.g., second) component, with or without the terms “functionally” or “communicatively.” When mentioned, it means that any of the components can be connected to the other components directly (e.g. wired), wirelessly, or through a third component.

본 문서의 다양한 실시 예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일 실시 예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term “module” used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as logic, logic block, component, or circuit, for example. can be used A module may be an integrated part or a minimum unit of the parts or a part thereof that performs one or more functions. For example, according to one embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).

본 문서의 다양한 실시 예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.Various embodiments of the present document are one or more instructions stored in a storage medium (e.g., built-in memory 136 or external memory 138) that can be read by a machine (e.g., electronic device 101). It may be implemented as software (e.g., program 140) including these. For example, a processor (e.g., processor 120) of a device (e.g., electronic device 101) may call at least one command among one or more commands stored from a storage medium and execute it. This allows the device to be operated to perform at least one function according to the at least one instruction called. The one or more instructions may include code generated by a compiler or code that can be executed by an interpreter. A storage medium that can be read by a device may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' only means that the storage medium is a tangible device and does not contain signals (e.g. electromagnetic waves), and this term refers to cases where data is semi-permanently stored in the storage medium. There is no distinction between temporary storage cases.

일 실시 예에 따르면, 본 문서에 개시된 다양한 실시 예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to one embodiment, methods according to various embodiments disclosed in this document may be included and provided in a computer program product. Computer program products are commodities and can be traded between sellers and buyers. The computer program product may be distributed in the form of a machine-readable storage medium (e.g. compact disc read only memory (CD-ROM)) or via an application store (e.g. Play Store TM ) or on two user devices (e.g. It can be distributed (e.g. downloaded or uploaded) directly between smart phones) or online. In the case of online distribution, at least a portion of the computer program product may be at least temporarily stored or temporarily created in a machine-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or a relay server.

다양한 실시 예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시 예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시 예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to various embodiments, each component (e.g., module or program) of the above-described components may include a single or plural entity, and some of the plurality of entities may be separately placed in other components. . According to various embodiments, one or more of the components or operations described above may be omitted, or one or more other components or operations may be added. Alternatively or additionally, multiple components (eg, modules or programs) may be integrated into a single component. In this case, the integrated component may perform one or more functions of each component of the plurality of components in the same or similar manner as those performed by the corresponding component of the plurality of components prior to the integration. . According to various embodiments, operations performed by a module, program, or other component may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, omitted, or , or one or more other operations may be added.

Claims (16)

블록체인 네트워크에 포함된 블록체인 노드를 구성하는 전자 장치에 있어서,
통신 모듈;
블록체인 네트워크에 대한 전체 원장 중 일부를 포함하는 부분 원장 또는 전체 원장을 저장하는 메모리;
상기 통신 모듈 및 상기 메모리와 전기적으로 연결된 적어도 하나의 프로세서를 포함하고,
상기 원장은 상기 전자 장치가 합의에 참여한 적어도 하나의 트랜잭션 각각에 상응하는 적어도 하나의 블록을 포함하고,
상기 적어도 하나의 프로세서는,
상기 통신 모듈을 통해 제1 외부 전자 장치와 통신하여 상기 제1 외부 전자 장치와의 대리 합의 관계를 설정하고,
제2 외부 전자 장치로부터 상기 통신 모듈을 통해 상기 제1 외부 전자 장치와 상기 제2 외부 전자 장치 간의 서비스에 대한 제1 트랜잭션의 합의 요청을 수신하고,
상기 제1 외부 전자 장치의 대리 합의 시작 요청이 수신된 것에 기초하여 상기 제1 외부 전자 장치와 상기 제2 외부 전자 장치 간의 서비스에 대한 제1 트랜잭션에 대해 상기 제1 외부 전자 장치를 대리하여 합의 동작을 수행하고,
상기 대리 합의된 완료 결과를 상기 통신 모듈을 통해 상기 제2 외부 전자 장치로 전달하도록 설정된 전자 장치.
In the electronic device constituting a blockchain node included in a blockchain network,
communication module;
Memory that stores partial or full ledgers, including parts of the full ledger for a blockchain network;
Comprising at least one processor electrically connected to the communication module and the memory,
The ledger includes at least one block corresponding to each of at least one transaction in which the electronic device participated in an agreement,
The at least one processor,
Establishing a proxy agreement relationship with the first external electronic device by communicating with the first external electronic device through the communication module,
Receiving an agreement request for a first transaction for a service between the first external electronic device and the second external electronic device through the communication module from a second external electronic device,
An agreement operation on behalf of the first external electronic device for a first transaction for a service between the first external electronic device and the second external electronic device based on receiving a proxy agreement start request from the first external electronic device. Do this,
An electronic device configured to transmit the proxy-agreed completion result to the second external electronic device through the communication module.
제1항에 있어서,
상기 적어도 하나의 프로세서는,
상기 제1 외부 전자 장치와 상기 제2 외부 전자 장치 간의 제1 트랜잭션 합의가 완료된 것에 반응하여, 상기 블록체인 네트워크에 참여한 각 노드들의 원장을 업데이트하도록 상기 통신 모듈을 통해 요청하는 전자 장치.
According to paragraph 1,
The at least one processor,
An electronic device that requests, through the communication module, to update the ledgers of each node participating in the blockchain network in response to completion of a first transaction agreement between the first external electronic device and the second external electronic device.
제1항에 있어서,
상기 적어도 하나의 프로세서는,
상기 제1 외부 전자 장치로부터 대리 합의 중지 요청이 수신되는 경우, 상기 대리 합의 완료된 블록 데이터를 상기 제1 외부 전자 장치로 전송하도록 더 설정된 전자 장치.
According to paragraph 1,
The at least one processor,
When a request to stop proxy agreement is received from the first external electronic device, the electronic device is further configured to transmit the block data on which the proxy agreement has been completed to the first external electronic device.
제1항에 있어서,
상기 제1 외부 전자 장치 및 상기 제2 외부 전자 장치는 모바일 노드이고,
상기 적어도 하나의 프로세서는,
상기 블록체인 네트워크 내 중계 노드를 통해 상기 제1 외부 전자 장치 및 상기 제2 외부 전자 장치와 통신하도록 설정된 전자 장치.
According to paragraph 1,
The first external electronic device and the second external electronic device are mobile nodes,
The at least one processor,
An electronic device configured to communicate with the first external electronic device and the second external electronic device through a relay node in the blockchain network.
제4항에 있어서,
상기 적어도 하나의 프로세서는,
상기 제1 외부 전자 장치와 대리 합의 관계 설정 시, 대리 합의를 요청하는 노드 항목과 요청 노드를 대신하여 대리 합의 가능 상태를 체크하는 항목을 포함하는 대리 합의 정보 테이블을 저장 관리하도록 더 설정된 전자 장치.
According to paragraph 4,
The at least one processor,
When establishing a proxy agreement relationship with the first external electronic device, the electronic device is further configured to store and manage a proxy agreement information table including a node item requesting proxy agreement and an item checking the status of possible proxy agreement on behalf of the requesting node.
제5항에 있어서,
상기 적어도 하나의 프로세서는,
상기 대리 합의 정보 테이블에 상기 제1 외부 전자 장치와 관련하여 대리 합의 가능 상태가 온(on)으로 기록된 것에 기초하여 상기 제1 트랜잭션에 대해 상기 제1 외부 전자 장치를 대리하여 합의 동작을 수행하도록 더 설정된 전자 장치.
According to clause 5,
The at least one processor,
To perform an agreement operation on behalf of the first external electronic device for the first transaction based on the proxy agreement possible state in relation to the first external electronic device being recorded as on in the proxy agreement information table. More set up electronics.
제5항에 있어서,
상기 적어도 하나의 프로세서는,
상기 대리 합의 정보 테이블에 상기 제1 외부 전자 장치와 관련하여 대리 합의 가능 상태가 오프(off)로 기록된 상태에서, 상기 제1 외부 전자 장치의 대리 합의 시작 요청을 수신하지 못하는 경우, 상기 중계 노드로부터 대리 합의 정보 변경 요청을 수신하고, 상기 중계 노드로부터 수신된 대리 합의 정보 변경에 기초하여 상기 제1 외부 전자 장치와 관련하여 대리 합의 가능 상태를 온(on)으로 업데이트하도록 더 설정된 전자 장치.
According to clause 5,
The at least one processor,
If a proxy agreement start request from the first external electronic device is not received while the proxy agreement possible state with respect to the first external electronic device is recorded as off in the proxy agreement information table, the relay node An electronic device further configured to receive a proxy agreement information change request from and update a proxy agreement enabled state with respect to the first external electronic device to on based on the proxy agreement information change received from the relay node.
제7항에 있어서,
상기 적어도 하나의 프로세서는,
상기 제1 외부 전자 장치와의 대리 합의 관계 설정 정보, 대리 합의 동작 정보 또는 대리 합의 중지 정보를 상기 블록체인 네트워크 내 원장에 기록하도록 설정된 전자 장치.
In clause 7,
The at least one processor,
An electronic device configured to record proxy agreement relationship establishment information, proxy agreement operation information, or proxy agreement stop information with the first external electronic device in the ledger within the blockchain network.
제1항에 있어서,
상기 적어도 하나의 프로세서는,
상기 제1 외부 전자 장치로부터 대리 합의 관계 설정 삭제 요청이 수신되는 경우, 대리 합의 관계 삭제에 대한 정보를 상기 블록체인 네트워크 내 원장에 기록하도록 설정된 전자 장치.
According to paragraph 1,
The at least one processor,
An electronic device configured to record information about deletion of the proxy agreement relationship in the ledger within the blockchain network when a request to delete the proxy agreement relationship setting is received from the first external electronic device.
블록체인 네트워크 내 비활성 노드를 위한 대리 합의 방법에 있어서,
블록체인 네트워크에 참여하는 모바일 노드 중 제1 외부 전자 장치와의 대리 합의 관계를 설정하는 동작;
상기 블록체인 네트워크에 참여하는 모바일 노드 중 제2 외부 전자 장치로부터 상기 제1 외부 전자 장치와 상기 제2 외부 전자 장치 간의 서비스에 대한 제1 트랜잭션의 합의 요청을 수신하는 동작;
상기 제1 외부 전자 장치의 대리 합의 시작 요청이 수신된 것에 기초하여 상기 제1 외부 전자 장치와 상기 제2 외부 전자 장치 간의 서비스에 대한 제1 트랜잭션에 대해 상기 제1 외부 전자 장치를 대리하여 합의 동작을 수행하는 동작;
상기 대리 합의된 완료 결과를 상기 블록체인 네트워크를 통해 상기 제2 외부 전자 장치로 전달하는 동작; 및
상기 제1 외부 전자 장치와 상기 제2 외부 전자 장치 간의 제1 트랜잭션 합의가 완료된 것에 반응하여, 상기 블록체인 네트워크에 참여한 각 노드들의 원장을 업데이트하는 동작을 포함하고,
상기 원장은 상기 전자 장치가 합의에 참여한 적어도 하나의 트랜잭션 각각에 상응하는 적어도 하나의 블록을 포함하는 것을 특징으로 하는 방법.
In the proxy consensus method for inactive nodes in a blockchain network,
An operation of establishing a proxy agreement relationship with a first external electronic device among mobile nodes participating in the blockchain network;
Receiving an agreement request for a first transaction for a service between the first external electronic device and the second external electronic device from a second external electronic device among mobile nodes participating in the blockchain network;
An agreement operation on behalf of the first external electronic device for a first transaction for a service between the first external electronic device and the second external electronic device based on receiving a proxy agreement start request from the first external electronic device. An action to perform;
An operation of transmitting the proxy agreed upon completion result to the second external electronic device through the blockchain network; and
In response to completion of a first transaction agreement between the first external electronic device and the second external electronic device, updating the ledger of each node participating in the blockchain network,
The ledger includes at least one block corresponding to each of at least one transaction in which the electronic device participates in an agreement.
제10항에 있어서,
상기 제1 외부 전자 장치를 대리하여 합의 동작을 수행하는 동작 이후에,
상기 제1 외부 전자 장치로부터 대리 합의 중지 요청이 수신되는 경우, 상기 대리 합의 완료된 블록 데이터를 상기 제1 외부 전자 장치로 전송하는 동작을 더 포함하는 방법.
According to clause 10,
After performing an agreement operation on behalf of the first external electronic device,
When a request to stop proxy agreement is received from the first external electronic device, the method further includes transmitting block data on which the proxy agreement has been completed to the first external electronic device.
제10항에 있어서,
상기 제1 외부 전자 장치 및 상기 제2 외부 전자 장치는 모바일 노드인 방법.
According to clause 10,
The method wherein the first external electronic device and the second external electronic device are mobile nodes.
제10항에 있어서,
상기 제1 외부 전자 장치와의 대리 합의 관계를 설정하는 동작은,
상기 제1 외부 전자 장치와 대리 합의 관계 설정 시, 대리 합의를 요청하는 노드 항목과 요청 노드를 대신하여 대리 합의 가능 상태를 체크하는 항목을 포함하는 대리 합의 정보 테이블을 저장하는 동작을 더 포함하는 방법.
According to clause 10,
The operation of establishing a proxy agreement relationship with the first external electronic device includes:
When establishing a proxy agreement relationship with the first external electronic device, the method further includes storing a proxy agreement information table including a node item requesting proxy agreement and an item checking whether a proxy agreement is possible on behalf of the requesting node. .
제13항에 있어서,
상기 제1 외부 전자 장치를 대리하여 합의 동작을 수행하는 동작은,
상기 대리 합의 정보 테이블에 상기 제1 외부 전자 장치와 관련하여 대리 합의 가능 상태가 온(on)으로 기록된 것에 기초하여 상기 제1 트랜잭션에 대해 상기 제1 외부 전자 장치를 대리하여 합의 동작을 수행하는 것을 특징으로 하는 방법.
According to clause 13,
The operation of performing an agreement operation on behalf of the first external electronic device is:
Performing an agreement operation on behalf of the first external electronic device for the first transaction based on the fact that the proxy agreement possible state with respect to the first external electronic device is recorded as on in the proxy agreement information table. A method characterized by:
제10항에 있어서,
상기 제1 외부 전자 장치를 대리하여 합의 동작을 수행하는 동작은,
상기 대리 합의 정보 테이블에 상기 제1 외부 전자 장치와 관련하여 대리 합의 가능 상태가 오프(off)로 기록된 상태에서, 상기 제1 외부 전자 장치의 대리 합의 시작 요청을 수신하지 못하는 경우, 상기 중계 노드로부터 대리 합의 정보 변경 요청을 수신하는 동작; 및
상기 중계 노드로부터 수신된 대리 합의 정보 변경에 기초하여 상기 제1 외부 전자 장치와 관련하여 대리 합의 가능 상태를 온(on)으로 업데이트하는 동작을 더 포함하는 방법.
According to clause 10,
The operation of performing an agreement operation on behalf of the first external electronic device is:
If a proxy agreement start request from the first external electronic device is not received while the proxy agreement possible state with respect to the first external electronic device is recorded as off in the proxy agreement information table, the relay node An operation of receiving a request to change proxy agreement information from; and
The method further includes updating a proxy agreement enabled state with respect to the first external electronic device to on based on a change in proxy agreement information received from the relay node.
제10항에 있어서,
상기 제1 외부 전자 장치를 대리하여 합의 동작을 수행하는 동작 이후에,
상기 제1 외부 전자 장치로부터 대리 합의 관계 설정 삭제 요청이 수신되는 경우, 대리 합의 관계 삭제에 대한 정보를 상기 블록체인 네트워크 내 원장에 기록하는 동작을 더 포함하는 방법.
According to clause 10,
After performing an agreement operation on behalf of the first external electronic device,
When a request to delete the proxy agreement relationship setting is received from the first external electronic device, the method further includes recording information about deletion of the proxy agreement relationship in the ledger in the blockchain network.
KR1020220066666A 2022-05-04 2022-05-31 Electronic apparatus and substitute agreement method for inactive nodes in the mobile blockchain network KR20230155919A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/KR2023/004645 WO2023214695A2 (en) 2022-05-04 2023-04-06 Electronic device and method for substitute agreement for inactive node

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020220055537 2022-05-04
KR20220055537 2022-05-04

Publications (1)

Publication Number Publication Date
KR20230155919A true KR20230155919A (en) 2023-11-13

Family

ID=88746772

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220066666A KR20230155919A (en) 2022-05-04 2022-05-31 Electronic apparatus and substitute agreement method for inactive nodes in the mobile blockchain network

Country Status (1)

Country Link
KR (1) KR20230155919A (en)

Similar Documents

Publication Publication Date Title
US20230291559A1 (en) Electronic device for controlling power consumption of accessory device and operating method therefor
US20230252461A1 (en) Electronic device for providing transaction in blockchain network and operating method thereof
KR20230155919A (en) Electronic apparatus and substitute agreement method for inactive nodes in the mobile blockchain network
US20230261888A1 (en) Electronic device having partial ledger in blockchain network and operation method thereof
US20230396671A1 (en) Method for managing persistent group information of electronic device
US20240015216A1 (en) Electronic device for providing blockchain-based service, and operation method thereof
US20230254118A1 (en) Electronic device including partial ledger and method in blockchain network
US20240112193A1 (en) Method and device for transmitting data based on blockchain
US20240028751A1 (en) Electronic device for performing block consensus on basis of blockchain, and operation method therefor
US20230252191A1 (en) Electronic device for recovering block data in blockchain network and operation method thereof
US11937313B2 (en) Electronic device and method for controlling Bluetooth connection in electronic device
US20240078548A1 (en) Electronic device corresponding to node included in blockchain network and operation method therefor
KR20240045032A (en) Apparatus and method for transmitting data by block-chain
US20230342209A1 (en) Service operation method and electronic device supporting same
US20240179234A1 (en) Electronic device for processing plurality of pieces of information, and operating method therefor
US20240048613A1 (en) Electronic device and method of forming wi-fi peer to peer (p2p) group
EP4328768A1 (en) Electronic device for performing different login processes according to authentication type and control method thereof
US20230116016A1 (en) Method for providing collaborative editing service and server therefor
US20230189104A1 (en) Electronic device for wlan communication with plurality of external devices and operation method thereof
KR20220167172A (en) Electronic device including partial ledger and method in blockchain network
US20230354218A1 (en) Electronic device and method for controlling transmission power based on bluetooth communication in electronic device
KR20220167177A (en) Electronic device including partial ledger and method in blockchain network
KR20240015539A (en) Electronic device for improving a reception restriction of a signal due to a wireless connection error with a network and operating method thereof
KR20240062866A (en) Electronic device and method for connecting with an external electronic device in a network
KR20230021786A (en) Electronic device, and method for installing profile of embedded subscriber identification module in electronic device