ethereum / research

MIT License
1.79k stars 586 forks source link

Added Vector class #109

Closed vbuterin closed 5 years ago

vbuterin commented 5 years ago

Co-requisite with https://github.com/ethereum/eth2.0-specs/pull/777

dankrad commented 5 years ago

I think it's a good idea to make the fixed length explicit. Would it make sense to add the fixed length to the class, to make it usable for length assertions?

vbuterin commented 5 years ago

I think we do want to keep the constructor as Vector([blah, blah, blah...]). But I added an explicit length keyword and errors on length changing operations just now.