Abstract
Textile electronics with digital capabilities could sense, process, and store data, while providing immersive interaction with user and their immediate surroundings. However, existing textile electronic systems are typically built on von Neumann architecture and rigid chips, limiting their seamless integration with clothing. Here, we propose a single-fibre logic/memory electronic device based on interface passivation-corrosion whose functions do not depend on traditional carrier heterojunction interfaces. The same fibre can be switched to operate as either a diode or a memristor. The diode mode remains stable under higher voltages and longer cycling periods than the state-of-the-art anion–cation heterojunction fibres. The fibre electronics are highly stretchable (up to 50%), and are compatible with industry-standard weaving techniques. We also demonstrate the application of these fibres in “AND” and “OR” logic gates, neuromorphic synapses, and textile memristor arrays. Regulated passivation-corrosion-enabled logic and memory in fibres offers a promising avenue for the next-generation textile computing.
Similar content being viewed by others
Data availability
Relevant data supporting this study are available within the article and the Supplementary Information file. All the numerical data generated in this study are provided in the Supplementary Information/Source Data file in the form of an Excel file with pages corresponding to each presented graph. All data, including images, are available from the corresponding author upon request. Source data are provided with this paper.
References
Yang, W. et al. Single body-coupled fiber enables chipless textile electronics. Science 384, 74–81 (2024).
Gupta, N. et al. A single-fibre computer enables textile networks and distributed inference. Nature 639, 79–86 (2025).
Shi, X. et al. Large-area display textiles integrated with functional systems. Nature 591, 240–245 (2021).
Luo, Y. et al. Learning human–environment interactions using conformal tactile textiles. Nat. Electron. 4, 193–201 (2021).
Loke, G. et al. Digital electronics in fibres enable fabric-based machine-learning inference. Nat. Commun. 12, 3317 (2021).
Loke, G. et al. Computing Fabrics. Matter 2, 786–788 (2020).
Yang, W. et al. Self-powered interactive fiber electronics with visual-digital synergies. Adv. Mater. 33, e2104681 (2021).
Dang, C. et al. Fibres-threads of intelligence enable a new generation of wearable systems. Chem. Soc. Rev. 53, 8790–8846 (2024).
Chen, M. et al. Imperceptible, designable, and scalable braided electronic cord. Nat. Commun. 13, 7097 (2022).
Bai, H. et al. Stretchable distributed fiber-optic sensors. Science 370, 848–852 (2020).
Qi, J. et al. Bridging the digital–physical divide using haptic and wearable technologies. Nat. Electron. 7, 1098–1110 (2024).
Weng, W. et al. A route toward smart system integration: from fiber design to device construction. Adv. Mater. 32, e1902301 (2019).
Wicaksono, I., Cherston, J. & Paradiso, J. A. Electronic textile ubiquitous computational substrates across geometric scales. IEEE Pervasive Comput. 20, 18–29 (2021).
Wang, Y., Sun, C. & Ahmed, D. A smart acoustic textile for health monitoring. Nat. Electron. 8, 485–495 (2025).
Wang, Z., Liu, Y., Zhou, Z., Chen, P. & Peng, H. Towards integrated textile display systems. Nat. Rev. Electr. Eng. 1, 466–477 (2024).
Libanori, A., Chen, G., Zhao, X., Zhou, Y. & Chen, J. Smart textiles for personalized healthcare. Nat. Electron. 5, 142–156 (2022).
Kim, H. M. et al. Metal–insulator–semiconductor coaxial microfibers based on self-organization of organic semiconductor: polymer blend for weavable, fibriform organic field-effect transistors. Adv. Funct. Mater. 26, 2706–2714 (2016).
Choi, K. H. et al. Fibriform organic electrochemical diodes with rectifying, complementary logic and transient voltage suppression functions for wearable e-textile embedded circuits. ACS Nano 17, 5821–5833 (2023).
Ham, S. et al. One-dimensional organic artificial multi-synapses enabling an electronic textile neural network for wearable neuromorphic applications. Sci. Adv. 6, eaba1178 (2020).
Matsuhisa, N. et al. High-frequency and intrinsically stretchable polymer diodes. Nature 600, 246–252 (2021).
Kim, J. et al. Monolithically integrated high-density vertical organic electrochemical transistor arrays and complementary circuits. Nat. Electron. 7, 234–243 (2024).
Shi, J. et al. Smart textile-integrated microelectronic systems for wearable applications. Adv. Mater. 32, e1901958 (2020).
Zhang, Y., Tan, C. M. J., Toepfer, C. N., Lu, X. & Bayley, H. Microscale droplet assembly enables biocompatible multifunctional modular iontronics. Science 386, 1024–1030 (2024).
Kim, H. J., Chen, B. H., Suo, Z. G. & Hayward, R. C. Ionoelastomer junctions between polymer networks of fixed anions and cations. Science 367, 773–776 (2020).
Jiang, F. et al. Ion rectification based on a gel polymer electrolyte ionic diode. Nat. Commun. 13, 6669 (2022).
Woo, S., Kim, H., Kim, J., Ryu, H. & Lee, J. Fiber-based flexible ionic diode with high robustness and rectifying performance: toward electronic textile circuits. Adv. Electron. Mater. 10, 2300653 (2023).
Xing, Y. et al. Integrated opposite charge grafting induced an ionic-junction fiber. Nat. Commun. 14, 2355 (2023).
Wang, H. et al. Bilayer of polyelectrolyte films for spontaneous power generation in air up to an integrated 1,000 V output. Nat. Nanotechnol. 16, 811–819 (2021).
Dobashi, Y. et al. Piezoionic mechanoreceptors: force-induced current generation in hydrogels. Science 376, 502–507 (2022).
Chen, M. et al. Fabric computing: concepts, opportunities, and challenges. Innovation (Camb) 3, 100340 (2022).
Liu, B. et al. Aluminum corrosion-passivation regulation prolongs aqueous batteries life. Nat. Commun. 15, 2922 (2024).
Tu, J. et al. Nonaqueous rechargeable aluminum batteries: progresses, challenges, and perspectives. Chem. Rev. 121, 4903–4961 (2021).
Wen, L., Xu, R., Mi, Y. & Lei, Y. Multiple nanostructures based on anodized aluminium oxide templates. Nat. Nanotechnol. 12, 244–250 (2017).
Zhang, Y. et al. Corrosion of aluminum alloy 7075 induced by marine Aspergillus terreus with continued organic carbon starvation. npj Mater. Degrad. 6, 27 (2022).
Xiong, T. et al. Neuromorphic functions with a polyelectrolyte-confined fluidic memristor. Science 379, 156–161 (2023).
Zhao, R. et al. Memristive ion dynamics to enable biorealistic computing. Chem. Rev. 125, 745–785 (2025).
Acknowledgements
This research was funded in whole or in part by the Swiss National Science Foundation (SNSF) grant no. 219231. We acknowledge the discussion with the BHMT group members. The authors gratefully acknowledge the ETH Zurich ScopeM centre for their support and assistance in this work. The authors gratefully acknowledge Dr. Roman Heuberger of the RMS Foundation company for his support and assistance in this work.
Author information
Authors and Affiliations
Contributions
W.Y., Y.L., and C.M. conceived the project and designed the experiments. W.Y. and Y.L. fabricated the samples and devices, ran the experiments, analyzed the data, and wrote the initial draft of the manuscript. M.R.C. designed and implemented a standalone circuit and PCB enabling programmable read/write operations on textile memristor arrays. W.Y., Y.L., and A.S. performed the initial conceptualisation and analysis on the electrochemical part. W.Y., A.S., and C.M. reviewed the manuscript. W.Y. and C.M. supervised the project.
Corresponding authors
Ethics declarations
Competing interests
The authors declare no conflict of interest.
Peer review
Peer review information
Nature Communications thanks the anonymous reviewers for their contribution to the peer review of this work. A peer review file is available.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Source data
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Li, Y., Yang, W., Shokurov, A.V. et al. In-fibre logic and memory via tuneable passivation–corrosion. Nat Commun (2026). https://doi.org/10.1038/s41467-026-71249-7
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41467-026-71249-7


