Documentation
¶
Overview ¶
sdk-go/pkg/crypto/ethsecp256k1/ethsecp256k1.go
Index ¶
- Constants
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- type PrivKey
- func (privKey *PrivKey) Bytes() []byte
- func (privKey *PrivKey) Equals(other cryptotypes.LedgerPrivKey) bool
- func (privKey *PrivKey) ProtoMessage()
- func (privKey *PrivKey) PubKey() cryptotypes.PubKey
- func (privKey *PrivKey) Reset()
- func (privKey *PrivKey) Sign(digestBz []byte) ([]byte, error)
- func (privKey *PrivKey) String() string
- func (privKey *PrivKey) Type() string
- func (*PrivKey) XXX_MessageName() string
- type PubKey
- func (pubKey *PubKey) Address() cryptotypes.Address
- func (pubKey *PubKey) Bytes() []byte
- func (pubKey *PubKey) Equals(other cryptotypes.PubKey) bool
- func (pubKey *PubKey) ProtoMessage()
- func (pubKey *PubKey) Reset()
- func (pubKey *PubKey) String() string
- func (pubKey *PubKey) Type() string
- func (pubKey *PubKey) VerifySignature(msg, sig []byte) bool
- func (*PubKey) XXX_MessageName() string
Constants ¶
View Source
const ( PrivKeySize = 32 PubKeySize = 33 // compressed KeyType = "eth_secp256k1" // Proto type URLs - must match Injective's registration PubKeyName = "injective.crypto.v1beta1.ethsecp256k1.PubKey" PrivKeyName = "injective.crypto.v1beta1.ethsecp256k1.PrivKey" )
Variables ¶
This section is empty.
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces registers the ethsecp256k1 types with Injective's type URLs
Types ¶
type PrivKey ¶
type PrivKey struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
}
func (*PrivKey) Equals ¶
func (privKey *PrivKey) Equals(other cryptotypes.LedgerPrivKey) bool
func (*PrivKey) ProtoMessage ¶
func (privKey *PrivKey) ProtoMessage()
func (*PrivKey) PubKey ¶
func (privKey *PrivKey) PubKey() cryptotypes.PubKey
func (*PrivKey) XXX_MessageName ¶
XXX_MessageName returns the proto message name for proper type URL registration
type PubKey ¶
type PubKey struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
}
PubKey defines a secp256k1 public key using Ethereum's format
func (*PubKey) Address ¶
func (pubKey *PubKey) Address() cryptotypes.Address
func (*PubKey) ProtoMessage ¶
func (pubKey *PubKey) ProtoMessage()
func (*PubKey) VerifySignature ¶
func (*PubKey) XXX_MessageName ¶
XXX_MessageName returns the proto message name for proper type URL registration
Click to show internal directories.
Click to hide internal directories.