Documentation
¶
Index ¶
Constants ¶
View Source
const ( Overhead = sign.Overhead PublicKeySize = 32 PrivateKeySize = 64 )
Variables ¶
View Source
var (
ErrInvalidKey = errors.New("invalid key")
)
Functions ¶
func GenerateKeys ¶
func GenerateKeys() (publicKey PublicKey, privateKey PrivateKey, err error)
Types ¶
type PrivateKey ¶
type PrivateKey [PrivateKeySize]byte
func ParsePrivateKey ¶
func ParsePrivateKey(key string) (priv PrivateKey, err error)
func (PrivateKey) Sign ¶
func (p PrivateKey) Sign(message []byte) []byte
func (PrivateKey) String ¶
func (p PrivateKey) String() string
Click to show internal directories.
Click to hide internal directories.