Documentation ¶
Overview ¶
Package ed25519 is a wrapper around golang. org/x/crypto/ed25519 that uses arrays instead of indeterminate sized slices to simplify block structure
Index ¶
Constants ¶
View Source
const PublicKeySize = ed.PublicKeySize
Variables ¶
This section is empty.
Functions ¶
func GenerateKey ¶
func GenerateKey(rr io.Reader) (pk PublicKey, sk PrivateKey, err error)
Types ¶
type PrivateKey ¶
type PrivateKey [ed.PrivateKeySize]byte
func NewKeyFromSeed ¶
func NewKeyFromSeed(s Seed) (pk PrivateKey)
func (PrivateKey) Equal ¶
func (sk PrivateKey) Equal(x PrivateKey) bool
func (PrivateKey) Public ¶
func (sk PrivateKey) Public() (pk PublicKey)
func (PrivateKey) Seed ¶
func (sk PrivateKey) Seed() (seed Seed)
func (PrivateKey) Sign ¶
func (sk PrivateKey) Sign(message []byte) (sig Signature)
type PublicKey ¶
type PublicKey [PublicKeySize]byte
Click to show internal directories.
Click to hide internal directories.