WO2022098015A1 - 내부 데이터가 포함된 트랜잭션을 생성하는 전자 장치 및 이의 동작 방법 - Google Patents

내부 데이터가 포함된 트랜잭션을 생성하는 전자 장치 및 이의 동작 방법 Download PDF

Info

Publication number
WO2022098015A1
WO2022098015A1 PCT/KR2021/015559 KR2021015559W WO2022098015A1 WO 2022098015 A1 WO2022098015 A1 WO 2022098015A1 KR 2021015559 W KR2021015559 W KR 2021015559W WO 2022098015 A1 WO2022098015 A1 WO 2022098015A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
program
smart contract
transaction
data
Prior art date
Application number
PCT/KR2021/015559
Other languages
English (en)
French (fr)
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 EP21889480.6A priority Critical patent/EP4184403A4/en
Priority to CN202180065047.4A priority patent/CN116194939A/zh
Priority to US17/518,949 priority patent/US20220138739A1/en
Publication of WO2022098015A1 publication Critical patent/WO2022098015A1/ko

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/322Aspects of commerce using mobile devices [M-devices]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
    • H04L9/0825Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) using asymmetric-key encryption or public key infrastructure [PKI], e.g. key signature or public key certificates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/56Financial cryptography, e.g. electronic payment or e-cash

