-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactoring for encoding logic #309
Conversation
Why is the Is there some requirement for that? |
The conversion from I am just not sure if the long name would not be better, like I would prefer to use names like this instead of
So all would have a consistent usage, with {format}.(Encode|Decode) This would require to have each of these inside of "enc", like "enc/base64", "enc/hex"... |
In types/common.go we can still find |
in before enc package was just b58 encode / decode. i`ll move gob function from common to enc. |
internal package doesn`t reveal for other repository, but indexer / tx_replay should use encode/decode logic. so it is good to leave in types. |
It appears OK to me @hayarobi What do you think? |
it need sync test @kslee8282 |
Nov 6 06:07:57.931 INF ../go/aergo/cmd/aergosvr/aergosvr.go:100 > AERGO SVR STARTED branch=feature/encoding module=asvr revision=04c5a261 |
sync success |
Simple conflict resolved |
What is changed?
small refactoring about encode ( hex, base58, base58check, base64, gob )
replace encode logic to using internal package