首页> 外国专利> CONTRACT CODE OBFUSCATION PLATFORM AND OBFUSCATION METHOD BASED ON SMART CONTRACT BYTECODE FEATURES

CONTRACT CODE OBFUSCATION PLATFORM AND OBFUSCATION METHOD BASED ON SMART CONTRACT BYTECODE FEATURES

机译:基于Smart合同字节码特征的合同代码混淆平台和混淆方法

摘要

Disclosed is a contract code obfuscation platform based on smart contract bytecode features. The obfuscation platform comprises a bytecode/instruction converter, an information extractor, a bytecode injector, a jump target re-parser, and an instruction/bytecode converter. In the platform, an original bytecode is converted into an instruction sequence, and according to an obfuscation method, an instruction position needing to be rewritten and an original jump target address are extracted; an insertion instruction is then generated, and the insertion instruction is inserted in a corresponding position of the instruction sequence; a jump address of the instruction sequence is then corrected, so that the jump address corresponds to a correct jump address; and finally, the corrected instruction sequence is converted into a bytecode so that an obfuscated bytecode is obtained, and the obfuscated bytecode is output. In the present invention, by obfuscating a contract bytecode, contract information of a contract creator can be protected from being easily parsed by a tool, thereby reducing the risk of persons freely stealing codes from an on-chain contract.
机译:公开了基于智能合同字节码特征的合同代码混淆平台。混淆平台包括字节码/指令转换器,信息提取器,字节码注射器,跳转目标重新解析器和指令/字节码转换器。在该平台中,原始字节码被转换为指令序列,并根据混淆方法,提取需要重写的指令位置并提取原始跳转目标地址;然后生成插入指令,并且插入指令被插入指令序列的相应位置;然后纠正指令序列的跳转地址,以便跳转地址对应于正确的跳转地址;最后,将校正的指令序列转换为字节码,以便获得混淆的字节码,输出混淆的字节码。在本发明中,通过混淆合同字节码,可以保护合同创建者的合同信息免受工具容易解析,从而降低了从连锁合同自由窃取代码的人员的风险。

著录项

  • 公开/公告号WO2021244054A1

    专利类型

  • 公开/公告日2021-12-09

    原文格式PDF

  • 申请/专利权人 ZHEJIANG UNIVERSITY;

    申请/专利号WO2021CN74634

  • 发明设计人 ZHOU YAJIN;CHENG ZHEN;WU LEI;REN KUI;

    申请日2021-02-01

  • 分类号G06F21/12;

  • 国家 CN

  • 入库时间 2022-08-24 22:45:36

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号