Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrivKeyFromBytes ¶
func PrivKeyFromBytes(curve *secp256k1.BitCurve, privKey []byte) (*PrivateKey, *PublicKey)
PrivKeyFromBytes returns the PrivateKey and PublicKey corresponding to privKey
Types ¶
type PrivateKey ¶
type PrivateKey ecdsa.PrivateKey
PrivateKey is the private key
func NewPrivateKey ¶
func NewPrivateKey(curve *secp256k1.BitCurve) (*PrivateKey, error)
NewPrivateKey returns a new private key
func (*PrivateKey) PubKey ¶
func (priv *PrivateKey) PubKey() *PublicKey
PubKey returns the public key corresponding to the private key
func (*PrivateKey) Serialize ¶
func (priv *PrivateKey) Serialize() []byte
Serialize returns the byte slice of the private key
type PublicKey ¶
PublicKey is the public key
func ParsePubKey ¶
ParsePubKey parses a byte slice into a PublicKey
func (*PublicKey) SerializeCompressed ¶
SerializeCompressed returns the compressed form of the public key
Click to show internal directories.
Click to hide internal directories.