Documentation ¶
Overview ¶
Package dsign is a package for working with digital signatures.
Index ¶
Constants ¶
View Source
const ( // SignatureSize is the size of signatures in bytes. SignatureSize = 64 // PrivateKeySize is the size of private keys in bytes. PrivateKeySize = 64 // PublicKeySize is the size of public keys in bytes. PublicKeySize = 32 )
Variables ¶
View Source
var ErrInvalidKeySize = errors.New("invalid key size")
ErrInvalidKeySize is error that is returned when key has invalid size.
Functions ¶
func GenerateKeys ¶
func GenerateKeys() (PrivateKey, PublicKey, error)
GenerateKeys generates a pair of PrivateKey and PublicKey.
Types ¶
type PrivateKey ¶
type PrivateKey []byte
PrivateKey is a private key used for signing.
Click to show internal directories.
Click to hide internal directories.