Documentation
¶
Index ¶
- Constants
- type Key
- func (i *Key) HasPrivateKey() bool
- func (i *Key) HasPublicKey() bool
- func (i *Key) Id() uint32
- func (i *Key) IdBytes() []byte
- func (i *Key) IdStr() string
- func (i *Key) Keys() (pub, priv []byte)
- func (i *Key) Sign(message []byte, dohash bool) (sig []byte, err error)
- func (i *Key) Verify(message, sig []byte, dohash bool) bool
Constants ¶
View Source
const ( //SignatureSize = ed25519.SignatureSize + 4 PublicKeySize = ed25519.PublicKeySize SignatureSize = ed25519.SignatureSize )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
func KeyFromBytes ¶
func (*Key) HasPrivateKey ¶
func (*Key) HasPublicKey ¶
Click to show internal directories.
Click to hide internal directories.