Skip to content

Commit

Permalink
Add implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzhang committed Jul 29, 2021
1 parent fbd755e commit e0be6aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nep-16.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,7 @@ The value of <code>script</code> stores the raw VM opcodes. The data should be s
====checksum====

The <code>checksum</code> item is used not only to ensure a corrupt-free transmission, but also to ensure that the file has not been tampered with. It is computed by using the SHA256 algorithm to hash the serialised <code>nef</code> file excluding <code>checksum</code> twice, and converting the result into a 32-bit unsigned integer, which must be identical with the last four bytes of the <code>nef</code> file.

==Implementation==

https://github.com/neo-project/neo/blob/master/src/neo/SmartContract/NefFile.cs

0 comments on commit e0be6aa

Please sign in to comment.