Documentation ¶
Index ¶
- Constants
- type PrivKeyP256
- func (privKey PrivKeyP256) Bytes() []byte
- func (privKey PrivKeyP256) Equals(other tmc.PrivKey) bool
- func (privKey PrivKeyP256) MarshalJSON() ([]byte, error)
- func (privKey PrivKeyP256) PubKey() tmc.PubKey
- func (privKey *PrivKeyP256) SetBytes(buf []byte)
- func (privKey PrivKeyP256) Sign(msg []byte) ([]byte, error)
- func (privKey PrivKeyP256) String() string
- func (privKey PrivKeyP256) ToECDSA() *ecdsa.PrivateKey
- func (privKey *PrivKeyP256) UnmarshalJSON(data []byte) error
- type PubKeyP256
- func (pubKey PubKeyP256) Address() tmc.Address
- func (pubKey PubKeyP256) Bytes() []byte
- func (pubKey PubKeyP256) Equals(other tmc.PubKey) bool
- func (pubKey PubKeyP256) MarshalJSON() ([]byte, error)
- func (pubKey PubKeyP256) String() string
- func (pubKey PubKeyP256) ToECDSA() *ecdsa.PublicKey
- func (pubKey *PubKeyP256) UnmarshalJSON(data []byte) error
- func (pubKey PubKeyP256) VerifyBytes(msg []byte, sig []byte) (res bool)
Constants ¶
View Source
const ( PrivKeyAminoName = "amo/PrivKeyP256" PubKeyAminoName = "amo/PubKeyP256" SignatureSize = 64 PrivKeyP256Size = 32 PubKeyP256Size = 65 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivKeyP256 ¶
type PrivKeyP256 [PrivKeyP256Size]byte
func GenPrivKey ¶
func GenPrivKey() PrivKeyP256
func GenPrivKeyFromSecret ¶
func GenPrivKeyFromSecret(secret []byte) PrivKeyP256
func (PrivKeyP256) Bytes ¶
func (privKey PrivKeyP256) Bytes() []byte
func (PrivKeyP256) MarshalJSON ¶
func (privKey PrivKeyP256) MarshalJSON() ([]byte, error)
func (PrivKeyP256) PubKey ¶
func (privKey PrivKeyP256) PubKey() tmc.PubKey
func (*PrivKeyP256) SetBytes ¶
func (privKey *PrivKeyP256) SetBytes(buf []byte)
func (PrivKeyP256) String ¶
func (privKey PrivKeyP256) String() string
func (PrivKeyP256) ToECDSA ¶
func (privKey PrivKeyP256) ToECDSA() *ecdsa.PrivateKey
func (*PrivKeyP256) UnmarshalJSON ¶
func (privKey *PrivKeyP256) UnmarshalJSON(data []byte) error
type PubKeyP256 ¶
type PubKeyP256 [PubKeyP256Size]byte
func (PubKeyP256) Address ¶
func (pubKey PubKeyP256) Address() tmc.Address
func (PubKeyP256) Bytes ¶
func (pubKey PubKeyP256) Bytes() []byte
func (PubKeyP256) MarshalJSON ¶
func (pubKey PubKeyP256) MarshalJSON() ([]byte, error)
func (PubKeyP256) String ¶
func (pubKey PubKeyP256) String() string
func (PubKeyP256) ToECDSA ¶
func (pubKey PubKeyP256) ToECDSA() *ecdsa.PublicKey
func (*PubKeyP256) UnmarshalJSON ¶
func (pubKey *PubKeyP256) UnmarshalJSON(data []byte) error
func (PubKeyP256) VerifyBytes ¶
func (pubKey PubKeyP256) VerifyBytes(msg []byte, sig []byte) (res bool)
Click to show internal directories.
Click to hide internal directories.