Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Curve ¶
Curve is an abstract implementation of slip10.Curve based on elliptic.Curve.
type PrivateKey ¶
PrivateKey implements slip10.Key and represents a private key for elliptic.Curve.
func (*PrivateKey) Bytes ¶
func (p *PrivateKey) Bytes() []byte
Bytes returns the SLIP-10 serialization of the key.
func (*PrivateKey) ECDSAPrivateKey ¶
func (p *PrivateKey) ECDSAPrivateKey() *ecdsa.PrivateKey
ECDSAPrivateKey returns the corresponding ecdsa.PrivateKey.
func (*PrivateKey) Public ¶
func (p *PrivateKey) Public() slip10.Key
Public returns the corresponding PublicKey.
func (*PrivateKey) Shift ¶
func (p *PrivateKey) Shift(buf []byte) (slip10.Key, error)
Shift derives a new PrivateKey using the provided additive shift. It returns ErrInvalidKey if the shift leads to an invalid key.
func (*PrivateKey) String ¶
func (p *PrivateKey) String() string
type PublicKey ¶
PublicKey implements slip10.Key and represents a public key for elliptic.Curve.
func (*PublicKey) ECDSAPublicKey ¶
ECDSAPublicKey returns the corresponding ecdsa.PublicKey.
Click to show internal directories.
Click to hide internal directories.