aionnetwork / AVM

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

Why are addresses 32 bytes? #397

Closed fulldecent closed 4 years ago

fulldecent commented 5 years ago

Addresses are specified in code as 32 bytes https://github.com/aionnetwork/AVM/blob/master/org.aion.avm.api/src/avm/Address.java#L11

But documentation for FastVM states addresses are 128-bits. Documentation for AVM does not specify bit length.

jeff-aion commented 5 years ago

Where does the FastVM doc state that the addresses are 128-bit? Here, it defines them as 32 bytes: https://github.com/aionnetwork/aion_fastvm/wiki/Specifications

This isn't specific to either VM but a defined constant of the Aion network.

fulldecent commented 4 years ago

Thank you. I was confused with FastVM documentation. No problem here.