Documentation
¶
Index ¶
- type ECDSAConfig
- func (c *ECDSAConfig) ECDH(foreignPublicKey *crypto.PublicKey) ([]byte, error)
- func (c *ECDSAConfig) Marshall() ([]byte, error)
- func (c *ECDSAConfig) Sign(data []byte) ([]byte, error)
- func (c *ECDSAConfig) Unmarshall(data []byte) error
- func (c *ECDSAConfig) Verify(foreignPublicKey *ECDSAConfig, signatureJson []byte) (bool, error)
- type ECDSASignature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ECDSAConfig ¶
type ECDSAConfig struct {
Key *ecdsa.PrivateKey
}
func NewECDSAConfig ¶
func NewECDSAConfig() *ECDSAConfig
func (*ECDSAConfig) ECDH ¶
func (c *ECDSAConfig) ECDH(foreignPublicKey *crypto.PublicKey) ([]byte, error)
func (*ECDSAConfig) Marshall ¶
func (c *ECDSAConfig) Marshall() ([]byte, error)
func (*ECDSAConfig) Unmarshall ¶
func (c *ECDSAConfig) Unmarshall(data []byte) error
func (*ECDSAConfig) Verify ¶
func (c *ECDSAConfig) Verify(foreignPublicKey *ECDSAConfig, signatureJson []byte) (bool, error)
type ECDSASignature ¶
func (*ECDSASignature) Marshall ¶
func (c *ECDSASignature) Marshall() ([]byte, error)
func (*ECDSASignature) Unmarshall ¶
func (c *ECDSASignature) Unmarshall(data []byte) error
Click to show internal directories.
Click to hide internal directories.