Is your feature request related to a problem? Please describe.
I'm always frustrated when contracts have to write code to deal with simple problems. BE-serialized integers are useful because of their ordering characteristics, but default int->bytes conversion is LE in the VM.
Describe the solution you'd like
Provide methods to obtain fixed-width byte string from integer in BE format.
Is your feature request related to a problem? Please describe.
I'm always frustrated when contracts have to write code to deal with simple problems. BE-serialized integers are useful because of their ordering characteristics, but default int->bytes conversion is LE in the VM.
Describe the solution you'd like
Provide methods to obtain fixed-width byte string from integer in BE format.
Additional context
https://github.com/nspcc-dev/neofs-contract/pull/438