go-spacemesh
go-spacemesh copied to clipboard
Genesis address format
See https://github.com/spacemeshos/pm/issues/140
- [x] choose and import a bech32 implementation (see this list) (chosen github.com/cosmos/btcutil)
- [x] use this to write a simple address parser (string ->
Address
) with error-handling code for wrong format, too long, bad HRP, etc. (this should probably be published as a separate library so it can be used elsewhere) - [x] change
Address
type to[24]byte
(i.e., changeAddressLength
) - [ ] update API code to receive address as string and parse it
- [ ] go-spacemesh (https://github.com/spacemeshos/go-spacemesh/pull/3336)
- [x] API (https://github.com/spacemeshos/api/pull/173)
- [x] update addresses in genesis account config and tests
- [ ] register HRPs (mainnet, testnet) in SLIP-0713
check, does checksum of address inside bech32 if not - good idea to add it
@abergasov not sure what you mean - bech32 does include a checksum
added a task to register our HRPs in the global SLIP list: sm
and stest
@abergasov this task appears not to be done: register HRPs (mainnet, testnet) in SLIP-0713