Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Secp256k1Generator ¶
type Secp256k1Generator struct{}
Secp256k1Generator provides secp256k1 operations
func NewSecp256k1Generator ¶
func NewSecp256k1Generator() *Secp256k1Generator
NewSecp256k1Generator creates a secp256k1 generator
func (*Secp256k1Generator) Generate ¶
func (s *Secp256k1Generator) Generate() (pubKey, privKey []byte)
Generate returns generated pubKey and privKey
func (*Secp256k1Generator) Sign ¶
func (s *Secp256k1Generator) Sign(msg, privKey []byte) ([]byte, error)
Sign creates a recoverable ECDSA signature
func (*Secp256k1Generator) Verify ¶
func (s *Secp256k1Generator) Verify(pubKey, msg, signature []byte) bool
Verify checks that the given pubKey created signature over msg
Click to show internal directories.
Click to hide internal directories.