07-04-2023 дата публикации
Номер: CN115937878A
Принадлежит:
The invention belongs to the technical field of blockchain smart contract security, and provides a smart contract vulnerability detection method and system based on HOG and DRSN-LSTM. The method comprises the following steps: acquiring a contract byte code running in real time, converting the contract byte code into a grey-scale map, and carrying out scaling processing on the grey-scale map by adopting a bicubic difference algorithm; performing feature extraction on the scaled grey-scale map by adopting an HOG algorithm to obtain a feature map; drawing the feature map by adopting a gradient histogram to obtain the gradient histogram; based on the gradient histogram, adopting a DRSN-LSTM model to obtain an intelligent contract vulnerability type; the DRSN-LSTM model comprises a first layer, a second layer, a third layer, a fourth layer, a fifth layer, a sixth layer and a seventh layer, wherein each of the first layer and the second layer comprises a standardization layer, a Relu and a convolution ...
Подробнее