mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-11 07:20:19 +00:00
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.
16 lines
265 B
Go
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{})
|
|
}
|