Definitions

  • Embodiments of the present disclosure generally relate to an electronic device for generating a transaction including internal data, and an operating method thereof.
  • Blockchain technology is a decentralization of data and information by sharing the ledger by multiple nodes and recording the blocks created through the computation of nodes on the ledger based on various consensus mechanisms. technology that makes it possible
  • the ledger is updated based on various consensus mechanisms, and the ledger is shared by multiple nodes, data once written to the ledger cannot be forged or tampered with.
  • Blockchain technology can guarantee the integrity of transactions recorded in the ledger, but does not guarantee the authenticity of the data included in the transaction. Therefore, there is a need for a technique that can guarantee the integrity of data included in a transaction.
  • mobile terminals are often used for the production, consumption, and/or distribution of data.
  • the blockchain technology and/or platform to be applied to the mobile terminal should consider the characteristics of data produced, consumed, and/or distributed in the mobile terminal.
  • the blockchain technology and/or platform to be applied to the mobile terminal should provide developers with a convenient means to develop programs and reduce the cost of platform management for administrators.
  • an electronic device and an operating method thereof may include data of the electronic device obtained from the transaction in the transaction at the time of generating the transaction.
  • a portable electronic device includes a communication circuit, a processor electrically connected to the communication circuit, and a memory electrically connected to the processor and storing instructions.
  • the portable electronic device executes a first smart contract, and by executing the first smart contract, obtains at least some data of the data stored in the memory, and the at least generating a transaction comprising some data, signing the generated transaction based on a private key of a user of the portable electronic device, and sending the signed transaction via the communication circuit to at least one node of a decentralized network to send
  • a method of operating an electronic device of a portable electronic device includes: executing a first smart contract; acquiring at least some data of data stored in the memory by executing the first smart contract operations, generating a transaction including the at least some data, signing the generated transaction based on a private key of a user of the portable electronic device, and the signed transaction via a communication circuitry of the portable electronic device. and transmitting the transaction to at least one node of the decentralized network.
  • an electronic device and an operating method thereof may include data of the electronic device obtained at the time of generating the transaction in the transaction.
  • FIG. 1 illustrates an electronic device in a network environment according to an embodiment.
  • FIG. 2 illustrates an electronic device and a decentralized network according to an embodiment.
  • FIG. 3 illustrates a program of an electronic device according to an exemplary embodiment.
  • FIG. 4 illustrates a program service module of an electronic device according to an exemplary embodiment.
  • FIG. 5 illustrates a database management module and a program core module of an electronic device according to an embodiment.
  • FIG. 6 is a flowchart illustrating an operation of an electronic device according to an exemplary embodiment.
  • FIG. 7 illustrates a user interface of an electronic device according to an exemplary embodiment.
  • FIG. 8 is a flowchart illustrating an operation in which an electronic device loads a code of a smart contract according to an embodiment.
  • FIG. 9 is a flowchart illustrating a detailed operation of an electronic device loading a code of a smart contract according to an embodiment.
  • FIG. 10 is a flowchart illustrating an operation of an electronic device executing a smart contract according to an embodiment.
  • FIG. 11 is a flowchart illustrating a detailed operation of an electronic device executing a smart contract according to an embodiment.
  • FIG. 12 illustrates a user interface of an electronic device according to an embodiment.
  • FIG. 1 illustrates an electronic device 101 in a network environment 100 according to an embodiment.
  • an electronic device 101 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or a second network 199 . It may communicate with the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 .
  • a first network 198 eg, a short-range wireless communication network
  • a second network 199 e.g., a second network 199 . It may communicate with the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 .
  • the electronic device 101 includes a processor 120 , a memory 130 , an input module 150 , a sound 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 an antenna module 197 may be included.
  • 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 .
  • some of these components are integrated into one component (eg, display module 160 ). can be
  • the processor 120 for example, executes software (eg, a program 140) to execute at least one other component (eg, a hardware or software component) of the electronic device 101 connected to the processor 120 . It can control and perform various data processing or operations. According to an embodiment, as at least part of data processing or operation, the processor 120 stores a command or data received from another component (eg, the sensor module 176 or the communication module 190 ) into the volatile memory 132 . may be stored in the volatile memory 132 , and may process commands or data stored in the volatile memory 132 , and store the result data in the non-volatile memory 134 .
  • software eg, a program 140
  • the processor 120 stores a command or data received from another component (eg, the sensor module 176 or the communication module 190 ) into the volatile memory 132 .
  • the processor 120 stores a command or data received from another component (eg, the sensor module 176 or the communication module 190 ) into the volatile memory 132 .
  • the processor 120 is the main processor 121 (eg, a central processing unit or an application processor) or a secondary processor 123 (eg, a graphic processing unit, a neural network processing unit) a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor).
  • the main processor 121 e.g, a central processing unit or an application processor
  • a secondary processor 123 eg, a graphic processing unit, a neural network processing unit
  • NPU neural processing unit
  • an image signal processor e.g., a sensor hub processor, or a communication processor.
  • the main processor 121 e.g, a central processing unit or an application processor
  • a secondary processor 123 eg, a graphic processing unit, a neural network processing unit
  • NPU neural processing unit
  • an image signal processor e.g., a sensor hub processor, or a communication processor.
  • the main processor 121 e.g, a central processing unit or an application processor
  • a secondary processor 123
  • the auxiliary processor 123 is, for example, on behalf of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or the main processor 121 is active (eg, executing an application). ), together with the main processor 121, at least one of the components of the electronic device 101 (eg, the display module 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the related functions or states.
  • the auxiliary processor 123 eg, an image signal processor or a communication processor
  • the auxiliary processor 123 may include a hardware structure specialized for processing an artificial intelligence model.
  • Artificial intelligence models can be created through machine learning. Such learning may be performed, for example, in the electronic device 101 itself on which artificial intelligence is performed, or may be performed through a separate server (eg, the server 108).
  • the learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but in the above example not limited
  • the artificial intelligence model may include a plurality of artificial neural network layers.
  • Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted Boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the above example.
  • the artificial intelligence model may include, in addition to, or alternatively, a software structure in addition to the hardware structure.
  • the memory 130 may store various data used by at least one component of the electronic device 101 (eg, the processor 120 or the sensor module 176 ).
  • the data may include, for example, input data or output data for software (eg, the program 140 ) and instructions related thereto.
  • the memory 130 may include a volatile memory 132 or a non-volatile memory 134 .
  • the program 140 may be stored as software in the memory 130 , and may include, for example, an operating system 142 , middleware 144 , or an application 146 .
  • the input module 150 may receive a command or data to be used in a component (eg, the processor 120 ) of the electronic device 101 from the outside (eg, a user) of the electronic device 101 .
  • the input module 150 may include, for example, a microphone, a mouse, a keyboard, a key (eg, a button), or a digital pen (eg, a stylus pen).
  • the sound output module 155 may output a sound signal to the outside of the electronic device 101 .
  • the sound output module 155 may include, for example, a speaker or a receiver.
  • the speaker can be used for general purposes such as multimedia playback or recording playback.
  • the receiver may be used to receive an incoming call. According to an embodiment, the receiver may be implemented separately from or as a part of the speaker.
  • the display module 160 may visually provide information to the outside (eg, a user) of the electronic device 101 .
  • the display module 160 may include, for example, a control circuit for controlling a display, a hologram device, or a projector and a corresponding device.
  • the display module 160 may include a touch sensor configured to sense a touch or a pressure sensor configured to measure the intensity of a force generated by the touch.
  • the audio module 170 may convert a sound into an electric signal or, conversely, convert an electric signal into a sound. According to an embodiment, the audio module 170 acquires a sound through the input module 150 or an external electronic device (eg, a sound output module 155 ) directly or wirelessly connected to the electronic device 101 . A sound may be output through the electronic device 102 (eg, a speaker or headphones).
  • an external electronic device eg, a sound output module 155
  • a sound may be output through the electronic device 102 (eg, a speaker or headphones).
  • the sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101 or an external environmental state (eg, user state), and generates an electrical signal or data value corresponding to the sensed state. can do.
  • the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, a barometric 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, a humidity sensor, or an illuminance sensor.
  • the interface 177 may support one or more designated protocols that may be used by the electronic device 101 to directly or wirelessly connect with an external electronic device (eg, the electronic device 102 ).
  • 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.
  • HDMI high definition multimedia interface
  • USB universal serial bus
  • SD card interface Secure Digital Card
  • 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 ).
  • 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).
  • the haptic module 179 may convert an electrical signal into a mechanical stimulus (eg, vibration or movement) or an electrical stimulus that the user can perceive through tactile or kinesthetic sense.
  • the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
  • the camera module 180 may capture still images and moving images. According to an embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.
  • the power management module 188 may manage power supplied to the electronic device 101 .
  • the power management module 188 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).
  • PMIC power management integrated circuit
  • the battery 189 may supply power to at least one component of the electronic device 101 .
  • the battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.
  • the communication module 190 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). It can support establishment and communication performance through the established communication channel.
  • the communication module 190 may include one or more communication processors that operate independently of the processor 120 (eg, an application processor) and support direct (eg, wired) communication or wireless communication.
  • the communication module 190 is a wireless communication module 192 (eg, 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 (eg, : It may include a local area network (LAN) communication module, or a power line communication module).
  • a wireless communication module 192 eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module
  • GNSS global navigation satellite system
  • wired communication module 194 eg, : It may include a local area network (LAN) communication module, or a power line communication module.
  • a corresponding communication module among these communication modules is a first network 198 (eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (eg, legacy It may communicate with the external electronic device 104 through a cellular network, a 5th generation (5G) network, a next-generation communication network, the Internet, or a computer network (eg, a telecommunication network such as a LAN or WAN).
  • 5G 5th generation
  • next-generation communication network the Internet
  • a computer network eg, a telecommunication network such as a LAN or WAN.
  • These various types of communication modules may be integrated into one component (eg, a single chip) or may be implemented as a plurality of components (eg, multiple chips) separate from each other.
  • the wireless communication module 192 uses subscriber information (eg, 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 .
  • subscriber information eg, International Mobile Subscriber Identifier (IMSI)
  • IMSI International Mobile Subscriber Identifier
  • the electronic device 101 may be identified or authenticated.
  • the wireless communication module 192 may support a 5G network and a next-generation communication technology after the 4th generation (4G) network, for example, a new radio access technology (NR).
  • NR access technology includes 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)).
  • eMBB enhanced mobile broadband
  • mMTC massive machine type communications
  • URLLC ultra-reliable and low-latency
  • the wireless communication module 192 may support a high frequency band (eg, mmWave band) to achieve a high data rate, for example.
  • a high frequency band eg, mmWave band
  • the wireless communication module 192 includes various technologies for securing performance in a high frequency band, for example, beamforming, massive multiple-input and multiple-output (MIMO), all-dimensional multiplexing. Technologies such as full dimensional MIMO (FD-MIMO), array antenna, analog beam-forming, or large scale antenna may be supported.
  • the wireless communication module 192 may support various requirements specified in the electronic device 101 , an external electronic device (eg, the electronic device 104 ), or a network system (eg, the second network 199 ).
  • the wireless communication module 192 includes a peak data rate (eg, 20 Gbps or more) for realizing eMBB, loss coverage (eg, 164 dB or less) for realizing mMTC, or U-plane latency for realizing URLLC ( Example: downlink (DL) and uplink (UL) each 0.5 ms or less, or round trip 1 ms or less) may be supported.
  • a peak data rate eg, 20 Gbps or more
  • loss coverage eg, 164 dB or less
  • U-plane latency for realizing URLLC
  • the antenna module 197 may transmit or receive a signal or power to the outside (eg, an external electronic device).
  • the antenna module 197 may include an antenna including a conductor formed on a substrate (eg, a PCB) or a radiator formed of a conductive pattern.
  • 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 from the plurality of antennas by, for example, the communication module 190 . can be selected. A signal or power may be transmitted or received between the communication module 190 and an external electronic device through the selected at least one antenna.
  • other components eg, a radio frequency integrated circuit (RFIC)
  • RFIC radio frequency integrated circuit
  • the antenna module 197 may form a mmWave antenna module.
  • the mmWave antenna module comprises a printed circuit board, an RFIC disposed on or adjacent to a first side (eg, bottom side) of the printed circuit board and capable of supporting a specified high frequency band (eg, mmWave band); and a plurality of antennas (eg, an array antenna) disposed on or adjacent to a second side (eg, top or side) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.
  • peripheral devices eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)
  • signal eg commands or data
  • the command 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 the same as or different from the electronic device 101 .
  • all or part of the operations performed by the electronic device 101 may be executed by one or more external electronic devices 102 , 104 , or 108 .
  • the electronic device 101 may perform the function or service itself instead of executing the function or service itself.
  • one or more external electronic devices may be requested to perform at least a part of the function or the service.
  • One or more external electronic devices receiving the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit the execution result to the electronic device 101 .
  • the electronic device 101 may process the result as it is or additionally and provide it as at least a part of a response to the request.
  • cloud computing distributed computing, mobile edge computing (MEC), or client-server computing technology may be used.
  • the electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing.
  • 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.
  • the external electronic device 104 or the server 108 may be included in the second network 199 .
  • the electronic device 101 may be applied to an intelligent service (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.
  • FIG. 2 illustrates an electronic device 201 and a decentralized network 250 according to an embodiment.
  • the decentralized network 250 may include a plurality of nodes 251 and 253 , a ledger 260 , and a virtual machine 270 .
  • the decentralized network 250 may be a peer-to-peer (P2P) network connected by a plurality of nodes 251 and 253 .
  • P2P peer-to-peer
  • a plurality of nodes 251 and 253 perform an operation for a consensus mechanism (eg, proof of stake (PoS), proof of work (PoW) operation) used in the decentralized network 250 . It may be an electronic device capable of Some of the nodes 251 and 253 participating in the decentralized network 250 may not participate in the consensus mechanism.
  • a consensus mechanism eg, proof of stake (PoS), proof of work (PoW) operation
  • PoS proof of stake
  • PoW proof of work
  • the plurality of nodes 251 and 253 may be electronic devices that are portable by a user.
  • the plurality of nodes 251 and 253 may include a portable communication device (eg, a smartphone), a computer device, a notebook computer, a netbook, a laptop computer, a tablet PC, a portable multimedia device, a portable medical device, or a wearable device.
  • the ledger 260 may have a data structure in which a plurality of blocks are connected to each other. Since each of the plurality of blocks includes information (eg, a hash value) of the previous block, the plurality of blocks may have a data structure connected to each other. Each of the multiple blocks may include multiple transactions.
  • a transaction may be a message signed by an account of a specified kind (eg, an externally owned account (EOA)).
  • a transaction is a property value (eg nonce), processing cost (eg gasPrice, gasLimit), destination account, remittance amount, payload (or data), signature (eg signature according to elliptic curve digital signature algorithm (ECDSA)) , or a combination thereof.
  • the ledger 260 may be shared by nodes 251 and 253 . Some of the nodes 251 and 253 may store only a part of the ledger 260 .
  • the smart contract 261 may include program code executable through the virtual machine 270 .
  • the smart contract 261 may be one type of transaction.
  • the virtual machine 270 (eg, an ethereum virtual machine (EVM)) is a state change (eg, update of the ledger 260 ) in the decentralized network 250 , for execution of the smart contract 261 . It may be a virtual machine that performs an operation.
  • the virtual machine 270 may be a machine based on an operation performed by a plurality of nodes 251 and 253. The latest state of the virtual machine 270 is may be shared by the ones 251 and 253 .
  • the electronic device 201 may correspond to the electronic device 101 of FIG. 1 .
  • the electronic device 201 may operate as a node of the decentralized network 250 and/or a participant (eg, an externally owned account) of the decentralized network 250 .
  • the electronic device 201 may include a processor 120 , a memory 130 , and a communication module 190 .
  • the memory 130 may store the first program 210 , the second program 220 , and the third program 230 .
  • the memory 130 may store the ledger 240 .
  • the ledger 240 may include a smart contract 241 .
  • the ledger 240 may be a copy of the ledger 260 .
  • the ledger 240 may include information on at least some blocks among a plurality of blocks of the ledger 260 .
  • the smart contract 241 may be the same as the smart contract 261 .
  • the smart contract 241 may be some smart contract among a plurality of smart contracts 261 of the ledger 260 .
  • the first program 210 may correspond to the application 146 of FIG. 1 .
  • the first program 210 may be a program executed in an execution environment provided by the operating system 142 of FIG. 1 .
  • the first program 210 may interact with a user through a user interface.
  • the first program 210 may process a command based on a user input identified through the user interface through other programs (eg, the second program 220 and the third program 230 ).
  • the first program 210 may provide a result processed through another program to the user through a user interface.
  • the first program 210 may provide a function for setting an access right to the memory 130 of the third program 230 .
  • the first program 210 may provide a user interface for setting an access right to the memory 130 of the third program 230 .
  • the first program 210 may provide information for setting access authority to the third program 230 in response to a user input through the user interface.
  • the user input may be a touch input for selecting one of a plurality of access rights of the third program 230 on the user interface.
  • the third program 230 may set an access right to the memory area of the memory 130 managed by the operating system 142 .
  • the third program 230 may set an access right to the memory area of the memory 130 managed by the operating system 142 based on the information of the first program 210 .
  • the third program 230 may be set to allow access only to data that meets a specified condition among data stored in the memory 130 .
  • the third program 230 may not allow access to data stored in the memory 130 .
  • Data for which access rights are set for the third program 230 may be data in a memory area managed in the execution environment of the first program 210 among data of the memory 130 .
  • Data for which the access right for the third program 230 is set is an identifier (eg, mobile station international subscriber directory number (MSISDN), international mobile subscriber identity (IMSI), international mobile station equipment identity (IMEI), ICCID) of the terminal.
  • MSISDN mobile station international subscriber directory number
  • IMSI international mobile subscriber identity
  • IMEI international mobile station equipment identity
  • ICCID integrated circuit card identifier
  • information generated in the terminal eg, current location, current time
  • access information eg, read, write, and modify information
  • security information eg, biometric information
  • personal information user ID (identity)
  • Data generated in the terminal are acquired through an image (eg, an image acquired through the camera module 180 ), an image (eg, an image acquired through the camera module 180 ), text (eg, acquired through the input module 150 ) text), or a combination thereof.
  • the data stored in the terminal may include data (eg, personal health record (PHR), biometric information measurement data) acquired through an external electronic device.
  • PHR personal health record
  • the third program 230 When execution of a smart contract is required to generate a transaction that requires relatively high security (eg, cryptocurrency transaction, verification of security information, use of an electronic key of a vehicle), the third program 230 stores the memory ( The access right of the third program 230 may be set to be relatively high so that all data stored in the 130 ) can be accessed.
  • relatively high security eg, cryptocurrency transaction, verification of security information, use of an electronic key of a vehicle
  • the third program 230 When execution of a smart contract for generating a transaction requiring relatively low security (eg, cryptocurrency transaction history, security information usage history, vehicle electronic key usage content) is required, the third program 230 is The access right of the third program 230 may be set to be relatively low so that only designated data (eg, information generated by the terminal) among data stored in the memory 130 can be accessed.
  • relatively low security e.g, cryptocurrency transaction history, security information usage history, vehicle electronic key usage content
  • the second program 220 may provide an interface (or communication) between the first program 210 and the third program 230 .
  • the second program 220 converts data of the first program 210 into data processable by the third program 230 or converts data of the third program 230 into data processable by the first program 210 . can be converted
  • the second program 220 may generate an instance of the third program 230 based on the request of the first program 210 . As the second program 220 creates an instance of the third program 230 , the third program 230 may be loaded into the memory 130 .
  • the third program 230 may be a program (eg, an emulator) that is executed in an execution environment different from the execution environment provided by the operating system 142 .
  • the third program 230 may provide an execution environment for the code of the smart contract.
  • FIG. 3 illustrates programs 210 , 220 , and 230 of the electronic device 201 according to an exemplary embodiment.
  • the third program 230 includes a program manager 310 , a program service module 330 , a program core module 350 , and a database management module 370 .
  • FIG. 4 illustrates a program service module 330 of the electronic device 201 according to an embodiment.
  • the program service module 330 includes a state machine 410 , a load manager 420 , a configuration manager 430 , a core native 440 , a transaction manager 450 , an authentication manager 460 , stub 470 , event manager 480 , or a combination thereof.
  • the state machine 410 may set the access right of the third program 230 based on the setting information obtained through the setting manager 430 .
  • the stub 470 may provide a result value of some function of another application.
  • FIG. 5 illustrates a database management module 370 and a program core module 350 of the electronic device 201 according to an embodiment.
  • the program core module 350 includes a core manager 510 , an interpreter 520 , a connector 530 , or a combination thereof.
  • the program manager 310 of the third program 230 may communicate with the first program 210 through the second program 220 .
  • the program manager 310 may receive a confirmation request for the code of the smart contract of the first program 210 .
  • the confirmation request may include an identifier for the code of the smart contract and a version for the code of the smart contract.
  • the program manager 310 may search the memory 130 for a smart contract corresponding to the confirmation request, and retrieve an identifier for the requested code from map data.
  • the program manager 310 may return the search result to the first program 210 .
  • the search result may include the presence or absence of a smart contract or version information of the searched smart contract.
  • the program manager 310 may receive a load request for the code of the smart contract of the first program 210 .
  • the load request may include an identifier for the code of the smart contract or version information of the smart contract.
  • the program manager 310 may retrieve the identifier and/or version information of the requested code from map data. Also, the program manager 310 may transmit a load request for the code of the smart contract to the program service module 330 without searching for an identifier for the requested code in the mapping data.
  • the program manager 310 may provide a return value (eg, load success) to the first program 210 through the second program 220 .
  • a return value eg, load success
  • the program manager 310 may transmit a load request for the code of the smart contract to the program service module 330 .
  • the state machine 410 of the program service module 330 may request the load manager 420 to load the code in response to the load request of the program manager 310 .
  • the load manager 420 may load the code of the smart contract from the memory 130 based on the identifier for the code.
  • the load manager 420 may download the code of the smart contract based on the identifier for the code, and may download the code of the smart contract through the network.
  • the load manager 420 may map the identifier of the loaded (or downloaded) smart contract code and the storage path information and store it in the memory 130 .
  • the load manager 420 may verify the integrity of the smart contract before storing the mapping data between the identifier of the code of the smart contract and the information, and obtain the path of the loaded (or downloaded) smart contract.
  • the load manager 420 may return a load success to the state machine 410 .
  • the state machine 410 may return a successful load to the program manager 310 via the event manager 480 .
  • the program manager 310 may receive a code execution request of the first program 210 .
  • the code execution request may include an identifier for the code of the smart contract, version information, information on an execution function, parameters related to an execution function, or a combination thereof.
  • the program manager 310 may transmit a code execution request of the first program 210 to the program service module 330 .
  • the state machine 410 may request code information from the load manager 420 .
  • the request for code information may include an identifier for the code of the smart contract.
  • Load manager 420 may return code information to state machine 410 in response to a request for code information.
  • the state machine 410 may request the program core module 350 to execute the code of the smart contract through the core native 440 .
  • the core native 440 may be referred to as a library.
  • the core manager 510 of the program core module 350 may load (or fetch) the code of the smart contract.
  • the core manager 510 may load the code of the smart contract based on the storage path of the smart contract.
  • the interpreter 520 of the program core module 350 may execute the code.
  • the interpreter 520 may access data in the memory 130 by executing the code of the smart contract.
  • the interpreter 520 may access data that requires access according to the execution of the code of the smart contract.
  • the interpreter 520 may acquire the data for which access is requested when there is an access right to the data for which access is requested. The interpreter 520 may not be able to access the data for which access is requested when there is no access right to the data for which access is requested.
  • the interpreter 520 may deliver the execution result of the code of the smart contract to the core manager 510 .
  • the interpreter 520 may transmit the acquired data to the core manager 510 .
  • the interpreter 520 may transmit to the core manager 510 that there is no data access right.
  • the core manager 510 may deliver the execution result to the transaction manager 450 of the program service module 330 .
  • the core manager 510 may transfer the acquired data to the transaction manager 450 .
  • the core manager 510 may encrypt the obtained data and transmit the encrypted data to the transaction manager 450 .
  • the core manager 510 may encrypt the acquired data and transmit the encrypted data to the transaction manager 450 .
  • the core manager 510 may transmit to the transaction manager 450 that there is no data access right.
  • the transaction manager 450 may process the execution result from the program core module 350 .
  • the transaction manager 450 may generate a transaction based on the data from the program core module 350 .
  • the transaction manager 450 may transmit the execution result from the program core module 350 to the state machine 410 .
  • the transaction manager 450 may generate a transaction based on an execution result from the program core module 350 and/or data obtained by the program core module 350 .
  • the transaction manager 450 may generate a transaction including data obtained by the program core module 350 as a payload.
  • the transaction manager 450 may sign the generated transaction through the authentication manager 460 .
  • the authentication manager 460 may sign a transaction based on the user's private key. there is.
  • the transaction manager 450 may verify the signed transaction by comparing the hashed value of the transaction and the decrypted value of the signature of the transaction with the public key.
  • the transaction manager 450 may transmit the signed transaction to at least one node of the decentralized network 250 .
  • the transaction manager 450 transmits the signed transaction to at least one node (eg, node ( 251), node 253).
  • the transaction manager 450 may return an identifier (eg, a transaction hash value) of a signed transaction to the state machine 410 .
  • the transaction manager 450 may return the contents of the transaction (eg, an execution operation, a user identifier, an execution time, or a combination thereof) to the state machine 410 .
  • the state machine 410 may return an execution result to the program manager 310 through the event manager 480 .
  • the execution result may include an identifier of the transaction, an execution operation, a user identifier, an execution time, or a combination thereof. If there is no access right to the data for which access is requested, the result of the execution may be a notification that access right is not available.
  • the program manager 310 may return an execution result to the first program 210 through the second program 220 .
  • the first program 210 may provide the execution result to the user through the user interface.
  • the database management module 370 may include a database manager 540 , a ledger 240 , a database 560 , a relational database 570 , or a combination thereof.
  • the database manager 540 may keep the ledger 240 up to date and manage the database 560 .
  • the database manager 540 may provide data managed in the database 560 to the core manager 510 in response to a request from the program core module 350 .
  • the database manager 540 may provide data managed in the database 560 to the program core module 350 .
  • the ledger 240 may be the same as the ledger 260 .
  • the ledger 240 may include only a part of the ledger 260 .
  • the database 560 may be a set of data stored in the memory 130 .
  • Relational database 570 may be a database (eg, SQLite) that stores and provides access to interrelated data points.
  • FIG. 6 is a flowchart illustrating an operation of the electronic device 201 according to an exemplary embodiment.
  • the electronic device 201 sets a mode.
  • the electronic device 201 may set a mode based on a user input.
  • the mode may indicate an authority for the third program 230 to access data in the memory 130 .
  • the mode may indicate an authority for the third program 230 to access the memory area of the memory 130 managed by the operating system 142 .
  • the mode may be divided into a mode allowing access to data of the third program 230 and a mode not allowing access to the data.
  • the mode allowing the third program 230 to access data may include a plurality of modes in which access is allowed according to different types of data.
  • the type of data may include the identifier of the terminal, information generated by the terminal, access right information (eg, read, write, modify, erase) of information generated in the terminal, security information, personal information, or a combination thereof. there is.
  • the electronic device 201 may set a mode based on a user input obtained while displaying the user interface 710 of the first program 210 .
  • FIG. 7 illustrates user interfaces 710 and 730 of the electronic device 201 according to an embodiment.
  • the electronic device 201 while displaying the user interface 710 of the first program 210 , the electronic device 201 performs a plurality of modes in response to an input 711 for selecting an object for setting a mode.
  • a window 713 from which at least one mode can be selected may be displayed.
  • the first mode sets the access right of the third program 230 to be relatively high
  • the second mode sets the access right of the third program 230 to a relatively low level
  • the operating system 142 sets the access right to a relatively high level.
  • the third program 230 may not allow access to the memory area of the managed memory 130 .
  • the first mode, the second mode, and/or the third mode may be displayed in the window 713 .
  • the electronic device 201 In response to an input 715 for selecting one of a plurality of modes being displayed in the window 713 , the electronic device 201 has an authority to access data in the memory 130 for the third program 230 . can be set.
  • the electronic device 201 may display a message 717 indicating completion of the setting after setting the right to access data in the memory 130 for the third program 230 .
  • the electronic device 201 may update the user interface 710 to the user interface 730 after setting an authority to access data in the memory 130 of the third program 230 .
  • the user interface 730 may indicate the function of the smart contract executable through the third program 230 .
  • the user interface 730 may include an area 731 indicating a description of provided functions, objects 733 and 734 related to functions, an object 735 for transmitting a transaction, or a combination thereof.
  • the electronic device 201 identifies a smart contract execution request.
  • the electronic device 201 may identify a smart contract execution request based on a user input obtained while displaying the user interface of the first program 210 .
  • the electronic device 201 may identify selection of an object related to a function based on a user input and may identify selection of an object for transmitting a transaction based on another user input.
  • the electronic device 201 may identify a smart contract execution request based on a user input for selecting an object for transmitting a transaction.
  • the electronic device 201 Based on an input for selecting an object 733 related to “Local Storage Access Logging” and an input for selecting an object 735 related to “Send Transaction!” on the user interface 730, the electronic device 201 performs a smart The contract execution request can be identified.
  • step 630 the electronic device 201 executes the smart contract.
  • the electronic device 201 may execute a smart contract through the third program 230 by calling a designated API (application programming interface) through the first program 210 .
  • the designated API may include identification information of the code of the smart contract, identification information on the execution function, parameters related to the execution function, or a combination thereof.
  • the electronic device 201 acquires data.
  • the electronic device 201 acquires data through the third program 230 and/or acquires data from the memory area of the memory 130 managed by the operating system 142 through the third program 230 . can
  • the electronic device 201 may acquire the data stored in the memory 130 through the third program 230 .
  • the electronic device 201 displays a notification 739 on the user interface 730 indicating that the data access right does not exist. can do.
  • the electronic device 201 may display information about the mode currently set in the third program 230 (eg, “first mode”) through the notification 739 .
  • the electronic device 201 In step 650, the electronic device 201 generates a transaction.
  • the electronic device 201 may generate a transaction including data obtained through the third program 230 as a payload.
  • the transaction may include user identification information, data access time, and execution action information.
  • step 660 the electronic device 201 propagates the transaction.
  • the electronic device 201 may propagate the transaction to the decentralized network 250 through the third program 230 .
  • the electronic device 201 When the electronic device 201 propagates the transaction, the electronic device 201 displays the execution result of the smart contract on the user interface 730 and/or the content 737 of the smart contract propagated to the user interface 730 (eg, identification of the user). information, data access time, and action information) can be displayed.
  • a transaction transmitted to the decentralized network 250 may be recorded in a block of the ledger 260 through the consensus mechanism of the nodes 251 and 253 .
  • the transaction is recorded in the block of the ledger 260
  • the block in which the transaction is recorded after a specified block generation cycle secures finality it can be evaluated as successfully recorded in the ledger 260 .
  • the block in which the transaction is recorded can be evaluated as having secured completeness. As the number of blocks connected to the block in which the transaction is recorded increases, it can be evaluated that the integrity of the block in which the transaction is recorded increases.
  • FIG. 8 is a flowchart illustrating an operation in which the electronic device 201 loads a code of a smart contract according to an embodiment.
  • the first program 210 of the electronic device 201 transmits a third program execution request to the second program 220 .
  • the first program 210 may be a program for controlling an external device (eg, a car).
  • the first program 210 may be a program for sharing the user's personal information (eg, health record) to an external electronic device.
  • the second program 220 may create an instance of the third program 230 based on a request to create an instance of the third program 230 .
  • the first program 210 requests the second program 220 to load the code.
  • the code load request may include identification information and/or version information of the transaction code.
  • the second program 220 requests the third program 230 to load the code.
  • the second program 220 may request the third program 230 to load the code in response to the code load request of the first program 210 .
  • the second program 220 may process the code load request of the first program 210 into a form that can be processed by the third program 230 , and transmit the processed code load request to the third program 230 .
  • the third program 230 identifies whether the code of the smart contract exists.
  • the third program 230 may identify whether the code of the smart contract exists in the memory 130 in response to the code load request.
  • step 830 If the code of the smart contract does not exist, the third program 230 performs step 830. If the code of the smart contract exists, the third program 230 performs step 861.
  • the third program 230 downloads the code of the smart contract.
  • the third program 230 may download the code of the smart contract through a network (eg, the nodes 251 and 253 or an external server).
  • the third program 230 checks the integrity of the downloaded smart contract.
  • the third program 230 may check the integrity of the smart contract using an external server.
  • the external server may be a server that stores smart contract information (eg, code, version, identifier).
  • the third program 230 stores the smart contract information.
  • the third program 230 may store information in which identification information of the smart contract and other information (eg, storage path, version information) are mapped.
  • step 861 the third program 230 returns the execution result to the second program 220 .
  • the returned value may include map data.
  • the second program 220 returns the execution result to the first program 210 .
  • the second program 220 may process the return value of the third program 230 into a form that can be processed by the first program 210 , and transmit the processed return value to the first program 210 .
  • FIG. 9 is a flowchart illustrating a detailed operation of the electronic device 201 loading a code of a smart contract according to an embodiment.
  • the steps of FIG. 9 may correspond to steps 817 , 820 , 830 , 840 , 850 , and 861 of FIG. 8 .
  • the program manager 310 of the third program 230 identifies a code load request.
  • the program manager 310 may identify a code load request from the second program 220 .
  • the program manager 310 identifies whether the code of the smart contract exists.
  • the program manager 310 may identify whether a code of the smart contract exists based on the identification information of the smart contract.
  • the program manager 310 may identify whether the code of the smart contract exists by searching for identification information of the smart contract in map data.
  • step 931 If the code of the smart contract does not exist, the program manager 310 performs step 931 . If the code of the smart contract exists, the program manager 310 performs step 980 .
  • step 931 the program manager 310 requests the state machine 410 of the program service module 330 to load the code.
  • state machine 410 requests load manager 420 to load code.
  • the load manager 420 downloads the code of the smart contract.
  • the load manager 420 may download the code of the smart contract through a network (eg, the nodes 251 and 253 or an external server).
  • the load manager 420 checks the integrity of the downloaded smart contract.
  • the third program 230 may check the integrity of the smart contract using an external server.
  • the external server may be a server that stores smart contract information (eg, code, version, identifier).
  • the load manager 420 stores the information of the smart contract.
  • the load manager 420 may store information in which identification information of the smart contract and other information (eg, storage path, version) are mapped.
  • step 971 the load manager 420 returns the execution result to the state machine 410 .
  • step 975 the state machine 410 returns the execution result to the program manager 310 .
  • the state machine 410 may return an execution result to the program manager 310 through the event manager 480 .
  • step 980 the program manager 310 returns an execution result.
  • the program manager 310 may return an execution result to the second program 220 .
  • FIG. 10 is a flowchart illustrating an operation of the electronic device 201 executing a smart contract according to an embodiment.
  • the first program 210 identifies an input.
  • the first program 210 may identify an input requesting code execution of the smart contract through the user interface 710 .
  • the first program 210 requests the second program 220 to execute code.
  • the code execution request may include identification information of the smart contract, version information, information on the execution function, parameters related to the execution function, or a combination thereof.
  • the second program 220 requests the third program 230 to execute code.
  • the second program 220 may process the code execution request of the first program 210 into a form that can be processed by the third program 230 , and transmit the processed code execution request to the third program 230 .
  • the third program 230 loads (eg, fetches) the code of the smart contract.
  • the third program 230 may load the code of the smart contract based on the path searched based on the identification information in the mapping data.
  • the third program 230 executes the code of the smart contract.
  • the third program 230 may access data in the memory 130 by executing the code of the smart contract.
  • the third program 230 may access data requiring access according to the execution of the code of the smart contract.
  • the third program 230 may acquire the data for which access is requested when there is an access right to the data for which access is requested.
  • the third program 230 indicates to the first program 210 through the second program 220 that the data access right of the third program 230 does not exist when the access right to the data requested to be accessed does not exist. You can send notifications.
  • the first program 210 may provide a notification indicating that there is no data access right to the user through the user interface.
  • the third program 230 generates a transaction based on the execution result.
  • the third program 230 may generate a transaction in which the execution result is included in the payload.
  • the third program 230 may generate a signed transaction by performing a user's signature on the transaction through the authentication manager 460 .
  • the third program 230 records the transaction in the ledger 260 .
  • the third program 230 may record the transaction in the ledger 260 by transmitting the transaction to at least one node (eg, nodes 251 and 253 ) of the decentralized network 250 .
  • the third program 230 returns the execution result to the second program 220 .
  • the execution result may include an identifier of a transaction, an execution operation, a user identifier, an execution time, or a combination thereof.
  • step 1075 the second program 220 returns an execution result to the first program 210 .
  • FIG. 11 is a flowchart illustrating a detailed operation of the electronic device 201 executing a smart contract according to an exemplary embodiment.
  • the steps of FIG. 11 may correspond to steps 1025 , 1030 , 1040 , 1050 , 1060 , and 1071 of FIG. 10 .
  • the program manager 310 identifies a code execution request.
  • the program manager 310 may identify the code execution request received from the second program 220 .
  • the code execution request may include identification information of the smart contract.
  • step 1121 the program manager 310 sends a code execution request to the state machine 410 of the program service module 330 .
  • step 1123 state machine 410 requests code information from load manager 420 .
  • load manager 420 returns code information to state machine 410 .
  • the load manager 420 may return code information retrieved based on the identification information in the mapping data to the state machine 410 .
  • the code information may include the path of the smart contract.
  • step 1127 state machine 410 requests program core module 350 to execute code.
  • the program core module 350 loads the code of the smart contract.
  • the program core module 350 may load (eg, fetch) the code of the smart contract based on the path of the smart contract.
  • step 1140 the program core module 350 executes the code.
  • the program core module 350 may access data in the memory 130 by executing the code of the smart contract.
  • the program core module 350 may access data requiring access according to the execution of the code of the smart contract.
  • the program core module 350 may acquire data for which access is requested when there is an access right to the data for which access is requested.
  • the program core module 350 may not be able to access the data for which access is requested when there is no access right to the data for which access is requested.
  • the program core module 350 In step 1150, the program core module 350 generates an execution result.
  • the execution result may be data accessed by the program core module 350 and/or encrypted data of data accessed by the program core module 350 .
  • the execution result may be a notification indicating that the third program 230 does not have the data access right.
  • step 1155 the program core module 350 returns an execution result to the transaction manager 450 of the program service module 330 .
  • the program core module 350 may return an execution result indicating data accessed by the program core module 350 to the transaction manager 450 .
  • the transaction manager 450 When the transaction manager 450 receives an execution result from the program core module 350 indicating that the three programs 230 do not have data access rights, the transaction manager 450 sends the third program 230 to the first program 210 through the second program 220 . ) can deliver a notification indicating that there is no data access right.
  • the first program 210 may provide a notification indicating that there is no data access right to the user through the user interface.
  • the transaction manager 450 creates a transaction based on the execution result.
  • the transaction manager 450 may generate a transaction in which the execution result is included in the payload.
  • the transaction manager 450 may generate a signed transaction by performing a user's signature on the transaction through the authentication manager 460 .
  • the transaction manager 450 may send the transaction to the decentralized network 250 .
  • the decentralized network 250 may record the transaction in the ledger 260 .
  • the nodes 251 and 253 of the decentralized network 250 may verify the transaction from the electronic device 201 and record the verified transaction in a new block of the ledger 260 of the decentralized network 250 .
  • the block in which the transaction from the electronic device 201 is recorded secures completeness, it may be determined that the transaction is finally recorded in the ledger 260 of the network 250 . If the block in which the transaction from the electronic device 201 is recorded is not invalidated even after a specified block generation period (eg, 40 times), it may be determined that the transaction is finally recorded in the ledger 260 of the network 250 . .
  • the transaction manager 450 may identify a transaction identifier (eg, a hash value of a transaction).
  • a transaction identifier eg, a hash value of a transaction.
  • the transaction manager 450 may return a transaction identifier (eg, a hash value of a transaction) to the program manager 310 .
  • a transaction identifier eg, a hash value of a transaction
  • the transaction manager 450 may transmit the identifier of the transaction obtained by hashing the transaction to the program manager 310 before the transaction is recorded in the ledger 260 of the decentralized network 250 .
  • the transaction manager 450 may transmit the identifier of the transaction to the program manager 310 after the transaction is recorded in the ledger 260 of the decentralized network 250 .
  • the program manager 310 may return an execution result.
  • the program manager 310 may return an execution result to the second program 220 .
  • the execution result may include an identifier of a transaction, an execution operation, a user identifier, an execution time, or a combination thereof.
  • FIG. 12 illustrates user interfaces 1210 , 1230 , and 1250 of the electronic device 201 according to an embodiment of the present disclosure.
  • the electronic device 201 may execute a first program 210 for controlling an external device (eg, a car).
  • the electronic device 201 may display the user interface 1210 based on the execution result of the first program 210 .
  • the electronic device 201 may execute an instance of the third program 210 for controlling the external device.
  • the third program 230 may load a code of a smart contract for controlling an external device.
  • the electronic device 201 may identify an input 1211 on the user interface 1210 .
  • the input 1211 may be an input for confirming a controllable function with respect to an external device.
  • the electronic device 201 may display a user interface 1230 including an object 1231 representing a controllable function with respect to an external device.
  • the object 1231 representing a controllable function for the device may be a pop-up window.
  • Controllable functions for the device include vehicle access (eg, the ability to open a car door), an engine start function, a sharing function (eg, a key-sharing function), or a combination thereof. can do.
  • the electronic device 201 may identify an input for selecting one of controllable functions for the device.
  • the electronic device 201 may display a user interface 1250 capable of executing a function in response to a function selection input.
  • the electronic device 201 may execute the code of the smart contract corresponding to the function.
  • the electronic device 201 may acquire data (eg, an electronic key) related to a function of an external device (eg, a car) from the memory 130 through the third program 230 . .
  • the electronic device 201 stores, through the third program 230 , information of an application requesting access to data (eg, an electronic key) related to a function of an external device (eg, a car) into a memory ( 130) can be obtained.
  • the electronic device 201 stores, through the third program 230 , information of a user who requests access to data (eg, an electronic key) related to a function of an external device (eg, a car) into a memory ( 130) can be obtained.
  • data eg, an electronic key
  • an external device e.g, a car
  • the electronic device 201 may generate a transaction including the obtained data as a payload.
  • the electronic device 201 may perform a user's signature on the generated transaction.
  • the electronic device 201 may transmit the signed transaction to the decentralized network 250 .
  • the information included in the transaction may include data (eg, electronic key) related to a function of an external device (eg, car), information of an application requesting access, information of a user, information of a function, or a combination thereof.
  • the electronic device 201 may display the execution result 1255 of the code of the smart contract on the user interface 1250 .
  • the electronic device 201 may execute the first program 210 for sharing the user's personal information (eg, personal health record (PHR)) with the external electronic device.
  • PHR personal health record
  • the electronic device 201 may identify the user's shared input.
  • the electronic device 201 may execute the code of the smart contract corresponding to the shared input.
  • the electronic device 201 may acquire the user's personal information from the memory 130 through the third program 230 in response to the sharing input.
  • the electronic device 201 may acquire personal information selected from the user's personal information based on a shared input from the memory 130 .
  • the electronic device 201 may encrypt the obtained data.
  • the electronic device 201 may generate a transaction including encrypted data as a payload.
  • the electronic device 201 may perform a user's signature on the generated transaction.
  • the electronic device 201 may transmit the signed transaction to the decentralized network 250 .
  • the electronic device 201 may issue an authentication means to enable viewing of the encrypted personal information included in the transaction to an external electronic device requesting the viewing of personal information. there is.
  • the external electronic device may view encrypted personal information included in the transaction by using an authentication means through the first program 210 of the external electronic device.
  • the number of times the external electronic device reads personal information may be recorded in a block of the decentralized network 250 .
  • the electronic device 201 may identify the number of times the external electronic device reads personal information through the decentralized network 250 .
  • the electronic device 201 may limit the viewing of personal information of the external electronic device by invalidating the authentication means issued to the external electronic device.
  • An electronic device includes a communication circuit, a processor electrically connected to the communication circuit, and a memory electrically connected to the processor and storing instructions, wherein the instructions are performed by the processor
  • the portable electronic device executes a first smart contract, and by executing the first smart contract, obtains at least some data of the data stored in the memory, and generates a transaction including the at least some data and, sign the generated transaction based on a private key of the user of the portable electronic device, and transmit the signed transaction to at least one node of a decentralized network through the communication circuit.
  • the portable electronic device When the instructions are executed by the processor, the portable electronic device obtains an input through an application executed in a first execution environment, and based on the input, in a second execution environment that is distinguished from the first execution environment. , identify the first smart contract among at least one executable program code, and execute the identified first smart contract.
  • the at least some data may be stored in an area of the memory managed in the first execution environment.
  • the application may be configured to set an access right to the data stored in the memory for the second execution environment.
  • the portable electronic device When the instructions are executed by the processor, the portable electronic device provides identification information on the transaction generated in the second execution environment to the application, and the application responds to the generated transaction through a user interface. It may be configured to provide identification information for the user.
  • the instructions may be configured such that, when executed by the processor, the portable electronic device provides the user with an operation operation, execution time, or a combination thereof of the first smart contract through the user interface.
  • the first smart contract may be obtained from the at least one node.
  • the first smart contract may be recorded in the ledger of the decentralized network.
  • the at least some data may be included in the transaction after being encrypted.
  • the at least one node may be portable by a user.
  • the signed transaction may be transmitted to the at least one node that is portable by a user.
  • the at least one node may be a smartphone.
  • the instructions when executed by the processor, may be configured to cause the portable electronic device to transmit the signed transaction to the at least one nodes over a cellular network using the communication circuitry.
  • the transaction may be transmitted to the at least one node after being verified by the portable electronic device.
  • the method of operating an electronic device includes an operation of executing a first smart contract, an operation of acquiring at least some data of data stored in the memory by executing the first smart contract, the at least generating a transaction including some data, signing the generated transaction based on a private key of a user of the portable electronic device, and decentralizing the signed transaction through a communication circuit of the portable electronic device and transmitting to at least one node of the network.
  • the at least some data may be stored in an area of the memory managed in the first execution environment.
  • the application may be configured to set an access right to the data stored in the memory for the second execution environment.
  • the application may include the operation of providing identification information on the created transaction to the user through a user interface.
  • It may be configured to provide the user with the execution operation, execution time, or a combination thereof of the first smart contract through the user interface.
  • the first smart contract may be obtained from the at least one node.
  • the first smart contract may be recorded in the ledger of the decentralized network.
  • the at least some data may be included in the transaction after being encrypted.
  • the portable electronic device may be configured to operate as a node of the decentralized network, and the at least one node may be portable by a user.
  • the signed transaction may be transmitted to the at least one node that is portable by a user.
  • the at least one node may be a smartphone.
  • Transmitting the signed transaction to the at least one nodes may include transmitting the signed transaction to the at least one nodes via a cellular network using the communication circuitry.
  • the transaction may be transmitted to the at least one node after being verified by the portable electronic device.
  • the electronic device may be a device of various types.
  • Electronic devices may include, for example, portable communication devices (eg, smart phones), computer devices, notebook computers, netbooks, laptops, tablet PCs, portable multimedia devices, portable medical devices, cameras, wearable devices, or consumer electronics devices. there is.
  • portable communication devices eg, smart phones
  • computer devices notebook computers, netbooks, laptops, tablet PCs
  • portable multimedia devices portable medical devices, cameras, wearable devices, or consumer electronics devices.
  • portable medical devices e.g., portable medical devices, cameras, wearable devices, or consumer electronics devices.
  • first, second, or first or second may be used simply to distinguish an element from other elements in question, and may refer elements to other aspects (e.g., importance or order) is not limited. It is said that one (eg, first) component is “coupled” or “connected” to another (eg, second) component, with or without the terms “functionally” or “communicatively”. When referenced, it means that one component can be connected to the other component directly (eg by wire), wirelessly, or through a third component.
  • module used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, for example, and interchangeably with terms such as logic, logic block, component, or circuit.
  • a module may be an integrally formed part or a minimum unit or a part of the part that performs one or more functions.
  • the module may be implemented in the form of an application-specific integrated circuit (ASIC).
  • ASIC application-specific integrated circuit
  • one or more instructions stored in a storage medium may be implemented as software (eg, the program 140) including
  • the processor eg, the processor 120
  • the device eg, the electronic device 101
  • the one or more instructions may include code generated by a compiler or code executable by an interpreter.
  • the device-readable storage medium may be provided in the form of a non-transitory storage medium.
  • 'non-transitory' only means that the storage medium is a tangible device and does not contain a signal (eg, electromagnetic wave), and this term refers to the case where data is semi-permanently stored in the storage medium and It does not distinguish between temporary storage cases.
  • a signal eg, electromagnetic wave
  • Computer program products may be traded between sellers and buyers as commodities.
  • the computer program product is distributed in the form of a machine-readable storage medium (eg compact disc read only memory (CD-ROM)), or via an application store (eg Play StoreTM) or on two user devices ( It can be distributed (eg downloaded or uploaded) directly between smartphones (eg: smartphones) and online.
  • a machine-readable storage medium such as a memory of a server of a manufacturer, a server of an application store, or a relay server.
  • each component eg, a module or a program of the above-described components may include a singular or a plurality of entities, and some of the plurality of entities may be separately disposed in other components. .
  • one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added.
  • a plurality of components eg, a module or a program
  • the integrated component may perform one or more functions of each component of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. .
  • operations performed by a module, program, or other component are executed sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations are executed in a different order, omitted, or , or one or more other operations may be added.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Finance (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Telephone Function (AREA)

Abstract

휴대용 전자 장치 및 이의 방법이 개시된다. 휴대용 전자 장치는 통신 회로, 프로세서, 및 인스트럭션들을 저장하는 메모리를 포함한다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시, 휴대용 전자 장치가, 제1 스마트 컨트랙트를 실행하고, 상기 제1 스마트 컨트랙트를 실행함에 의해, 상기 메모리에 저장된 데이터의 적어도 일부 데이터를 획득하고, 상기 적어도 일부 데이터를 포함하는 트랜잭션을 생성하고, 상기 휴대용 전자 장치의 사용자의 개인 키에 기반하여 상기 생성된 트랙잭션에 대해 서명하고, 상기 통신 회로를 통해 상기 서명된 트랜잭션을 탈중앙화 네트워크의 적어도 하나의 노드로 전송하도록 구성된다.

Description

내부 데이터가 포함된 트랜잭션을 생성하는 전자 장치 및 이의 동작 방법
본 개시의 실시 예들은, 일반적으로 내부 데이터가 포함된 트랜잭션을 생성하는 전자 장치 및 이의 동작 방법에 관한 것이다.
블록체인 기술은 원장(ledger)을 다수의 노드들이 공유하고, 다양한 합의 메커니즘(consensus mechanism)에 기초하여 노드들의 계산 과정을 통해 생성된 블록을 원장에 기록함으로써, 데이터 및 정보의 탈중앙화(decentralization)를 가능하게 하는 기술이다.
다양한 합의 메커니즘에 기초하여 원장이 갱신되고, 원장이 다수의 노드들에 의해 공유되기 때문에 한번 원장에 기록된 데이터는 위조 또는 변조가 불가능하다.
또한, 다수의 노드들이 원장을 보관하기 때문에, 원장에 기록된 모든 트랜잭션은 누구에게나 이용 가능하다 있다.
블록체인 기술은 원장에 기록된 트랜잭션의 무결성은 보장할 수 있지만, 트랜잭션에 포함된 데이터의 진위 여부를 보장해주지는 않는다. 따라서, 트랜잭션에 포함되는 데이터의 무결성을 보장할 수 있는 기법이 필요하다.
또한, 모바일 단말이 데이터의 생산, 소비, 및/또는 유통에 종종 이용된다. 모바일 단말에 적용될 블록체인 기술 및/또는 플랫폼은 모바일 단말에서 생산, 소비, 및/또는 유통되는 데이터의 특성을 고려하여야 한다. 또한, 모바일 단말에 적용될 블록체인 기술 및/또는 플랫폼은 개발자들에게 프로그램을 개발하기에 편리한 수단을 제공하고, 관리자에게 플랫폼 관리의 비용을 절감시켜야 한다.
본 개시의 실시 예에 따르면, 전자 장치 및 이의 동작 방법은, 트랜잭션의 생성 시점에 트랙잭션으로부터 획득된 전자 장치의 데이터를 트랜잭션에 포함시킬 수 있다.
본 개시의 일 양태에 따르면, 휴대용 전자 장치는, 통신 회로, 상기 통신 회로와 전기적으로 연결된 프로세서, 및 상기 프로세서와 전기적으로 연결되고, 인스트럭션들을 저장하는 메모리를 포함한다. 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시, 상기 휴대용 전자 장치가, 제1 스마트 컨트랙트를 실행하고, 상기 제1 스마트 컨트랙트를 실행함에 의해, 상기 메모리에 저장된 데이터의 적어도 일부 데이터를 획득하고, 상기 적어도 일부 데이터를 포함하는 트랜잭션을 생성하고, 상기 휴대용 전자 장치의 사용자의 개인 키에 기반하여 상기 생성된 트랙잭션에 대해 서명하고, 상기 통신 회로를 통해 상기 서명된 트랜잭션을 탈중앙화 네트워크의 적어도 하나의 노드로 전송하도록 한다.
본 개시의 일 양태에 따르면, 휴대용 전자 장치의 전자 장치의 동작 방법은, 제1 스마트 컨트랙트를 실행하는 동작, 상기 제1 스마트 컨트랙트를 실행함에 의해, 상기 메모리에 저장된 데이터의 적어도 일부 데이터를 획득하는 동작, 상기 적어도 일부 데이터를 포함하는 트랜잭션을 생성하는 동작, 상기 휴대용 전자 장치의 사용자의 개인 키에 기반하여 상기 생성된 트랙잭션에 대해 서명하는 동작, 및 상기 휴대용 전자 장치의 통신 회로를 통해 상기 서명된 트랜잭션을 탈중앙화 네트워크의 적어도 하나의 노드로 전송하는 동작을 포함할 수 있다.
본 개시의 일 실시 예에 따르면, 전자 장치 및 이의 동작 방법은, 트랜잭션의 생성 시점에 획득된 전자 장치의 데이터를 트랜잭션에 포함시킬 수 있다.
본 개시의 임의 실시 예들의 상술하거나 다른 양상들, 특징들, 및 이점들은 첨부 도면과 함께 아래에서 설명할 설명으로부터 보다 분명해질 수 있다.
도 1은 일 실시 예에 따른 네트워크 환경 내의 전자 장치를 도시한다.
도 2는 일 실시 예에 따른 전자 장치와 탈중앙화 네트워크를 도시한다.
도 3은 일 실시 예에 따른 전자 장치의 프로그램을 도시한다.
도 4는 일 실시 예에 따른 전자 장치의 프로그램 서비스 모듈을 도시한다.
도 5는 일 실시 예에 따른 전자 장치의 데이터베이스 관리 모듈과 프로그램 코어 모듈을 도시한다.
도 6은 일 실시 예에 따른 전자 장치의 동작을 나타내는 흐름도이다.
도 7은 일 실시 예에 따른 전자 장치의 사용자 인터페이스를 도시한다.
도 8은 일 실시 예에 따른 전자 장치가 스마트 컨트랙트의 코드를 로드하는 동작을 나타내는 흐름도이다.
도 9는 일 실시 예에 따른 전자 장치가 스마트 컨트랙트의 코드를 로드하는 세부 동작을 나타내는 흐름도이다.
도 10은 일 실시 예에 따른 전자 장치가 스마트 컨트랙트를 실행하는 동작을 나타내는 흐름도이다.
도 11은 일 실시 예에 따른 전자 장치가 스마트 컨트랙트를 실행하는 세부 동작을 나타내는 흐름도이다.
도 12는 일 실시 예에 따른 전자 장치의 사용자 인터페이스를 도시한다.
본 개시의 다양한 실시예들은 첨부 도면을 참조하여 설명된다. 그러나, 본 개시의 다양한 실시예들은 특정 실시 예에 국한되지 않고, 여기에서 설명되는 실시 예뜰의 수정, 균등, 및/또는 대체가 다양하게 이뤄질 수 있음을 이해해야 한다. 도면의 설명과 관련하여, 유사한 구성은 유사한 참조 번호로 나타낼 수 있다.
도 1은, 일 실시 예에 따른, 네트워크 환경(100) 내의 전자 장치(101)를 도시한다.
도 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))로 통합될 수 있다.
프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일 실시 예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일 실시 예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.
보조 프로세서(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) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다.
메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다.
프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다.
입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다.
음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일 실시 예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.
디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일 실시 예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다.
오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일 실시 예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.
센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일 실시 예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다.
인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일 실시 예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.
연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일 실시 예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.
햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일 실시 예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.
카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일 실시 예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.
전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일 실시 예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.
배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일 실시 예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.
통신 모듈(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)(예: 레거시 셀룰러 네트워크, 5th 세대(5G) 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다.
무선 통신 모듈(192)은 4th 세대(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))에 규정되는 다양한 요구사항을 지원할 수 있다. 일 실시 예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.
안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일 실시 예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일 실시 예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시 예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다.
다양한 실시 예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일 실시 예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.
상기 구성요소들 중 적어도 일부는 주변 기기들 간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.
일 실시 예에 따르면, 명령 또는 데이터는 제 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 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다.
도 2는 일 실시 예에 따른 전자 장치(201)와 탈중앙화 네트워크(250)를 도시한다.
도 2를 참조하면, 탈중앙화 네트워크(250)(예: 이더리움(ethereum) 네트워크)는 다수의 노드들(251, 253), 원장(260), 및 가상 머신(270)으로 구성될 수 있다. 탈중앙화 네트워크(250)는 다수의 노드들(251, 253)에 의해 연결되는 P2P(peer-to-peer) 네트워크일 수 있다.
다수의 노드들(251, 253)은 탈중앙화 네트워크(250)에서 이용되는 합의 매커니즘(예: 지분 증명(PoS; proof of stake), 작업 증명(PoW; proof of work) 연산)을 위한 연산을 수행할 수 있는 전자 장치일 수 있다. 탈중앙화 네트워크(250)에 참여 중인 모든 노드들(251, 253) 중 일부 노드는 합의 매커니즘에 참여하지 않을 수 있다.
다수의 노드들(251, 253)은 사용자에 의해 휴대가 가능한 전자 장치일 수 있다. 다수의 노드들(251, 253)은 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 노트북, 넷북, 랩탑, 태블릿 PC, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 또는 웨어러블 장치를 포함할 수 있다. 원장(260)은 다수의 블록들이 서로 연결된 데이터 구조를 가질 수 있다. 다수의 블록들 각각은 이전 블록의 정보(예: 해시 값)를 포함함으로써, 다수의 블록들이 서로 연결된 데이터 구조를 가질 수 있다. 다수의 블록들 각각은 다수의 트랜잭션들을 포함할 수 있다.
트랜잭션은 지정된 종류의 계정(예: 외부 소유 계정(EOA; externally owned account))에 의해 서명된 메시지일 수 있다. 트랜잭션은 속성 값(예: nonce), 처리 비용(예: gasPrice, gasLimit), 목적지 계정, 송금량, 페이로드(또는, 데이터), 서명(예: ECDSA(elliptic curve digital signature algorithm)에 따른 서명), 또는 이들의 조합을 포함할 수 있다.
원장(260)은 노드들(251, 253)에 공유될 수 있다. 노드들(251, 253) 중 일부 노드는 원장(260)의 일부만을 저장할 수 있다.
스마트 컨트랙트(261)는 가상 머신(270)을 통해 실행 가능한 프로그램 코드를 포함할 수 있다. 스마트 컨트랙트(261)는 트랜잭션의 한 종류일 수 있다.
가상 머신(270)(예: 이더리움 가상 머신(EVM; ethereum virtual machine)은 탈중앙화 네트워크(250)에서의 상태 변화(예: 원장(260)의 갱신), 스마트 컨트랙트(261)의 실행을 위한 연산을 수행하는 가상 머신일 수 있다. 가상 머신(270)은 다수의 노드들(251, 253)에 의해 수행되는 연산에 기반하는 머신일 수 있다. 가상 머신(270)의 최신 상태는 다수의 노드들(251, 253)에 의해 공유될 수 있다.
전자 장치(201)는 도 1의 전자 장치(101)에 대응할 수 있다. 전자 장치(201)는 탈중앙화 네트워크(250)의 노드 및/또는 탈중앙화 네트워크(250)의 참여자(예: 외부 소유 계정)로서 동작할 수 있다.
전자 장치(201)는 프로세서(120), 메모리(130), 및 통신 모듈(190)을 포함할 수 있다.
메모리(130)는 제1 프로그램(210), 제2 프로그램(220), 및 제3 프로그램(230)을 저장할 수 있다. 메모리(130)는 원장(240)을 저장할 수 있다. 원장(240)은 스마트 컨트랙트(241)를 포함할 수 있다. 원장(240)은 원장(260)의 사본일 수 있다. 원장(240)은 원장(260)의 다수의 블록들 중 적어도 일부 블록들에 대한 정보를 포함할 수 있다. 스마트 컨트랙트(241)는 스마트 컨트랙트(261)와 동일할 수 있다. 스마트 컨트랙트(241)는 원장(260)의 다수의 스마트 컨트랙트들(261) 중 일부 스마트 컨트랙트일 수 있다.
제1 프로그램(210)은 도 1의 어플리케이션(146)에 대응할 수 있다. 제1 프로그램(210)은 도 1의 운영 체제(142)가 제공하는 실행 환경에서 실행되는 프로그램일 수 있다.
제1 프로그램(210)은 사용자 인터페이스(user interface)를 통해 사용자와 상호작용할 수 있다. 제1 프로그램(210)은 사용자 인터페이스를 통해 식별되는 사용자 입력에 기반한 명령을 다른 프로그램(예: 제2 프로그램(220), 제3 프로그램(230))을 통해 처리할 수 있다. 제1 프로그램(210)은 다른 프로그램을 통해 처리된 결과를 사용자 인터페이스를 통해 사용자에게 제공할 수 있다.
제1 프로그램(210)은 제3 프로그램(230)의 메모리(130)에 대한 접근 권한을 설정하기 위한 기능을 제공할 수 있다. 제1 프로그램(210)은 제3 프로그램(230)의 메모리(130)에 대한 접근 권한을 설정하기 위한 사용자 인터페이스를 제공할 수 있다.
제1 프로그램(210)은 사용자 인터페이스를 통한 사용자 입력에 응답하여 제3 프로그램(230)에게 접근 권한을 설정하기 위한 정보를 제공할 수 있다. 사용자 입력은 사용자 인터페이스 상의 제3 프로그램(230)의 다수의 접근 권한들 중 하나를 선택하는 터치 입력일 수 있다.
제3 프로그램(230)은 운영 체제(142)가 관리하는 메모리(130)의 메모리 영역에 대한 접근 권한을 설정할 수 있다. 제3 프로그램(230)은 제1 프로그램(210)의 정보에 기반하여, 운영 체제(142)가 관리하는 메모리(130)의 메모리 영역에 대한 접근 권한을 설정할 수 있다. 제3 프로그램(230)은 메모리(130)에 저장된 데이터 중 지정된 조건에 부합하는 데이터에 대한 접근만을 허용하도록 설정할 수 있다. 제3 프로그램(230)은 메모리(130)에 저장된 데이터에 대한 접근을 허용하지 않을 수 있다. 제3 프로그램(230)에 대해 접근 권한이 설정되는 데이터는 메모리(130)의 데이터 중 제1 프로그램(210)의 실행 환경에서 관리되는 메모리 영역 내의 데이터일 수 있다. 제3 프로그램(230)에 대해 접근 권한이 설정되는 데이터는 단말의 식별자(예: MSISDN(mobile station international subscriber directory number), IMSI(international mobile subscriber identity), IMEI(international mobile station equipment identity), ICCID(integrated circuit card identifier)), 단말에서 생성되는 정보(예: 현재 위치, 현재 시간), 메모리(130)의 데이터에 대한 접근 정보(예: 정보를 읽기(read), 쓰기(write), 수정하기(modify), 지우기(erase)), 보안 정보(예: 생체 정보), 개인 정보(사용자 ID(identity)), 단말에서 생성되는 데이터, 단말에 저장된 데이터, 또는 이들의 조합을 포함할 수 있다. 단말에서 생성되는 데이터는 이미지(예: 카메라 모듈(180)을 통해 획득된 이미지), 영상(예: 카메라 모듈(180)을 통해 획득된 영상), 텍스트(예: 입력 모듈(150)을 통해 획득된 텍스트), 또는 이들의 조합을 포함할 수 있다. 단말에 저장된 데이터는 외부의 전자 장치를 통해 획득된 데이터(예: 건강 기록(PHR; personal health record), 생체 정보 측정 데이터)를 포함할 수 있다.
상대적으로 높은 보안성을 요구하는 트랜잭션(예: 암호 화폐 거래, 보안 정보에 대한 입증, 자동차의 전자 키의 사용) 생성을 위한 스마트 컨트랙트의 실행이 요구되는 경우, 제3 프로그램(230)이 메모리(130)에 저장된 데이터에 대해 모두 접근 가능하도록 제3 프로그램(230)의 접근 권한은 상대적으로 높게 설정될 수 있다.
상대적으로 낮은 보안성을 요구하는 트랜잭션(예: 암호 화폐 거래 내역, 보안 정보의 사용 내역, 자동차의 전자 키의 사용 내용) 생성을 위한 스마트 컨트랙트의 실행이 요구되는 경우, 제3 프로그램(230)이 메모리(130)에 저장된 데이터 중 지정된 데이터(예: 단말에서 생성되는 정보)에 대해서만 접근 가능하도록 제3 프로그램(230)의 접근 권한은 상대적으로 낮게 설정될 수 있다.
보안성과 관련 없는 트랜잭션 생성을 위한 스마트 컨트랙트의 실행이 요구되는 경우, 제3 프로그램(230)의 메모리(130)에 대한 접근이 허용되지 않도록 설정될 수 있다.
제2 프로그램(220)은 제1 프로그램(210)과 제3 프로그램(230) 간의 인터페이스(또는, 통신)를 제공할 수 있다. 제2 프로그램(220)은 제1 프로그램(210)의 데이터를 제3 프로그램(230)에서 처리 가능한 데이터로 변환하거나, 제3 프로그램(230)의 데이터를 제1 프로그램(210)에서 처리 가능한 데이터로 변환할 수 있다.
제2 프로그램(220)은 제1 프로그램(210)의 요청에 기반하여 제3 프로그램(230)의 인스턴스(instance)를 생성할 수 있다. 제2 프로그램(220)이 제3 프로그램(230)의 인스턴스를 생성함으로써, 제3 프로그램(230)은 메모리(130)에 로드될 수 있다.
제3 프로그램(230)은 운영 체제(142)가 제공하는 실행 환경과 구분되는 실행 환경에서 실행되는 프로그램(예: 에뮬레이터)일 수 있다. 제3 프로그램(230)은 스마트 컨트랙트의 코드의 실행 환경을 제공할 수 있다.
도 3은 일 실시 예에 따른 전자 장치(201)의 프로그램들(210, 220, 및 230)을 도시한다.
도 3을 참조하면, 제3 프로그램(230)은 프로그램 매니저(310), 프로그램 서비스 모듈(330), 프로그램 코어 모듈(350), 및 데이터베이스 관리 모듈(370)을 포함한다.
도 4는 일 실시 예에 따른 전자 장치(201)의 프로그램 서비스 모듈(330)을 도시한다.
도 4를 참조하면, 프로그램 서비스 모듈(330)은, 상태 머신(410), 로드 매니저(420), 설정 매니저(430), 코어 네이티브(440), 트랜잭션 매니저(450), 인증 매니저(460), 스텁(470), 이벤트 매니저(480), 또는 이들의 조합을 포함한다. 상태 머신(410)은, 설정 매니저(430)를 통해 획득되는 설정 정보에 기반하여 제3 프로그램(230)의 접근 권한의 설정을 수행할 수 있다. 스텁(470)은 다른 어플리케이션의 일부 기능의 결과 값을 제공할 수 있다.
도 5는 일 실시 예에 따른 전자 장치(201)의 데이터베이스 관리 모듈(370) 및 프로그램 코어 모듈(350)을 도시한다.
도 5를 참조하면, 프로그램 코어 모듈(350)은, 코어 매니저(510), 인터프리터(520), 커넥터(530), 또는 이들의 조합을 포함한다.
제3 프로그램(230)의 프로그램 매니저(310)는 제2 프로그램(220)을 통해 제1 프로그램(210)과 통신을 수행할 수 있다.
프로그램 매니저(310)는 제1 프로그램(210)의 스마트 컨트랙트의 코드에 대한 확인 요청을 수신할 수 있다. 확인 요청은 스마트 컨트랙트의 코드에 대한 식별자 및 스마트 컨트랙트의 코드에 대한 버전을 포함할 수 있다.
프로그램 매니저(310)는 메모리(130)에서 확인 요청에 대응하는 스마트 컨트랙트를 검색하고, 사상 데이터(map data)에서 요청된 코드에 대한 식별자를 검색할 수 있다.
프로그램 매니저(310)는 검색 결과를 제1 프로그램(210)에게 리턴할 수 있다. 검색 결과는 스마트 컨트랙트의 유무, 또는 검색된 스마트 컨트랙트의 버전 정보를 포함할 수 있다.
프로그램 매니저(310)는 제1 프로그램(210)의 스마트 컨트랙트의 코드에 대한 로드 요청을 수신할 수 있다. 로드 요청은 스마트 컨트랙트의 코드에 대한 식별자, 또는 스마트 컨트랙트의 버전 정보를 포함할 수 있다.
프로그램 매니저(310)는 사상 데이터(map data)에서 요청된 코드에 대한 식별자 및/또는 버전 정보를 검색할 수 있다. 또한, 프로그램 매니저(310)는 사상 데이터에서 요청된 코드에 대한 식별자를 검색하지 않고, 스마트 컨트랙트의 코드에 대한 로드 요청을 프로그램 서비스 모듈(330)에게 전달할 수 있다.
프로그램 매니저(310)는 식별자 및/또는 버전 정보가 검색되면, 리턴 값(예: 로드 성공)을 제2 프로그램(220)을 통해 제1 프로그램(210)에게 제공할 수 있다.
프로그램 매니저(310)는 식별자가 검색되지 않으면, 스마트 컨트랙트의 코드에 대한 로드 요청을 프로그램 서비스 모듈(330)에게 전달할 수 있다.
프로그램 서비스 모듈(330)의 상태 머신(410)은 프로그램 매니저(310)의 로드 요청에 응답하여, 로드 매니저(420)에게 코드 로드를 요청할 수 있다.
로드 매니저(420)는 코드에 대한 식별자에 기반하여 스마트 컨트랙트의 코드를 메모리(130)에서 로드할 수 있다. 로드 매니저(420)는 코드에 대한 식별자에 기반하여 스마트 컨트랙트의 코드를 다운로드하고, 네트워크를 통해 스마트 컨트랙트의 코드를 다운로드할 수 있다.
로드 매니저(420)는 로드(또는, 다운로드)된 스마트 컨트랙트의 코드의 식별자와 저장 경로 정보를 사상하여(mapping) 메모리(130)에 저장할 수 있다. 로드 매니저(420)는 스마트 컨트랙트의 코드의 식별자와 정보 간의 사상 데이터를 저장하기 전, 스마트 컨트랙트의 무결성을 검증하고, 로드(또는, 다운로드)된 스마트 컨트랙트의 경로를 획득할 수 있다.
로드 매니저(420)는 상태 머신(410)에게 로드 성공을 리턴할 수 있다.
상태 머신(410)은 이벤트 매니저(480)를 통해 프로그램 매니저(310)에게 로드 성공을 리턴할 수 있다.
프로그램 매니저(310)는 제1 프로그램(210)의 코드 실행 요청을 수신할 수 있다. 코드 실행 요청은 스마트 컨트랙트의 코드에 대한 식별자, 버전 정보, 실행 기능에 대한 정보, 실행 기능과 관련된 파라미터 또는 이들의 조합을 포함할 수 있다.
프로그램 매니저(310)는 제1 프로그램(210)의 코드 실행 요청을 프로그램 서비스 모듈(330)에게 전달할 수 있다.
상태 머신(410)은 로드 매니저(420)에게 코드 정보를 요청할 수 있다. 코드 정보의 요청은 스마트 컨트랙트의 코드에 대한 식별자를 포함할 수 있다.
로드 매니저(420)는 코드 정보의 요청에 응답하여 코드 정보를 상태 머신(410)에게 리턴할 수 있다.
상태 머신(410)은 코어 네이티브(440)를 통해 프로그램 코어 모듈(350)에게 스마트 컨트랙트의 코드 실행을 요청할 수 있다. 코어 네이티브(440)는 라이브러리로 지칭될 수 있다.
프로그램 코어 모듈(350)의 코어 매니저(510)는 스마트 컨트랙트의 코드를 로드(또는, 페치(fetch))할 수 있다. 코어 매니저(510)는 스마트 컨트랙트의 저장 경로에 기반하여 스마트 컨트랙트의 코드를 로드할 수 있다.
프로그램 코어 모듈(350)의 인터프리터(520)는 코드를 실행할 수 있다.
인터프리터(520)는 스마트 컨트랙트의 코드를 실행함으로써, 메모리(130)의 데이터에 접근할 수 있다. 인터프리터(520)는 스마트 컨트랙트의 코드의 실행에 따라 접근이 요구되는 데이터에 접근할 수 있다.
인터프리터(520)는 접근이 요구되는 데이터에 대한 접근 권한이 존재하는 경우, 접근이 요구되는 데이터를 획득할 수 있다. 인터프리터(520)는 접근이 요구되는 데이터에 접근 권한이 존재하지 않는 경우, 접근이 요구되는 데이터에 접근하지 못할 수 있다.
인터프리터(520)는 스마트 컨트랙트의 코드의 실행 결과를 코어 매니저(510)에게 전달할 수 있다. 인터프리터(520)는 획득된 데이터를 코어 매니저(510)에게 전달할 수 있다. 접근이 요구되는 데이터에 접근하지 못한 경우, 인터프리터(520)는 데이터 접근 권한이 없음을 코어 매니저(510)에게 전달할 수 있다.
코어 매니저(510)는 실행 결과를 프로그램 서비스 모듈(330)의 트랜잭션 매니저(450)에게 전달할 수 있다. 코어 매니저(510)는 획득된 데이터를 트랜잭션 매니저(450)에게 전달할 수 있다. 코어 매니저(510)는 획득된 데이터를 암호화하고, 암호화된 데이터를 트랜잭션 매니저(450)에게 전달할 수 있다. 획득된 데이터가 상대적으로 높은 보안성을 요구하는 경우, 코어 매니저(510)는 획득된 데이터를 암호화하고, 암호화된 데이터를 트랜잭션 매니저(450)에게 전달할 수 있다. 코어 매니저(510)는 데이터 접근 권한이 없음을 트랜잭션 매니저(450)에게 전달할 수 있다.
트랜잭션 매니저(450)는 프로그램 코어 모듈(350)로부터의 실행 결과를 처리할 수 있다. 프로그램 코어 모듈(350)이 데이터를 획득한 경우, 트랜잭션 매니저(450)는 프로그램 코어 모듈(350)로부터의 데이터에 기반하여 트랜잭션을 생성할 수 있다. 트랜잭션 매니저(450)는 프로그램 코어 모듈(350)이 데이터 접근 권한이 없음을 통보한 경우, 프로그램 코어 모듈(350)로부터의 실행 결과를 상태 머신(410)에게 전달할 수 있다.
트랜잭션 매니저(450)는 프로그램 코어 모듈(350)로부터의 실행 결과, 및/또는 프로그램 코어 모듈(350)이 획득한 데이터에 기반하여 트랜잭션을 생성할 수 있다. 트랜잭션 매니저(450)는 프로그램 코어 모듈(350)이 획득한 데이터를 페이로드로 포함하는 트랜잭션을 생성할 수 있다.
트랜잭션 매니저(450)는 생성된 트랜잭션을 인증 매니저(460)를 통해 서명을 수행할 수 있다. 인증 매니저(460)는 사용자로부터의 인증(예: 생체 인증, PIN(personal identification number) 입력을 통한 인증, 패턴 입력을 통한 인증)이 완료되면, 사용자의 개인 키에 기반하여 트랜잭션에 대해 서명할 수 있다.
트랜잭션 매니저(450)는 트랜잭션을 해시한 값과, 트랜잭션의 서명을 공개키로 복호한 값을 비교함으로써, 서명된 트랜잭션을 검증할 수 있다.
트랜잭션 매니저(450)는 서명된 트랜잭션을 검증한 후 서명된 트랜잭션을 탈중앙화 네트워크(250)의 적어도 하나의 노드에게 송신할 수 있다. 트랜잭션 매니저(450)는 서명된 트랜잭션을 통신 모듈(190)을 이용하여 셀룰러 네트워크(예: 제 2 네트워크(199)(예: 4G 네트워크, 5G 네트워크))를 통해 적어도 하나의 노드(예: 노드(251), 노드(253))에게 송신할 수 있다.
트랜잭션 매니저(450)는 서명된 트랜잭션의 식별자(예: 트랜잭션 해시 값)를 상태 머신(410)에게 리턴할 수 있다. 트랜잭션 매니저(450)는 트랜잭션의 내용(예: 수행 동작, 사용자 식별자, 수행 시간, 또는 이들의 조합)을 상태 머신(410)에게 리턴할 수 있다.
상태 머신(410)은 이벤트 매니저(480)를 통해 프로그램 매니저(310)에게 수행 결과를 리턴할 수 있다. 트랜잭션이 생성된 경우, 수행 결과는 트랜잭션의 식별자, 수행 동작, 사용자 식별자, 수행 시간, 또는 이들의 조합을 포함할 수 있다. 접근이 요구되는 데이터에 대해 접근 권한이 없는 경우, 수행 결과는 접근 권한이 없다는 통지일 수 있다.
프로그램 매니저(310)는 제2 프로그램(220)을 통해 제1 프로그램(210)에게 수행 결과를 리턴할 수 있다.
제1 프로그램(210)은 수행 결과를 사용자 인터페이스를 통해 사용자에게 제공할 수 있다.
데이터베이스 관리 모듈(370)은, 데이터베이스 매니저(540), 원장(240), 데이터베이스(560), 관계형 데이터베이스(570), 또는 이들의 조합을 포함할 수 있다.
데이터베이스 매니저(540)는 원장(240)을 최신 상태로 유지하고, 데이터베이스(560)를 관리할 수 있다.
데이터베이스 매니저(540)는 프로그램 코어 모듈(350)의 요청에 응답하여, 데이터베이스(560)에서 관리되는 데이터를 코어 매니저(510)에게 제공할 수 있다. 데이터베이스 매니저(540)는 제3 프로그램(230)이 데이터베이스(560)에 대한 접근 권한이 존재하는 경우, 데이터베이스(560)에서 관리되는 데이터를 프로그램 코어 모듈(350)에게 제공할 수 있다.
원장(240)은 원장(260)과 동일할 수 있다. 원장(240)은 원장(260)의 일부만을 포함할 수 있다.
데이터베이스(560)는 메모리(130)에 저장된 데이터들의 집합일 수 있다.
관계형 데이터베이스(570)는, 상호 관련된 데이터 포인트에 대한 액세스를 저장하고 제공하는 데이터베이스(예: SQLite)일 수 있다.
도 6은 일 실시 예에 따른 전자 장치(201)의 동작을 나타내는 흐름도이다.
도 6을 참조하면, 단계 610에서, 전자 장치(201)는 모드를 설정한다. 전자 장치(201)는 사용자 입력에 기반하여 모드를 설정할 수 있다.
모드는 제3 프로그램(230)이 메모리(130)의 데이터에 접근할 수 있는 권한을 나타낼 수 있다. 모드는 제3 프로그램(230)이 운영 체제(142)가 관리하는 메모리(130)의 메모리 영역에 접근할 수 있는 권한을 나타낼 수 있다. 모드는 제3 프로그램(230)의 데이터에 대한 접근을 허용하는 모드와 접근을 허용하지 않는 모드로 구분될 수 있다. 제3 프로그램(230)의 데이터에 대한 접근을 허용하는 모드는 데이터의 서로 다른 종류에 따라 접근의 허용 여부를 달리하는 다수의 모드들을 포함할 수 있다. 데이터의 종류는 단말의 식별자, 단말에서 생성되는 정보, 단말에서 생성되는 정보의 접근 권한 정보(예: 읽기, 쓰기, 수정하기, 지우기), 보안 정보, 개인 정보, 또는 이들의 조합을 포함할 수 있다.
전자 장치(201)는 제1 프로그램(210)의 사용자 인터페이스(710)를 표시하는 동안 획득되는 사용자 입력에 기반하여 모드를 설정할 수 있다.
도 7은 일 실시 예에 따른 전자 장치(201)의 사용자 인터페이스들(710, 730)을 도시한다.
도 7을 참조하면, 전자 장치(201)는 제1 프로그램(210)의 사용자 인터페이스(710)를 표시하는 동안, 모드를 설정하기 위한 객체를 선택하는 입력(711)에 응답하여, 다수의 모드들 중 적어도 하나의 모드를 선택할 수 있는 윈도우(713)를 표시할 수 있다. 제1 모드는 제3 프로그램(230)의 접근 권한을 상대적으로 높게 설정하고, 제2 모드는 제3 프로그램(230)의 접근 권한을 상대적으로 낮게 설정하고, 제3 모드는 운영 체제(142)가 관리하는 메모리(130)의 메모리 영역에 대한 제3 프로그램(230)의 접근을 허용하지 않을 수 있다. 제1 모드, 제2 모드, 및/또는 제3는 모드는 윈도우(713)에 표시될 수 있다.
전자 장치(201)는 윈도우(713)에서 표시 중인 다수의 모드들 중 하나를 선택하는 입력(715)에 응답하여, 제3 프로그램(230)에 대해 메모리(130)의 데이터에 접근할 수 있는 권한을 설정할 수 있다.
전자 장치(201)는 제3 프로그램(230)에 대해 메모리(130)의 데이터에 접근할 수 있는 권한을 설정한 후 설정 완료를 나타내는 메시지(717)를 표시할 수 있다.
전자 장치(201)는 제3 프로그램(230)의 메모리(130)의 데이터에 접근할 수 있는 권한을 설정한 후 사용자 인터페이스(710)를 사용자 인터페이스(730)로 갱신할 수 있다. 사용자 인터페이스(730)는 제3 프로그램(230)을 통해 실행 가능한 스마트 컨트랙트의 기능을 나타낼 수 있다. 사용자 인터페이스(730)에는 제공되는 기능들에 대한 설명을 나타내는 영역(731), 기능과 관련된 객체(733, 734), 트랜잭션을 송신하기 위한 객체(735), 또는 이들의 조합을 포함할 수 있다.
다시 도 6을 참조하면, 단계 620에서, 전자 장치(201)는 스마트 컨트랙트 실행 요청을 식별한다. 전자 장치(201)는 제1 프로그램(210)의 사용자 인터페이스를 표시하는 동안 획득되는 사용자 입력에 기반하여 스마트 컨트랙트 실행 요청을 식별할 수 있다.
전자 장치(201)는 사용자 입력에 기반하여 기능과 관련된 객체의 선택을 식별하고, 다른 사용자 입력에 기반하여 트랜잭션을 송신하기 위한 객체의 선택을 식별할 수 있다. 전자 장치(201)는 트랜잭션을 송신하기 위한 객체를 선택하는 사용자 입력에 기반하여 스마트 컨트랙트 실행 요청을 식별할 수 있다.
전자 장치(201)는 사용자 인터페이스(730) 상의 “Local Storage Access Logging”와 관련된 객체(733)를 선택하는 입력과, “Send Transaction!”과 관련된 객체(735)를 선택하는 입력에 기반하여, 스마트 컨트랙트 실행 요청을 식별할 수 있다.
단계 630에서, 전자 장치(201)는 스마트 컨트랙트를 실행한다.
전자 장치(201)는 제1 프로그램(210)을 통해 지정된 API(application programming interface)를 호출함으로써, 제3 프로그램(230)을 통해 스마트 컨트랙트를 실행할 수 있다. 지정된 API에는 스마트 컨트랙트의 코드의 식별 정보, 실행 기능에 대한 식별 정보, 실행 기능과 관련된 파라미터, 또는 이들의 조합을 포함할 수 있다.
단계 640에서, 전자 장치(201)는 데이터를 획득한다. 전자 장치(201)는 제3 프로그램(230)을 통해 데이터를 획득하거나, 및/또는 제3 프로그램(230)을 통해 운영 체제(142)가 관리하는 메모리(130)의 메모리 영역에서 데이터를 획득할 수 있다.
제3 프로그램(230)이 메모리(130)에 저장된 데이터에 대한 접근 권한이 존재하는 경우, 전자 장치(201)는 제3 프로그램(230)을 통해 메모리(130)에 저장된 데이터를 획득할 수 있다.
제3 프로그램(230)이 메모리(130)에 저장된 데이터에 대한 접근 권한이 존재하지 않는 경우, 전자 장치(201)는 사용자 인터페이스(730)에 데이터 접근 권한이 존재하지 않는 다는 알림(739)을 표시할 수 있다. 전자 장치(201)는 알림(739)을 통해 현재 제3 프로그램(230)에 설정된 모드에 대한 정보(예: “first mode”)를 표시할 수 있다.
단계 650에서, 전자 장치(201)는 트랜잭션을 생성한다. 전자 장치(201)는 제3 프로그램(230)을 통해 획득된 데이터를 페이로드로 포함하는 트랜잭션을 생성할 수 있다. 트랜잭션에는 사용자의 식별 정보, 데이터 접근 시간, 및 수행 동작 정보를 포함할 수 있다.
단계 660에서, 전자 장치(201)는 트랜잭션을 전파한다. 전자 장치(201)는 제3 프로그램(230)을 통해 트랜잭션을 탈중앙화 네트워크(250)에게 전파할 수 있다.
전자 장치(201)는 트랜잭션을 전파하면, 스마트 컨트랙트의 실행 결과를 사용자 인터페이스(730)에 표시하고, 및/또는 사용자 인터페이스(730)에 전파된 스마트 컨트랙트의 내용(737)(예: 사용자의 식별 정보, 데이터 접근 시간, 및 수행 동작 정보)을 표시할 수 있다.
탈중앙화 네트워크(250)에 전송된 트랜잭션은 노드들(251, 253)의 합의 매커니즘을 통해 원장(260)의 블록에 기록될 수 있다. 트랜잭션은 원장(260)의 블록에 기록된 후 지정된 블록 생성 주기 이후 트랜잭션이 기록된 블록이 완결성(finality)을 확보하면, 원장(260)에 성공적으로 기록된 것으로 평가될 수 있다. 블록체인의 메인 스트림에 포함된 블록에 트랜잭션이 기록된 경우, 트랜잭션을 기록한 블록은 완결성을 확보한 것으로 평가될 수 있다. 트랜잭션을 기록한 블록에 연결된 블록의 개수가 많아질수록, 트랜잭션을 기록한 블록의 완결성은 높아지는 것으로 평가될 수 있다.
도 8은 일 실시 예에 따른 전자 장치(201)가 스마트 컨트랙트의 코드를 로드하는 동작을 나타내는 흐름도이다.
도 8을 참조하면, 단계 811에서, 전자 장치(201)의 제1 프로그램(210)은 제2 프로그램(220)에게 제3 프로그램 실행 요청을 송신한다. 제1 프로그램(210)은 외부 장치(예: 자동차)를 제어하기 위한 프로그램일 수 있다. 제1 프로그램(210)은 사용자의 개인 정보(예: 건강 기록)를 외부 전자 장치에 공유하기 위한 프로그램일 수 있다.
제2 프로그램(220)은 제3 프로그램(230)의 인스턴스를 생성하라는 요청에 기반하여, 제3 프로그램(230)의 인스턴스를 생성할 수 있다.
단계 815에서, 제1 프로그램(210)은 제2 프로그램(220)에게 코드 로드를 요청한다. 코드 로드 요청은 트랜잭션 코드의 식별 정보 및/또는 버전 정보를 포함할 수 있다.
단계 817에서, 제2 프로그램(220)은 제3 프로그램(230)에게 코드 로드를 요청한다. 제2 프로그램(220)은 제1 프로그램(210)의 코드 로드 요청에 응답하여, 제3 프로그램(230)에게 코드 로드를 요청할 수 있다. 제2 프로그램(220)은 제1 프로그램(210)의 코드 로드 요청을 제3 프로그램(230)에서 처리 가능한 형태로 가공하고, 가공된 코드 로드 요청을 제3 프로그램(230)에게 전달할 수 있다.
단계 820에서, 제3 프로그램(230)은 스마트 컨트랙트의 코드가 존재하는지를 식별한다. 제3 프로그램(230)은 코드 로드 요청에 응답하여, 스마트 컨트랙트의 코드가 메모리(130)에 존재하는지를 식별할 수 있다.
스마트 컨트랙트의 코드가 존재하지 않는 경우, 제3 프로그램(230)은 단계 830을 수행한다. 스마트 컨트랙트의 코드가 존재하는 경우, 제3 프로그램(230)은 단계 861을 수행한다.
단계 830에서, 제3 프로그램(230)은 스마트 컨트랙트의 코드를 다운로드한다. 제3 프로그램(230)은 네트워크(예: 노드들(251, 253), 또는 외부 서버)를 통해 스마트 컨트랙트의 코드를 다운로드할 수 있다.
단계 840에서, 제3 프로그램(230)은 다운로드된 스마트 컨트랙트의 무결성을 체크한다. 제3 프로그램(230)은 외부 서버를 이용하여 스마트 컨트랙트의 무결성을 체크할 수 있다. 외부 서버는 스마트 컨트랙트의 정보(예: 코드, 버전, 식별자)를 저장하는 서버일 수 있다.
단계 850에서, 제3 프로그램(230)은 스마트 컨트랙트의 정보를 저장한다. 제3 프로그램(230)은 스마트 컨트랙트의 식별 정보와 다른 정보(예: 저장 경로, 버전 정보)가 사상된(mapped) 정보를 저장할 수 있다.
단계 861에서, 제3 프로그램(230)은 제2 프로그램(220)에게 수행 결과를 리턴한다. 리턴되는 값은 사상 데이터(map data)를 포함할 수 있다.
단계 865에서, 제2 프로그램(220)은 제1 프로그램(210)에게 수행 결과를 리턴한다. 제2 프로그램(220)은 제3 프로그램(230)의 리턴 값을 제1 프로그램(210)에서 처리 가능한 형태로 가공하고, 가공된 리턴 값을 제1 프로그램(210)에게 전달할 수 있다.
도 9는 일 실시 예에 따른 전자 장치(201)가 스마트 컨트랙트의 코드를 로드하는 세부 동작을 나타내는 흐름도이다. 도 9의 단계들은 도 8의 단계 817, 단계 820, 단계 830, 단계 840, 단계 850, 및 단계 861에 대응할 수 있다.
도 9를 참조하면, 단계 910에서, 제3 프로그램(230)의 프로그램 매니저(310)는 코드 로드 요청을 식별한다. 프로그램 매니저(310)는 제2 프로그램(220)으로부터의 코드 로드 요청을 식별할 수 있다.
단계 920에서, 프로그램 매니저(310)는 스마트 컨트랙트의 코드가 존재하는지를 식별한다. 프로그램 매니저(310)는 스마트 컨트랙트의 식별 정보에 기초하여, 스마트 컨트랙트의 코드가 존재하는지를 식별할 수 있다. 프로그램 매니저(310)는 사상 데이터(map data)에서 스마트 컨트랙트의 식별 정보를 검색함으로써, 스마트 컨트랙트의 코드가 존재하는지를 식별할 수 있다.
스마트 컨트랙트의 코드가 존재하지 않는 경우, 프로그램 매니저(310)는 단계 931을 수행한다. 스마트 컨트랙트의 코드가 존재하는 경우, 프로그램 매니저(310)는 단계 980을 수행한다.
단계 931에서, 프로그램 매니저(310)는 프로그램 서비스 모듈(330)의 상태 머신(410)에게 코드 로드를 요청한다.
단계 935에서, 상태 머신(410)은 로드 매니저(420)에게 코드 로드를 요청한다.
단계 940에서, 로드 매니저(420)는 스마트 컨트랙트의 코드를 다운로드한다. 로드 매니저(420)는 네트워크(예: 노드(251, 253), 또는 외부 서버)를 통해 스마트 컨트랙트의 코드를 다운로드할 수 있다.
단계 950에서, 로드 매니저(420)는 다운로드된 스마트 컨트랙트의 무결성을 체크한다. 제3 프로그램(230)은 외부 서버를 이용하여 스마트 컨트랙트의 무결성을 체크할 수 있다. 외부 서버는 스마트 컨트랙트의 정보(예: 코드, 버전, 식별자)를 저장하는 서버일 수 있다.
단계 960에서, 로드 매니저(420)는 스마트 컨트랙트의 정보를 저장한다. 로드 매니저(420)는 스마트 컨트랙트의 식별 정보와 다른 정보(예: 저장 경로, 버전)가 사상된 정보를 저장할 수 있다.
단계 971에서, 로드 매니저(420)는 상태 머신(410)에게 수행 결과를 리턴한다.
단계 975에서, 상태 머신(410)은 프로그램 매니저(310)에게 수행 결과를 리턴한다. 상태 머신(410)은 이벤트 매니저(480)를 통해 프로그램 매니저(310)에게 수행 결과를 리턴할 수 있다.
단계 980에서, 프로그램 매니저(310)는 수행 결과를 리턴한다. 프로그램 매니저(310)는 제2 프로그램(220)에게 수행 결과를 리턴할 수 있다.
도 10은 일 실시 예에 따른 전자 장치(201)가 스마트 컨트랙트를 실행하는 동작을 나타내는 흐름도이다.
도 10을 참조하면, 단계 1010에서, 제1 프로그램(210)은 입력을 식별한다. 제1 프로그램(210)은 사용자 인터페이스(710)를 통해 스마트 컨트랙트의 코드 실행을 요청하는 입력을 식별할 수 있다.
단계 1021에서, 제1 프로그램(210)은 제2 프로그램(220)에게 코드 실행을 요청한다. 코드 실행 요청은 스마트 컨트랙트의 식별 정보, 버전 정보, 실행 기능에 대한 정보, 실행 기능과 관련된 파라미터 또는 이들의 조합을 포함할 수 있다.
단계 1025에서, 제2 프로그램(220)은 제3 프로그램(230)에게 코드 실행을 요청한다. 제2 프로그램(220)은 제1 프로그램(210)의 코드 실행 요청을 제3 프로그램(230)에서 처리 가능한 형태로 가공하고, 가공된 코드 실행 요청을 제3 프로그램(230)에게 전달할 수 있다.
단계 1030에서, 제3 프로그램(230)은 스마트 컨트랙트의 코드를 로드(예: 페치(fetch))한다. 제3 프로그램(230)은 사상 데이터에서 식별 정보에 기반하여 검색된 경로에 기반하여 스마트 컨트랙트의 코드를 로드할 수 있다.
단계 1040에서, 제3 프로그램(230)은 스마트 컨트랙트의 코드를 실행한다. 제3 프로그램(230)은 스마트 컨트랙트의 코드를 실행함으로써, 메모리(130)의 데이터에 접근할 수 있다. 제3 프로그램(230)은 스마트 컨트랙트의 코드의 실행에 따라 접근이 요구되는 데이터에 접근할 수 있다.
제3 프로그램(230)은 접근이 요구되는 데이터에 대한 접근 권한이 존재하는 경우, 접근이 요구되는 데이터를 획득할 수 있다.
제3 프로그램(230)은 접근이 요구되는 데이터에 접근 권한이 존재하지 않는 경우, 제2 프로그램(220)을 통해 제1 프로그램(210)에게 제3 프로그램(230)의 데이터 접근 권한이 없음을 나타내는 알림을 전달할 수 있다. 제1 프로그램(210)은 사용자 인터페이스를 통해 데이터 접근 권한이 없음을 나타내는 알림을 사용자에게 제공할 수 있다.
단계 1050에서, 제3 프로그램(230)은 실행 결과에 기반한 트랜잭션을 생성한다. 제3 프로그램(230)은 실행 결과가 페이로드에 포함된 트랜잭션을 생성할 수 있다. 제3 프로그램(230)은 인증 매니저(460)를 통해 트랜잭션에 대해 사용자의 서명을 수행함으로써, 서명된 트랜잭션을 생성할 수 있다.
단계 1060에서, 제3 프로그램(230)은 원장(260)에 트랜잭션을 기록한다. 제3 프로그램(230)은 탈중앙화 네트워크(250)의 적어도 하나의 노드(예: 노드(251, 253))에게 트랜잭션을 전송함으로써, 원장(260)에 트랜잭션을 기록할 수 있다.
단계 1071에서, 제3 프로그램(230)은 제2 프로그램(220)에게 수행 결과를 리턴한다. 수행 결과는 트랜잭션의 식별자, 수행 동작, 사용자 식별자, 수행 시간, 또는 이들의 조합을 포함할 수 있다.
단계 1075에서, 제2 프로그램(220)은 제1 프로그램(210)에게 수행 결과를 리턴한다.
도 11은 일 실시 예에 따른 전자 장치(201)가 스마트 컨트랙트를 실행하는 세부 동작을 나타내는 흐름도이다. 도 11의 단계들은 도 10의 단계 1025, 단계 1030, 단계 1040, 단계 1050, 단계 1060, 및 단계 1071에 대응할 수 있다.
도 11을 참조하면, 단계 1110에서, 프로그램 매니저(310)는 코드 실행 요청을 식별한다. 프로그램 매니저(310)는 제2 프로그램(220)으로부터 수신된 코드 실행 요청을 식별할 수 있다. 코드 실행 요청은 스마트 컨트랙트의 식별 정보를 포함할 수 있다.
단계 1121에서, 프로그램 매니저(310)는 프로그램 서비스 모듈(330)의 상태 머신(410)에게 코드 실행 요청을 송신한다.
단계 1123에서, 상태 머신(410)은 로드 매니저(420)에게 코드 정보를 요청한다.
단계 1125에서, 로드 매니저(420)는 상태 머신(410)에게 코드 정보를 리턴한다. 로드 매니저(420)는 사상 데이터에서 식별 정보에 기반하여 검색된 코드 정보를 상태 머신(410)에게 리턴할 수 있다. 코드 정보는 스마트 컨트랙트의 경로를 포함할 수 있다.
단계 1127에서, 상태 머신(410)은 프로그램 코어 모듈(350)에게 코드 실행을 요청한다.
단계 1130에서, 프로그램 코어 모듈(350)은 스마트 컨트랙트의 코드를 로드한다. 프로그램 코어 모듈(350)은 스마트 컨트랙트의 경로에 기반하여 스마트 컨트랙트의 코드를 로드(예: 페치(fetch))할 수 있다.
단계 1140에서, 프로그램 코어 모듈(350)은 코드를 실행한다.
프로그램 코어 모듈(350)은 스마트 컨트랙트의 코드를 실행함으로써, 메모리(130)의 데이터에 접근할 수 있다. 프로그램 코어 모듈(350)은 스마트 컨트랙트의 코드의 실행에 따라 접근이 요구되는 데이터에 접근할 수 있다.
프로그램 코어 모듈(350)은 접근이 요구되는 데이터에 대한 접근 권한이 존재하는 경우, 접근이 요구되는 데이터를 획득할 수 있다. 프로그램 코어 모듈(350)은 접근이 요구되는 데이터에 접근 권한이 존재하지 않는 경우, 접근이 요구되는 데이터에 접근하지 못할 수 있다.
단계 1150에서, 프로그램 코어 모듈(350)은 실행 결과를 생성한다. 실행 결과는 프로그램 코어 모듈(350)이 접근한 데이터 및/또는 프로그램 코어 모듈(350)이 접근한 데이터의 암호화된 데이터일 수 있다. 실행 결과는 제3 프로그램(230)의 데이터 접근 권한이 없음을 나타내는 알림일 수 있다.
단계 1155에서, 프로그램 코어 모듈(350)은 프로그램 서비스 모듈(330)의 트랜잭션 매니저(450)에게 실행 결과를 리턴한다. 프로그램 코어 모듈(350)은 트랜잭션 매니저(450)에게 프로그램 코어 모듈(350)이 접근한 데이터를 나타내는 실행 결과를 리턴할 수 있다.
트랜잭션 매니저(450)는 프로그램 코어 모듈(350)로부터 3 프로그램(230)의 데이터 접근 권한이 없다는 실행 결과를 수신하면, 제2 프로그램(220)을 통해 제1 프로그램(210)에게 제3 프로그램(230)의 데이터 접근 권한이 없음을 나타내는 알림을 전달할 수 있다. 제1 프로그램(210)은 사용자 인터페이스를 통해 데이터 접근 권한이 없음을 나타내는 알림을 사용자에게 제공할 수 있다.
단계 1160에서, 트랜잭션 매니저(450)는 실행 결과에 기반하여 트랜잭션을 생성한다. 트랜잭션 매니저(450)는 실행 결과가 페이로드에 포함된 트랜잭션을 생성할 수 있다. 트랜잭션 매니저(450)는 인증 매니저(460)를 통해 트랜잭션에 대해 사용자의 서명을 수행함으로써, 서명된 트랜잭션을 생성할 수 있다.
단계 1165에서, 트랜잭션 매니저(450)는 탈중앙화 네트워크(250)에게 트랜잭션을 전송할 수 있다.
단계 1170에서, 탈중앙화 네트워크(250)는 원장(260)에 트랜잭션을 기록할 수 있다. 탈중앙화 네트워크(250)의 노드들(251, 253)은 전자 장치(201)로부터의 트랜잭션을 검증하고, 검증된 트랜잭션을 탈중앙화 네트워크(250)의 원장(260)의 새로운 블록에 기록할 수 있다. 전자 장치(201)로부터의 트랜잭션이 기록된 블록이 완결성을 확보한 경우, 트랜잭션은 네트워크(250)의 원장(260)에 최종적으로 기록된 것으로 판별할 수 있다. 전자 장치(201)로부터의 트랜잭션이 기록된 블록이 지정된 블록 생성 주기(예: 40회) 이후에도 무효화되지 않는 경우, 트랜잭션은 네트워크(250)의 원장(260)에 최종적으로 기록된 것으로 판별할 수 있다.
단계 1175에서, 트랜잭션 매니저(450)는 트랜잭션 식별자(예: 트랜잭션의 해시 값)를 식별할 수 있다.
단계 1180에서, 트랜잭션 매니저(450)는 프로그램 매니저(310)에게 트랜잭션 식별자(예: 트랜잭션의 해시 값)를 리턴할 수 있다.
트랜잭션 매니저(450)는 트랜잭션이 탈중앙화 네트워크(250)의 원장(260)에 기록되기 전에 트랜잭션을 해시함으로써 획득되는 트랜잭션의 식별자를 프로그램 매니저(310)에게 송신할 수 있다. 트랜잭션 매니저(450)는 트랜잭션이 탈중앙화 네트워크(250)의 원장(260)에 기록된 후 트랜잭션의 식별자를 프로그램 매니저(310)에게 송신할 수 있다.
단계 1190에서, 프로그램 매니저(310)는 수행 결과를 리턴할 수 있다. 프로그램 매니저(310)는 제2 프로그램(220)에게 수행 결과를 리턴할 수 있다. 수행 결과는 트랜잭션의 식별자, 수행 동작, 사용자 식별자, 수행 시간, 또는 이들의 조합을 포함할 수 있다.
도 12는 본 개시의 일 실시 예에 따른 전자 장치(201)의 사용자 인터페이스들(1210, 1230, 1250)을 도시한다.
전자 장치(201)는 외부 장치(예: 자동차)를 제어하기 위한 제1 프로그램(210)을 실행할 수 있다. 전자 장치(201)는 제1 프로그램(210)의 실행 결과에 기반하여 사용자 인터페이스(1210)를 표시할 수 있다.
전자 장치(201)는 제1 프로그램(210)을 실행할 경우, 외부 장치를 제어하기 위한 제3 프로그램(210)의 인스턴스를 실행할 수 있다. 제3 프로그램(230)은 외부 장치를 제어하기 위한 스마트 컨트랙트의 코드를 로드할 수 있다.
도 12를 참조하면, 전자 장치(201)는 사용자 인터페이스(1210) 상의 입력(1211)을 식별할 수 있다. 입력(1211)은 외부 장치에 대해 제어 가능한 기능을 확인하기 위한 입력일 수 있다.
전자 장치(201)는 외부 장치에 대해 제어 가능한 기능을 나타내는 객체(1231)를 포함하는 사용자 인터페이스(1230)를 표시할 수 있다. 장치에 대해 제어 가능한 기능을 나타내는 객체(1231)는 팝업 윈도우일 수 있다. 장치에 대해 제어 가능한 기능은 자동차 접근(vehicle access)(예: 차문 열기 기능), 시동 걸기 기능 (engine start function), 공유 기능(sharing function)(예: 키 공유 기능), 또는 이들의 조합을 포함할 수 있다.
전자 장치(201)는 장치에 대해 제어 가능한 기능 중 하나를 선택하는 입력을 식별할 수 있다.
전자 장치(201)는 기능 선택 입력에 응답하여, 기능을 실행할 수 있는 사용자 인터페이스(1250)를 표시할 수 있다.
전자 장치(201)는 기능의 실행을 요청하는 사용자 인터페이스(1250) 상의 입력(1251)을 식별하면, 기능에 대응하는 스마트 컨트랙트의 코드를 실행할 수 있다.
전자 장치(201)는 입력(1251)에 응답하여, 제3 프로그램(230)을 통해 외부 장치(예: 자동차)의 기능과 관련된 데이터(예: 전자 키)를 메모리(130)에서 획득할 수 있다. 전자 장치(201)는 입력(1251)에 응답하여, 제3 프로그램(230)을 통해 외부 장치(예: 자동차)의 기능과 관련된 데이터(예: 전자 키)에 접근을 요청한 어플리케이션의 정보를 메모리(130)에서 획득할 수 있다. 전자 장치(201)는 입력(1251)에 응답하여, 제3 프로그램(230)을 통해 외부 장치(예: 자동차)의 기능과 관련된 데이터(예: 전자 키)에 접근을 요청한 사용자의 정보를 메모리(130)에서 획득할 수 있다.
전자 장치(201)는 획득된 데이터를 페이로드로 포함하는 트랜잭션을 생성할 수 있다. 전자 장치(201)는 생성된 트랜잭션에 대해 사용자의 서명을 수행할 수 있다. 전자 장치(201)는 서명된 트랜잭션을 탈중앙화 네트워크(250)에게 전송할 수 있다. 트랜잭션에 포함되는 정보는 외부 장치(예: 자동차)의 기능과 관련된 데이터(예: 전자 키), 접근을 요청한 어플리케이션의 정보, 사용자의 정보, 기능의 정보, 또는 이들의 조합을 포함할 수 있다.
전자 장치(201)는 스마트 컨트랙트의 코드의 실행 결과(1255)를 사용자 인터페이스(1250) 상에 표시할 수 있다.
전자 장치(201)는 사용자의 개인 정보(예: 건강 기록(PHR; personal health record))를 외부 전자 장치에 공유하기 위한 제1 프로그램(210)을 실행할 수 있다.
전자 장치(201)는 사용자의 공유 입력을 식별할 수 있다. 전자 장치(201)는 공유 입력에 대응하는 스마트 컨트랙트의 코드를 실행할 수 있다.
전자 장치(201)는 공유 입력에 응답하여, 제3 프로그램(230)을 통해 사용자의 개인 정보를 메모리(130)에서 획득할 수 있다. 전자 장치(201)는 사용자의 개인 정보 중 공유 입력에 기반하여 선택된 개인 정보를 메모리(130)에서 획득할 수 있다.
전자 장치(201)는 획득된 데이터를 암호화할 수 있다. 전자 장치(201)는 암호화된 데이터를 페이로드로 포함하는 트랜잭션을 생성할 수 있다. 전자 장치(201)는 생성된 트랜잭션에 대해 사용자의 서명을 수행할 수 있다. 전자 장치(201)는 서명된 트랜잭션을 탈중앙화 네트워크(250)에게 전송할 수 있다.
서명된 트랜잭션을 탈중앙화 네트워크(250)에 기록되면, 전자 장치(201)는 개인 정보의 열람을 요구하는 외부 전자 장치에게 트랜잭션에 포함된 암호화된 개인 정보의 열람이 가능하도록 인증 수단을 발급할 수 있다.
외부 전자 장치는 외부 전자 장치의 제1 프로그램(210)을 통해 인증 수단을 이용하여 트랜잭션에 포함된 암호화된 개인 정보를 열람할 수 있다. 외부 전자 장치의 개인 정보 열람 횟수는 탈중앙화 네트워크(250)의 블록에 기록될 수 있다.
전자 장치(201)는 탈중앙화 네트워크(250)를 통해 외부 전자 장치의 개인 정보 열람 횟수를 식별할 수 있다. 전자 장치(201)는 외부 전자 장치에 발급한 인증 수단을 무효화함으로써, 외부 전자 장치의 개인 정보 열람을 제한할 수 있다.
본 개시의 일 실시 예에 따른 전자 장치는, 통신 회로, 상기 통신 회로와 전기적으로 연결된 프로세서, 및 상기 프로세서와 전기적으로 연결되고, 인스트럭션들을 저장하는 메모리를 포함하고, 상기 인스트럭션들은, 상기 프로세서에 의해 실행 시, 상기 휴대용 전자 장치가, 제1 스마트 컨트랙트를 실행하고, 상기 제1 스마트 컨트랙트를 실행함에 의해, 상기 메모리에 저장된 데이터의 적어도 일부 데이터를 획득하고, 상기 적어도 일부 데이터를 포함하는 트랜잭션을 생성하고, 상기 휴대용 전자 장치의 사용자의 개인 키에 기반하여 상기 생성된 트랙잭션에 대해 서명하고, 상기 통신 회로를 통해 상기 서명된 트랜잭션을 탈중앙화 네트워크의 적어도 하나의 노드들로 전송하도록 구성될 수 있다.
상기 인스트럭션들은, 상기 프로세서에 의해 실행 시, 상기 휴대용 전자 장치가, 제1 실행 환경에서 실행되는 어플리케이션을 통해 입력을 획득하고, 상기 입력에 기반하여 상기 제1 실행 환경과 구분되는 제2 실행 환경에서, 실행 가능한 적어도 하나의 프로그램 코드 중 상기 제1 스마트 컨트랙트를 식별하고, 상기 식별된 제1 스마트 컨트랙트를 실행하도록 구성될 수 있다.
상기 적어도 일부 데이터는 상기 제1 실행 환경에서 관리되는 상기 메모리의 영역에 저장될 수 있다.
상기 어플리케이션은 상기 제2 실행 환경에 대해 상기 메모리에 저장된 데이터에 대한 접근 권한을 설정하도록 구성될 수 있다.
상기 인스트럭션들은, 상기 프로세서에 의해 실행 시, 상기 휴대용 전자 장치가, 상기 제2 실행 환경에서 상기 생성된 트랜잭션에 대한 식별 정보를 상기 어플리케이션에게 제공하고, 상기 어플리케이션은 사용자 인터페이스를 통해 상기 생성된 트랜잭션에 대한 식별 정보를 사용자에게 제공하도록 구성될 수 있다.
상기 인스트럭션들은, 상기 프로세서에 의해 실행 시, 상기 휴대용 전자 장치가, 상기 사용자 인터페이스를 통해 상기 제1 스마트 컨트랙트의 수행 동작, 수행 시간, 또는 이들의 조합을 상기 사용자에게 제공하도록 구성될 수 있다.
상기 제1 스마트 컨트랙트는, 상기 적어도 하나의 노드들로부터 획득될 수 있다.
상기 제1 스마트 컨트랙트는, 상기 탈중앙화 네트워크의 원장에 기록될 수 있다.
상기 적어도 일부 데이터는 암호화된 후 상기 트랜잭션에 포함될 수 있다.
상기 탈중앙화 네트워크의 노드로서 동작하도록 구성되고, 상기 적어도 하나의 노드들은 사용자에 의해 휴대가 가능할 수 있다.
상기 서명된 트랜잭션은 사용자에 의해 휴대가 가능한 상기 적어도 하나의 노드들에게 전송될 수 있다.
상기 적어도 하나의 노드들은 스마트폰일 수 있다.
상기 인스트럭션들은, 상기 프로세서에 의해 실행 시, 상기 휴대용 전자 장치가, 상기 통신 회로를 이용하여 셀룰러 네트워크를 통해 상기 서명된 트랜잭션을 상기 적어도 하나의 노드들로 전송하도록 구성될 수 있다.
상기 트랜잭션은 상기 휴대용 전자 장치에 의해 검증된 후 상기 적어도 하나의 노드들로 전송될 수 있다.
본 개시의 일 실시 예에 따른 전자 장치의 동작 방법은, 제1 스마트 컨트랙트를 실행하는 동작, 상기 제1 스마트 컨트랙트를 실행함에 의해, 상기 메모리에 저장된 데이터의 적어도 일부 데이터를 획득하는 동작, 상기 적어도 일부 데이터를 포함하는 트랜잭션을 생성하는 동작, 상기 휴대용 전자 장치의 사용자의 개인 키에 기반하여 상기 생성된 트랙잭션에 대해 서명하는 동작, 및 상기 휴대용 전자 장치의 통신 회로를 통해 상기 서명된 트랜잭션을 탈중앙화 네트워크의 적어도 하나의 노드들로 전송하는 동작을 포함할 수 있다.
제1 실행 환경에서 실행되는 어플리케이션을 통해 입력을 획득하는 동작, 및 상기 입력에 기반하여 상기 제1 실행 환경과 구분되는 제2 실행 환경에서, 실행 가능한 적어도 하나의 프로그램 코드 중 상기 제1 스마트 컨트랙트를 식별하는 동작, 상기 식별된 제1 스마트 컨트랙트를 실행하는 동작을 포함할 수 있다.
상기 적어도 일부 데이터는 상기 제1 실행 환경에서 관리되는 상기 메모리의 영역에 저장될 수 있다.
상기 어플리케이션은 상기 제2 실행 환경에 대해 상기 메모리에 저장된 데이터에 대한 접근 권한을 설정하도록 구성될 수 있다.
상기 제2 실행 환경에서 상기 생성된 트랜잭션에 대한 식별 정보를 상기 어플리케이션에게 제공하는 동작, 상기 어플리케이션은 사용자 인터페이스를 통해 상기 생성된 트랜잭션에 대한 식별 정보를 사용자에게 제공하는 동작을 포함할 수 있다.
상기 사용자 인터페이스를 통해 상기 제1 스마트 컨트랙트의 수행 동작, 수행 시간, 또는 이들의 조합을 상기 사용자에게 제공하도록 구성될 수 있다.
상기 제1 스마트 컨트랙트는, 상기 적어도 하나의 노드들로부터 획득될 수 있다.
상기 제1 스마트 컨트랙트는, 상기 탈중앙화 네트워크의 원장에 기록될 수 있다.
상기 적어도 일부 데이터는 암호화된 후 상기 트랜잭션에 포함될 수 있다.
상기 휴대용 전자 장치는 상기 탈중앙화 네트워크의 노드로서 동작하도록 구성되고, 상기 적어도 하나의 노드들은 사용자에 의해 휴대가 가능할 수 있다.
상기 서명된 트랜잭션은 사용자에 의해 휴대가 가능한 상기 적어도 하나의 노드들에게 전송될 수 있다.
상기 적어도 하나의 노드들은 스마트폰일 수 있다.
상기 서명된 트랜잭션을 상기 적어도 하나의 노드들로 전송하는 동작은, 상기 통신 회로를 이용하여 셀룰러 네트워크를 통해 상기 서명된 트랜잭션을 상기 적어도 하나의 노드들로 전송하는 동작을 포함할 수 있다.
상기 트랜잭션은 상기 휴대용 전자 장치에 의해 검증된 후 상기 적어도 하나의 노드들로 전송될 수 있다.
본 문서에 개시된 다양한 실시 예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 노트북, 넷북, 랩탑, 태블릿 PC, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시 예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.
본 문서의 다양한 실시 예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시 예들로 한정하려는 것이 아니며, 해당 실시 예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.
본 문서의 다양한 실시 예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일 실시 예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다.
본 문서의 다양한 실시 예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, '비일시적'은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.
본 문서에 개시된 다양한 실시 예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어™)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.
다양한 실시 예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시 예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시 예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.

