Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( S256 = crypto.S256() Curve = S256 Params = Curve.Params() )
View Source
var ( ErrPointNotOnCurve = errors.New("point is not on the curve") ErrPointNotCurveParam = errors.New("point param not same as curve") )
Functions ¶
func GenerateKeyPair ¶
func GenerateKeyPair() (*PublicKey, *PrivateKey)
func HashToCurve ¶
Types ¶
type Key ¶
type Key struct { Address common.Address PrivateKey PrivateKey }
type PrivateKey ¶
type PrivateKey struct {
*ecdsa.PrivateKey
}
func NewPrivateKey ¶
func NewPrivateKey(sk *ecdsa.PrivateKey) (*PrivateKey, error)
func (*PrivateKey) Public ¶
func (k *PrivateKey) Public() *PublicKey
Click to show internal directories.
Click to hide internal directories.