Anna Shaleva
|
90705e37e9
|
compiler: perform NEF size check on serialization
Retun an error if the serialized NEF size exceeds stackitem.MaxSize.
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
|
2023-11-20 15:14:05 +03:00 |
|
Anna Shaleva
|
14d98811a5
|
smartcontract: restrict maximum NEF file size on deserialisation
Port https://github.com/neo-project/neo/pull/2939.
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
|
2023-11-20 14:32:32 +03:00 |
|
Elizaveta Chichindaeva
|
28908aa3cf
|
[#2442] English Check
Signed-off-by: Elizaveta Chichindaeva <elizaveta@nspcc.ru>
|
2022-05-04 19:48:27 +03:00 |
|
Roman Khimov
|
42a9d3d7b8
|
nef: add Source field
Follow neo-project/neo#2605.
|
2021-09-24 00:19:37 +03:00 |
|
Evgeniy Stratonikov
|
719dceff77
|
nef: merge Compiler and Version fields
|
2021-01-19 11:19:28 +03:00 |
|
Evgeniy Stratonikov
|
0bbdee2ce1
|
nef: add Reserved bytes
|
2021-01-19 11:19:28 +03:00 |
|
Evgeniy Stratonikov
|
52843fc1bf
|
nef: add Tokens field
|
2021-01-19 11:19:24 +03:00 |
|
Evgeniy Stratonikov
|
11191c0a08
|
nef: support JSON serialization
|
2021-01-13 15:26:35 +03:00 |
|
Roman Khimov
|
2e0fe370cf
|
nef: lower MaxScriptLength
Follow neo-project/neo#2119 changes.
|
2020-12-14 15:24:15 +03:00 |
|
Roman Khimov
|
1672887123
|
nef: increase version field to 32 bytes
Follow recent C# changes.
|
2020-11-30 11:26:29 +03:00 |
|
Roman Khimov
|
4d0eaef510
|
nef: treat Version as string
Following changes in C# code and simpilifying things a lot.
|
2020-11-27 21:47:08 +03:00 |
|
Roman Khimov
|
e12c52f588
|
nef: change checksum calculation scheme
It's now being calculated for whole file, not just header.
|
2020-11-27 21:47:08 +03:00 |
|
Roman Khimov
|
0c7e727859
|
nef: drop scripthash
It's no longer a part of the file.
|
2020-11-27 21:47:08 +03:00 |
|
Roman Khimov
|
c5e39dfabf
|
nef: forbid NEFs with zero-length scripts
|
2020-11-26 18:30:53 +03:00 |
|
Anna Shaleva
|
9c3d8cd398
|
smartcontract: fix nef.GetVersion
It should be able to parse versions like `1.1.1-rc.1`.
Close #1540.
|
2020-11-12 17:08:54 +03:00 |
|
Roman Khimov
|
f45c032eff
|
nef: limit the number of bytes to be read during decode
|
2020-10-07 18:30:44 +03:00 |
|
Roman Khimov
|
0e2784cd2c
|
always wrap errors when creating new ones with fmt.Errorf()
It doesn't really change anything in most of the cases, but it's a useful
habit anyway.
Fix #350.
|
2020-08-07 12:21:52 +03:00 |
|
Anna Shaleva
|
b2aef6acbf
|
smartcontract: calculate double-SHA256 for .nef files
Closes #1203
|
2020-08-03 14:25:27 +03:00 |
|
Anna Shaleva
|
927127e5fb
|
smartcontract: add nef file
It should match C# NEF3 specification in order to debug and deploy smart
contracts via NEO3 Blockchain Toolkit.
|
2020-06-29 09:15:25 +03:00 |
|