Claims (15)

  1. 휴대용 전자 장치에 있어서,
    통신 회로;
    프로세서; 및
    인스트럭션들을 저장하는 메모리를 포함하고,
    상기 인스트럭션들은, 상기 프로세서에 의해 실행 시, 상기 휴대용 전자 장치가,
    제1 스마트 컨트랙트를 실행하고,
    상기 제1 스마트 컨트랙트를 실행함에 의해, 상기 메모리에 저장된 데이터의 적어도 일부 데이터를 획득하고,
    상기 적어도 일부 데이터를 포함하는 트랜잭션을 생성하고,
    상기 휴대용 전자 장치의 사용자의 개인 키에 기반하여 상기 생성된 트랙잭션에 대해 서명하고,
    상기 통신 회로를 통해 상기 서명된 트랜잭션을 탈중앙화 네트워크의 적어도 하나의 노드로 전송하도록 구성되는 휴대용 전자 장치.
  2. 청구항 1에 있어서,
    상기 인스트럭션들은, 상기 프로세서에 의해 실행 시, 상기 휴대용 전자 장치가,
    제1 실행 환경에서 실행되는 어플리케이션을 통해 입력을 획득하고,
    상기 입력에 기반하여 상기 제1 실행 환경과 구분되는 제2 실행 환경에서, 실행 가능한 적어도 하나의 스마트 컨트랙트 중 상기 제1 스마트 컨트랙트를 식별하고,
    상기 식별된 제1 스마트 컨트랙트를 실행하도록 구성되는 휴대용 전자 장치.
  3. 청구항 2에 있어서,
    상기 적어도 일부 데이터는 상기 제1 실행 환경에서 관리되는 상기 메모리의 영역에 저장된 휴대용 전자 장치.
  4. 청구항 2에 있어서,
    상기 어플리케이션은 상기 제2 실행 환경에 대해 상기 메모리에 상기 저장된 적어도 일부 데이터에 대한 접근 권한을 설정하도록 구성된 휴대용 전자 장치.
  5. 청구항 2에 있어서,
    상기 인스트럭션들은, 상기 프로세서에 의해 실행 시, 상기 휴대용 전자 장치가,
    상기 제2 실행 환경에서 상기 생성된 트랜잭션에 대한 식별 정보를 상기 어플리케이션에게 제공하고,
    상기 어플리케이션은 사용자 인터페이스를 통해 상기 생성된 트랜잭션에 대한 식별 정보를 사용자에게 제공하도록 구성되는 휴대용 전자 장치.
  6. 청구항 5에 있어서,
    상기 인스트럭션들은, 상기 프로세서에 의해 실행 시, 상기 휴대용 전자 장치가,
    상기 사용자 인터페이스를 통해 상기 제1 스마트 컨트랙트의 수행 동작, 수행 시간, 또는 이들의 조합을 상기 사용자에게 제공하도록 구성되는 휴대용 전자 장치.
  7. 청구항 1에 있어서,
    상기 제1 스마트 컨트랙트는, 상기 적어도 하나의 노드로부터 획득되는 휴대용 전자 장치.
  8. 청구항 1에 있어서,
    상기 제1 스마트 컨트랙트는, 상기 탈중앙화 네트워크의 원장에 기록된 휴대용 전자 장치.
  9. 청구항 1에 있어서,
    상기 적어도 일부 데이터는 암호화된 후 상기 트랜잭션에 포함되는 휴대용 전자 장치.
  10. 청구항 1에 있어서,
    상기 휴대용 전자 장치는 상기 탈중앙화 네트워크의 노드로서 동작하도록 구성되고,
    상기 적어도 하나의 노드는 사용자에 의해 휴대가 가능하고,
    상기 인스트럭션들은, 상기 프로세서에 의해 실행 시, 상기 휴대용 전자 장치가,
    상기 통신 회로를 이용하여 셀룰러 네트워크를 통해 상기 서명된 트랜잭션을 상기 적어도 하나의 노드로 전송하도록 구성되는 휴대용 전자 장치.
  11. 휴대용 전자 장치에 의해 수행되는 방법에 있어서,
    제1 스마트 컨트랙트를 실행하는 동작,
    상기 제1 스마트 컨트랙트를 실행함에 의해, 상기 휴대용 전자 장치의 메모리에 저장된 데이터의 적어도 일부 데이터를 획득하는 동작,
    상기 적어도 일부 데이터를 포함하는 트랜잭션을 생성하는 동작,
    상기 휴대용 전자 장치의 사용자의 개인 키에 기반하여 상기 생성된 트랙잭션에 대해 서명하는 동작, 및
    상기 휴대용 전자 장치의 통신 회로를 통해 상기 서명된 트랜잭션을 탈중앙화 네트워크의 적어도 하나의 노드로 전송하는 동작을 포함하는, 동작 방법.
  12. 청구항 11에 있어서,
    제1 실행 환경에서 실행되는 어플리케이션을 통해 입력을 획득하는 동작, 및
    상기 입력에 기반하여 상기 제1 실행 환경과 구분되는 제2 실행 환경에서, 실행 가능한 적어도 하나의 스마트 컨트랙트 중 상기 제1 스마트 컨트랙트를 식별하는 동작,
    상기 식별된 제1 스마트 컨트랙트를 실행하는 동작을 포함하는 동작 방법.
  13. 청구항 12에 있어서,
    상기 적어도 일부 데이터는 상기 제1 실행 환경에서 관리되는 상기 메모리의 영역에 저장된 동작 방법.
  14. 청구항 12에 있어서,
    상기 어플리케이션은 상기 제2 실행 환경에 대해 상기 메모리에 상기 저장된 적어도 일부 데이터에 대한 접근 권한을 설정하도록 구성된 동작 방법.
  15. 청구항 12에 있어서,
    상기 제2 실행 환경에서 상기 생성된 트랜잭션에 대한 식별 정보를 상기 어플리케이션에게 제공하는 동작,
    상기 어플리케이션은 사용자 인터페이스를 통해 상기 생성된 트랜잭션에 대한 식별 정보를 사용자에게 제공하는 동작을 포함하는, 동작 방법.
