Documentation ¶ Index ¶ type Signer func New(privateKey []byte, curve crv.Curve, encoder enc.Encoder) (*Signer, error) func (s *Signer) ECDH(publicKey []byte) ([]byte, error) func (s *Signer) PrivateKey() []byte func (s *Signer) Sign(message string) ([]byte, error) func (s *Signer) Verify(pubBytes []byte, data []byte, sigBytes []byte) bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Signer ¶ type Signer struct { PublicKey []byte Curve crv.Curve Encoder enc.Encoder // contains filtered or unexported fields } func New ¶ func New(privateKey []byte, curve crv.Curve, encoder enc.Encoder) (*Signer, error) func (*Signer) ECDH ¶ func (s *Signer) ECDH(publicKey []byte) ([]byte, error) func (*Signer) PrivateKey ¶ func (s *Signer) PrivateKey() []byte func (*Signer) Sign ¶ func (s *Signer) Sign(message string) ([]byte, error) func (*Signer) Verify ¶ func (s *Signer) Verify(pubBytes []byte, data []byte, sigBytes []byte) bool Source Files ¶ View all Source files signer.go Click to show internal directories. Click to hide internal directories.