forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
proto.go
20 lines (18 loc) · 788 Bytes
/
proto.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package codec
import (
codectypes "github.com/eligion/cosmos-sdk/codec/types"
"github.com/eligion/cosmos-sdk/crypto/keys/ed25519"
"github.com/eligion/cosmos-sdk/crypto/keys/multisig"
"github.com/eligion/cosmos-sdk/crypto/keys/secp256k1"
"github.com/eligion/cosmos-sdk/crypto/keys/secp256r1"
cryptotypes "github.com/eligion/cosmos-sdk/crypto/types"
)
// RegisterInterfaces registers the sdk.Tx interface.
func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
var pk *cryptotypes.PubKey
registry.RegisterInterface("cosmos.crypto.PubKey", pk)
registry.RegisterImplementations(pk, &ed25519.PubKey{})
registry.RegisterImplementations(pk, &secp256k1.PubKey{})
registry.RegisterImplementations(pk, &multisig.LegacyAminoPubKey{})
secp256r1.RegisterInterfaces(registry)
}