PCT/KR2021/015559 2020-11-04 2021-11-01 내부 데이터가 포함된 트랜잭션을 생성하는 전자 장치 및 이의 동작 방법 WO2022098015A1 (ko)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP21889480.6A EP4184403A4 (en) 2020-11-04 2021-11-01 ELECTRONIC DEVICE FOR GENERATING A TRANSACTION INCLUDING INTERNAL DATA AND ASSOCIATED OPERATING METHOD
CN202180065047.4A CN116194939A (zh) 2020-11-04 2021-11-01 用于生成包括内部数据的交易的电子装置及其操作方法
US17/518,949 US20220138739A1 (en) 2020-11-04 2021-11-04 Electronic device for generating transaction including internal data and operating method thereof

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020200146210A KR20220060336A (ko) 2020-11-04 2020-11-04 내부 데이터가 포함된 트랜잭션을 생성하는 전자 장치 및 이의 동작 방법
KR10-2020-0146210 2020-11-04

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/518,949 Continuation US20220138739A1 (en) 2020-11-04 2021-11-04 Electronic device for generating transaction including internal data and operating method thereof

Publications (1)

Publication Number Publication Date
WO2022098015A1 true WO2022098015A1 (ko) 2022-05-12

Family

ID=81458042

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2021/015559 WO2022098015A1 (ko) 2020-11-04 2021-11-01 내부 데이터가 포함된 트랜잭션을 생성하는 전자 장치 및 이의 동작 방법

