ChainSafe / simpleserialize.com

https://simpleserialize.com
MIT License
7 stars 6 forks source link

Option to display base64 #5

Closed terencechain closed 5 years ago

terencechain commented 5 years ago

Can we add an option to display in base64 instead hex?

Instead of toString('hex'), we want toString('base64') here: https://github.com/ChainSafe/simpleserialize.com/blob/49679b842660e5a62afb270aff39fc04e881ca54/src/components/Serialize.tsx#L39

prestonvanloon commented 5 years ago

Please

GregTheGreek commented 5 years ago

@stalebot please mark stale

prestonvanloon commented 5 years ago

We want base64 input/output. It would be more convenient than having to convert to hex.

Edit: pretty please

GregTheGreek commented 5 years ago

yeah ill look into it!

GregTheGreek commented 5 years ago

6 closes this.

wemeetagain commented 5 years ago

one more PR #7

wemeetagain commented 5 years ago

Ok, byte arrays can now be input as both hex and base64 strings. (including the ssz input) Also, sszed and hashTreeRooted output can be toggled between hex and base64. :)