Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
func GenerateKey ¶
func GenerateKey() (sk *PrivateKey)
func NewPrivateKey ¶
func NewPrivateKey(bytes []byte) (sk *PrivateKey)
func (*PrivateKey) Public ¶
func (sk *PrivateKey) Public() (pk *PublicKey)
func (*PrivateKey) SharedSecret ¶
func (sk *PrivateKey) SharedSecret(pk *PublicKey) []byte
func (*PrivateKey) Sign ¶
func (sk *PrivateKey) Sign(message []byte) (signature *Signature)
Click to show internal directories.
Click to hide internal directories.