{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,10,12]],"date-time":"2025-10-12T03:11:08Z","timestamp":1760238668990,"version":"build-2065373602"},"reference-count":29,"publisher":"MDPI AG","issue":"3","license":[{"start":{"date-parts":[[2020,8,29]],"date-time":"2020-08-29T00:00:00Z","timestamp":1598659200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Computers"],"abstract":"<jats:p>In this work, we demonstrate how the blockchain and the off-chain storage interact via Oracle-based mechanisms, which build an effective connection between a distributed database and real assets. For demonstration purposes, smart contracts were drawn up to deal with two different applications. Due to the characteristics of the blockchain, we may still encounter severe privacy issues, since the data stored on the blockchain are exposed to the public. The proposed scheme provides a general solution for resolving the above-mentioned privacy issue; that is, we try to protect the on-chain privacy of the sensitive data by using homomorphic encryption techniques. Specifically, we constructed a secure comparison protocol that can check the correctness of a logic function directly in the encrypted domain. By using the proposed access control contract and the secure comparison protocol, one can carry out sensitive data-dependent smart contract operations without revealing the data themselves.<\/jats:p>","DOI":"10.3390\/computers9030069","type":"journal-article","created":{"date-parts":[[2020,8,30]],"date-time":"2020-08-30T06:06:22Z","timestamp":1598767582000},"page":"69","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":1,"title":["An Oracle-Based On-Chain Privacy"],"prefix":"10.3390","volume":"9","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-5615-9083","authenticated-orcid":false,"given":"Yu-Jen","family":"Chen","sequence":"first","affiliation":[{"name":"Computer Science &amp; Information Engineering, National Taiwan University, Taipei 106216, Taiwan"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Ja-Ling","family":"Wu","sequence":"additional","affiliation":[{"name":"Computer Science &amp; Information Engineering, National Taiwan University, Taipei 106216, Taiwan"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Yung-Chen","family":"Hsieh","sequence":"additional","affiliation":[{"name":"Computer Science &amp; Information Engineering, National Taiwan University, Taipei 106216, Taiwan"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-2478-7891","authenticated-orcid":false,"given":"Chih-Wen","family":"Hsueh","sequence":"additional","affiliation":[{"name":"Computer Science &amp; Information Engineering, National Taiwan University, Taipei 106216, Taiwan"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2020,8,29]]},"reference":[{"key":"ref_1","unstructured":"Kar, I. (2020, August 27). Estonian Citizens Will Soon Have the World\u2019s Most Hack-Proof Health-Care Records. Available online: http:\/\/qz.com\/628889\/this-eastern-european-country-is-moving-its-health-recordsto-the-blockchain\/."},{"key":"ref_2","unstructured":"Kelly, J., and Williams, A. (2020, August 27). Forty Big Banks Test Blockchain-Based Bond Trading System. Available online: https:\/\/www.reuters.com\/article\/banking-blockchain-bonds\/forty-big-banks-test-blockchain-based-bond-trading-system-idUSL8N16A30H."},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Azaria, A., Ekblaw, A., Vieira, T., and Lippman, A. (2016, January 22\u201324). MedRec: Using blockchain for medical data access and permission management. Proceedings of the 2016 2nd International Conference on Open and Big Data (OBD). Institute of Electrical and Electronics Engineers (IEEE), Vienna, Austria.","DOI":"10.1109\/OBD.2016.11"},{"key":"ref_4","unstructured":"Lacey, S. (2020, August 27). The Energy Blockchain: How Bitcoin Could be a Catalyst for the Distributed Grid. Available online: http:\/\/www.greentechmedia.com\/articles\/read\/the-energy-blockchain-could-bitcoin-be-a-catalyst-for-the-distributed-grid."},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"2292","DOI":"10.1109\/ACCESS.2016.2566339","article-title":"Blockchains and smart contracts for the internet of things","volume":"4","author":"Christidis","year":"2016","journal-title":"IEEE Access"},{"key":"ref_6","doi-asserted-by":"crossref","unstructured":"Yao, A.C. (1982, January 3\u20135). Protocols for secure computations. Proceedings of the IEEE 23rd Annual Symposium on Foundations of Computer Science (sfcs 1982), Chicago, IL, USA.","DOI":"10.1109\/SFCS.1982.38"},{"key":"ref_7","unstructured":"Rackoff, C., and Simon, D.R. (1991). Non-interactive zero-knowledge proof of knowledge and chosen ciphertext attack. Annual International Cryptology Conference, Springer."},{"key":"ref_8","first-page":"1192","article-title":"A Guide to Fully Homomorphic Encryption","volume":"2015","author":"Armknecht","year":"2015","journal-title":"IACR Cryptol. ePrint Arch."},{"key":"ref_9","unstructured":"Nakamoto, S. (2020, August 27). Bitcoin: A Peer-to-peer Electronic Cash System; White Paper; 2008. Available online: https:\/\/git.dhimmel.com\/bitcoin-whitepaper\/."},{"key":"ref_10","unstructured":"(2020, August 27). Double-Spending\u2014Bitcoin WiKi, Mar. Available online: https:\/\/en.bitcoin.it\/wiki\/Double-spending."},{"key":"ref_11","unstructured":"Szabo, N. (2020, August 27). Smart Contracts. Available online: http:\/\/szabo.best.vwh.net\/smart.contracts.html."},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Andrychowicz, M., Dziembowski, S., Malinowski, D., and Mazurek, L. (2014, January 18\u201321). Secure Multiparty Computations on Bitcoin. Proceedings of the 2014 IEEE Symposium on Security and Privacy, San Jose, CA, USA.","DOI":"10.1109\/SP.2014.35"},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Pass, R., and Shelat, A. (2015, January 12\u201316). Micropayments for decentralized currencies. Proceedings of the ACM 22nd ACM SIGSAC Conference on Computer and Communications Security, Denver, CO, USA.","DOI":"10.1145\/2810103.2813713"},{"key":"ref_14","doi-asserted-by":"crossref","unstructured":"Kumaresan, R., and Bentov, I. (2014, January 3\u20137). How to Use Bitcoin to Incentivize Correct Computations. Proceedings of the 2014 ACM SIGSAC Conference on Computer and Communications Security, Scottsdale, AZ, USA.","DOI":"10.1145\/2660267.2660380"},{"key":"ref_15","first-page":"223","article-title":"Public-key crypto systems based on composite degree residuosity classes","volume":"99","author":"Paillier","year":"1999","journal-title":"Eurocrypt"},{"key":"ref_16","unstructured":"Pieter, W. (2020, August 27). Hierarchical Deterministic Wallets (BIP:32). Available online: https:\/\/github.com\/bitcoin\/bips\/blob\/master\/bip-0032.mediawiki."},{"key":"ref_17","unstructured":"Maxwell, G. (2020, August 27). Confidential Transactions. Available online: https:\/\/elementsproject.org\/features\/confidential-transactions."},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Maxwell, G. (2020, August 27). CoinJoin. Bitcoin Forum. Available online: https:\/\/bitcointalk.org\/index.php?topic=279249.","DOI":"10.23919\/URSIRSB.2020.9318434"},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"Heilman, E., Alshenibr, L., Baldimtsi, F., Scafuro, A., and Goldberg, S. (2017). Tumblebit: An Untrusted Bitcoin-Compatible Anonymous Payment Hub, Network and Distributed System Security Symposium.","DOI":"10.14722\/ndss.2017.23086"},{"key":"ref_20","unstructured":"Poelstra, A. (2020, August 27). Mimblewimble: Non-Interactive CoinJoin and Better Scaling Properties Using Confidential Transactions. Available online: https:\/\/www.reddit.com\/r\/Bitcoin\/comments\/4vub3y\/\\mimblewimble_noninteractive_coinjoin_and_better\/d61n7yd\/."},{"key":"ref_21","unstructured":"Van Saberhagen, N. (2020, August 27). CrytoNote. Available online: https:\/\/cryptonote.org\/whitepaper.pdf."},{"key":"ref_22","unstructured":"Sasson, E.B., Chiesa, A., Garman, C., Green, M., Miers, I., Tromer, E., and Virza, M. (2014, January 18\u201321). Zerocash: Decentralized anonymous payments from bitcoin. Proceedings of the 2014 IEEE Symposium on Security and Privacy, San Jose, CA, USA."},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Zyskindetal, G. (2015, January 21\u201322). Decentralizing privacy: Using blockchain to protect personal data. Proceedings of the IEEE Security and Privacy Workshops (SPW), San Jose, CA, USA.","DOI":"10.1109\/SPW.2015.27"},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Delgado-Mohatar, O., Fierrez, J., Tolosana, R., and Vera-Rodriguez, R. (2019, January 16\u201317). Biometric Template Storage with Blockchain: A First Look into Cost and Performance Tradeoffs. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, Long Beach, CA, USA.","DOI":"10.1109\/CVPRW.2019.00342"},{"key":"ref_25","unstructured":"(2020, August 27). White Paper\u2014Ethereum\/WiKi, Mar. Available online: https:\/\/github.com\/ethereum\/wiki\/wiki\/White-Paper."},{"key":"ref_26","unstructured":"(2020, August 27). LevelDB, Google Inc. Available online: https:\/\/github.com\/google\/leveldb."},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Kosba, A., Miller, A., Shi, E., Wen, Z., and Papamanthou, C. (2016, January 22\u201326). Hawk: The blockchain model of cryptography and privacy preserving smart contracts. Proceedings of the 2016 IEEE Symposium on Security and Privacy (SP), San Jose, CA, USA.","DOI":"10.1109\/SP.2016.55"},{"key":"ref_28","doi-asserted-by":"crossref","unstructured":"Goldwasser, S., and Micali, S. (1982, January 5\u20137). Probabilistic encryption & how to play mental poker keeping secret all partial information. Proceedings of the ACM Fourteenth Annual ACM Symposium on Theory of Computing, San Francisco, CA, USA.","DOI":"10.1145\/800070.802212"},{"key":"ref_29","doi-asserted-by":"crossref","unstructured":"Bost, R., Popa, R.A., Tu, S., and Goldwasser, S. (2015). Machine Learning Classification over Encrypted Data, NDSS.","DOI":"10.14722\/ndss.2015.23241"}],"container-title":["Computers"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2073-431X\/9\/3\/69\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T10:04:31Z","timestamp":1760177071000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2073-431X\/9\/3\/69"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2020,8,29]]},"references-count":29,"journal-issue":{"issue":"3","published-online":{"date-parts":[[2020,9]]}},"alternative-id":["computers9030069"],"URL":"https:\/\/doi.org\/10.3390\/computers9030069","relation":{},"ISSN":["2073-431X"],"issn-type":[{"type":"electronic","value":"2073-431X"}],"subject":[],"published":{"date-parts":[[2020,8,29]]}}}