Documentation ¶
Index ¶
- type Crypto
- type Ed25519
- func (ed *Ed25519) GenerateKey() (publicKey, privateKey []byte, err error)
- func (ed *Ed25519) Hash(msg []byte) []byte
- func (ed *Ed25519) PublicKey(privateKey []byte) ([]byte, error)
- func (ed *Ed25519) Sign(privateKey, hash []byte) (signature []byte, err error)
- func (ed *Ed25519) Verify(publicKey, hash, signature []byte) error
- type Hasher
- type Signer
- type Verifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ed25519 ¶
type Ed25519 struct{}
func NewEd25519 ¶
func NewEd25519() *Ed25519
func (*Ed25519) GenerateKey ¶
Click to show internal directories.
Click to hide internal directories.