Documentation
¶
Index ¶
- func Decode(privateKey string, publicKey string) (*ecdsa.PrivateKey, *ecdsa.PublicKey, error)
- func DecodePrivateKey(pemEncoded string) (*ecdsa.PrivateKey, error)
- func DecodePublicKey(pemEncoded string) (*ecdsa.PublicKey, error)
- func Encode(privateKey *ecdsa.PrivateKey, publicKey *ecdsa.PublicKey) (*string, *string, error)
- func EncodePrivateKey(privateKey *ecdsa.PrivateKey) (*string, error)
- func EncodePublicKey(publicKey *ecdsa.PublicKey) (*string, error)
- func GenerateKeyPair() (*ecdsa.PrivateKey, crypto.PublicKey, error)
- func Sign(privateKey *ecdsa.PrivateKey, data []byte) (r, s *big.Int, err error)
- func Verify(publicKey *ecdsa.PublicKey, data []byte, r, s *big.Int) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodePrivateKey ¶
func DecodePrivateKey(pemEncoded string) (*ecdsa.PrivateKey, error)
func EncodePrivateKey ¶
func EncodePrivateKey(privateKey *ecdsa.PrivateKey) (*string, error)
func GenerateKeyPair ¶
func GenerateKeyPair() (*ecdsa.PrivateKey, crypto.PublicKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.