Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivateKey ¶
func GenerateKey ¶
func GenerateKey() (*PrivateKey, error)
func NewPrivateKeyFromBytes ¶
func NewPrivateKeyFromBytes(priv []byte) *PrivateKey
NewPrivateKeyFromBytes decodes private key raw bytes, computes public key and returns PrivateKey instance
func NewPrivateKeyFromHex ¶
func NewPrivateKeyFromHex(s string) (*PrivateKey, error)
func (*PrivateKey) Hex ¶
func (k *PrivateKey) Hex() string
Hex returns private key bytes in hex form
func (*PrivateKey) Int ¶
func (k *PrivateKey) Int() *big.Int
Click to show internal directories.
Click to hide internal directories.