The invention discloses a
Sybil attack dynamic defense method and
system in an
electric power carbon transaction block chain. The method comprises the following steps: initializing a
system, and initializing a block
chain network and
model parameters;
sybil attack detection is carried out, data are preprocessed, and different node types are identified by using GAT and a multi-scale parallel
convolution technology in combination with AFF; performing node state evaluation, and performing node comprehensive scoring and grading according to various indexes such as a detection result; and performing dynamic response, and executing main node election, malicious node isolation, victim node
score compensation and conservative communication mode triggering according to an
evaluation result. According to the method,
attack detection and dynamic defense based on node state evaluation are combined, so that the
sybil attack detection accuracy of the
electric power carbon transaction block chain is improved, the defense capability of the
electric power carbon transaction block chain to the
sybil attack is enhanced at a relatively high malicious node
rejection rate, and the safety of the electric power carbon transaction is guaranteed.