aionnetwork / AVM

Enabling Java code to run in a blockchain environment
https://theoan.com/
MIT License
49 stars 25 forks source link

Restrict instance and non-public uses of ABIDecoder #352

Closed jeff-aion closed 5 years ago

jeff-aion commented 5 years ago

ABIDecoder is typically used to call static methods. It can also be used to call instance methods but it isn't typically used that way and we would probably want to handle the instance method case differently (potentially associated with some kind of explicit interface advertised to other callers and long-lived).

Additionally, it can currently call non-public methods, which doesn't seem right.

Both of these cases should be changed: only accepting public static method calls.