go sdk for palkdot ecology
usage
-
add "github.com/leverwwz/go-substrate-crypto" into go.mod file
go get github.com/leverwwz/go-substrate-crypto
-
add a prefix for the target chain if the prefix not contained in the list.
ss58.AddPrefix()
-
generate the private.
-
generate address against to the prefix of a chain.
-
sign the message(note,three type of signing way available)
ed25519.Sign sr25519.Sign ecdsa.Sign
for more details, please refer to testing files in "go-substrate-crypto/test".