Documentation ¶
Index ¶
- type ECC
- func (curve *ECC) FieldAdd(a, b *big.Int) *big.Int
- func (curve *ECC) FieldDiv(a, b *big.Int) *big.Int
- func (curve *ECC) FieldMul(a, b *big.Int) *big.Int
- func (curve *ECC) FieldNormal(a *big.Int) *big.Int
- func (curve *ECC) FieldSub(a, b *big.Int) *big.Int
- func (curve *ECC) Hack(key, r, s *big.Int, hash []byte) *big.Int
- func (curve *ECC) Inverse(x *big.Int) *big.Int
- func (curve *ECC) NewPoint(x *big.Int) *ECPoint
- func (curve *ECC) PointAdd(Q, P *ECPoint) *ECPoint
- func (curve *ECC) PointScale(Q *ECPoint, N *big.Int) *ECPoint
- func (curve *ECC) PointSub(Q, P *ECPoint) *ECPoint
- func (curve *ECC) PointTwice(Q *ECPoint) *ECPoint
- func (curve *ECC) PrivateKey2Address(key *big.Int) string
- func (curve *ECC) PublicKey2Address(puK *ECPoint) string
- func (curve *ECC) Recover(r, s *big.Int, v int64, hash []byte) *ECPoint
- func (curve *ECC) SetPoint(x *ECPoint) *ECPoint
- func (curve *ECC) Sign(key, d *big.Int, hash []byte) (*big.Int, *big.Int, int64)
- func (curve *ECC) Sqrt(x *big.Int) *big.Int
- func (curve *ECC) Verify(Q *ECPoint, r, s *big.Int, hash []byte) bool
- type ECPoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ECC ¶
func NewSecp256K1 ¶
func NewSecp256K1() *ECC
func (*ECC) PointTwice ¶
func (*ECC) PublicKey2Address ¶
Click to show internal directories.
Click to hide internal directories.