Country Status (2)

Country Link
KR (1) KR20220060336A (ko)
WO (1) WO2022098015A1 (ko)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190156026A1 (en) * 2017-11-23 2019-05-23 Institute For Information Industry Monitor apparatus, method, and non-transitory computer readable storage medium thereof
KR20190104793A (ko) * 2018-03-02 2019-09-11 주식회사 아이콘루프 스마트 계약 시스템에서 블록체인을 생성하고 무결성을 검증하는 방법
KR20190132054A (ko) * 2018-05-18 2019-11-27 주식회사 비즈모델라인 블록체인 기반 스마트 컨트랙트를 이용한 암호화폐 거래 플랫폼 제공 방법
KR20200088030A (ko) * 2019-01-14 2020-07-22 삼성전자주식회사 암호화될 데이터의 정보량에 기반하여 암호화에 사용될 키를 선택하는 전자 장치 및 전자 장치의 동작 방법
KR20200101211A (ko) * 2019-02-19 2020-08-27 삼성전자주식회사 전자 장치 및 이를 이용한 블록 체인의 전자 서명 서비스 방법

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190156026A1 (en) * 2017-11-23 2019-05-23 Institute For Information Industry Monitor apparatus, method, and non-transitory computer readable storage medium thereof
KR20190104793A (ko) * 2018-03-02 2019-09-11 주식회사 아이콘루프 스마트 계약 시스템에서 블록체인을 생성하고 무결성을 검증하는 방법
KR20190132054A (ko) * 2018-05-18 2019-11-27 주식회사 비즈모델라인 블록체인 기반 스마트 컨트랙트를 이용한 암호화폐 거래 플랫폼 제공 방법
KR20200088030A (ko) * 2019-01-14 2020-07-22 삼성전자주식회사 암호화될 데이터의 정보량에 기반하여 암호화에 사용될 키를 선택하는 전자 장치 및 전자 장치의 동작 방법
KR20200101211A (ko) * 2019-02-19 2020-08-27 삼성전자주식회사 전자 장치 및 이를 이용한 블록 체인의 전자 서명 서비스 방법

