Files
tendermint/crypto/sr25519/encoding.go
M. J. Fromberger f9c6cc9306 rpc: use encoding/json rather than tmjson (#7670)
The main change here is to use encoding/json to encode and decode RPC 
parameters, rather than the custom tmjson package. This includes:

- Update the HTTP POST handler parameter handling.
- Add field tags to 64-bit integer types to get string encoding (to match amino/tmjson).
- Add marshalers to struct types that mention interfaces.
- Inject wrappers to decode interface arguments in RPC handlers.
2022-01-21 15:10:28 -08:00

16 lines
265 B
Go

package sr25519
import (
"github.com/tendermint/tendermint/internal/jsontypes"
)
const (
PrivKeyName = "tendermint/PrivKeySr25519"
PubKeyName = "tendermint/PubKeySr25519"
)
func init() {
jsontypes.MustRegister(PubKey{})
jsontypes.MustRegister(PrivKey{})
}