Comments (5)
I have been experimenting with how we can enforce these types in typescript here. it's really just a wrapper for BigNumber that enforces size. Still early days but I think a construct like this is achievable and could make our lives easy. It could also be extensible for types like hash32
.
from lodestar.
These types are not "native" types in any programming language as in most programming languages that are being used for sharding have to check inputs and outputs and define these types themselves. If you look at the ssz codebase (https://github.com/ChainSafeSystems/ssz-js), this is what was done.
Note that hash32, in particular, is effectively bytes but with some caveats. Again, look through the ssz code.
from lodestar.
May seem ugly but I think an alias to Array<Boolean>
would suffice for a Bits
type.
from lodestar.
@aunyks were discussing this in the currently open pr
from lodestar.
I think we can close this per #62 which is now closed?
from lodestar.
Related Issues (20)
- Multiple API errors are not spec compliant
- Fix yarn check-readme HOT 3
- Handle non-integer builder.boostFactor HOT 1
- Support builder boost factor in proposer settings file HOT 1
- Add builder selection `executionalways`
- Downscore clients with SSZ_SNAPPY_ERROR_OVER_SSZ_MAX_SIZE error HOT 1
- Incorrect total block value in publish block log HOT 3
- Libp2p max listeners warning HOT 1
- Sim test cannot be run locally on Mac and Windows HOT 1
- CodeError: Handler already registered for protocol HOT 3
- Error: ENR has no udp multiaddr HOT 1
- Have execution addresses follow ERC55 format HOT 1
- Add types for representing LC Merkle branches
- Implement builder circuit breaker functionality / liveness failsafe
- Fork version used to verify sync aggregate in LC update HOT 9
- Support better voluntary exit errors HOT 3
- Performance issue getting aggregated attestations for block productions
- Performance issue getting eth1DataAndDeposits for block production HOT 2
- Do not allow disabling builder if builder selection is set to builder only
- Electra tracker
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lodestar.