Also Published As

Publication number Publication date
KR20220060336A (ko) 2022-05-11

Similar Documents

Publication Publication Date Title
WO2022031029A1 (ko) 전자 장치 및 전자 장치가 외부 장치 디스플레이 상에 어플리케이션 화면을 제공하는 방법
WO2022154272A1 (ko) Iot 장치 및 iot 장치를 서버에 온보딩 하는 방법
WO2022060149A1 (ko) 탈중앙화 네트워크를 이용하여 권리를 관리하는 전자 장치 및 이의 동작 방법
WO2022114857A1 (ko) 블록 체인 네트워크를 이용하여 데이터를 공유하는 전자 장치 및 이의 동작 방법
WO2023085588A1 (ko) 운전자 인증에 기반한 차량 제어 방법 및 전자 장치
WO2023038466A1 (ko) 블록체인 네트워크에서 트랜잭션을 생성하는 전자 장치 및 그의 동작 방법
WO2022182102A1 (ko) 사용자 인증을 수행하는 방법 및 이를 수행하는 장치
WO2022098015A1 (ko) 내부 데이터가 포함된 트랜잭션을 생성하는 전자 장치 및 이의 동작 방법
WO2022124846A1 (ko) Iot 환경의 허브 장치 및 로컬 네트워크 기반 이벤트 처리 방법
WO2022163894A1 (ko) Esim (embedded subscriber identity module) profile을 활용하여 네트워크에 접속하는 방법 및 전자 장치
WO2021054662A1 (ko) 전자 장치 및 전자 장치의 정보 제공 방법
WO2019235740A1 (ko) 복수의 nfc 동작 모드를 지원하는 전자 장치 및 전자 장치의 동작 방법
WO2023096181A1 (ko) 블록체인 네트워크에서 부분 원장을 가진 전자 장치 및 그의 동작 방법
WO2022260501A1 (ko) 블록체인 네트워크에서 부분 원장을 가진 전자 장치 및 그의 동작 방법
WO2023063694A1 (ko) 블록체인 네트워크에서 부분 원장을 가진 전자 장치 및 그의 동작 방법
WO2024029797A1 (ko) 전자 장치 및 상기 전자 장치에서 이미지 파일의 촬영 날짜 및 시간을 관리하는 방법
WO2023033438A1 (ko) 전자 장치들 간의 매칭을 수행하기 위한 전자 장치 및 이의 동작 방법
WO2022203445A1 (ko) 보안 데이터를 탈중앙화 네트워크를 통해 관리하는 전자 장치 및 이의 동작 방법
WO2021206452A1 (ko) 보안 데이터 처리 방법 및 이를 지원하는 전자 장치
WO2023058844A1 (ko) 전자 장치 및 전자 장치에서 파일의 부가 정보를 생성하는 방법
WO2023286979A1 (ko) 위젯을 표시하는 전자 장치 및 이의 제어 방법
WO2023287207A1 (ko) 전자 장치 및 이를 이용한 외부 전자 장치 연결 방법
WO2023214695A2 (ko) 비활성 노드를 위한 대리 합의 방법 및 전자 장치
WO2024019258A1 (ko) 외부 전자 장치로 송신되는 신호를 제어하는 전자 장치 및 방법
WO2023106594A1 (ko) 복수 개의 실행 환경을 포함하는 전자 장치 및 그의 동작 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21889480

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021889480

Country of ref document: EP

Effective date: 20230217

NENP Non-entry into the national phase

Ref country code: DE