Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewKeyFromSeed = ed25519.NewKeyFromSeed
Functions ¶
func SignBase64 ¶
func SignBase64(key PrivateKey, message []byte) (signature string, err error)
Types ¶
type PrivateKey ¶
type PrivateKey = ed25519.PrivateKey
type TomlPrivateKeyV0 ¶
func (*TomlPrivateKeyV0) GeneratePrivateKey ¶
func (b *TomlPrivateKeyV0) GeneratePrivateKey() (err error)
func (TomlPrivateKeyV0) GetPrivateKey ¶
func (b TomlPrivateKeyV0) GetPrivateKey() PrivateKey
func (*TomlPrivateKeyV0) GetPublicKey ¶
func (b *TomlPrivateKeyV0) GetPublicKey() TomlPublicKeyV0
func (*TomlPrivateKeyV0) SetPrivateKey ¶
func (b *TomlPrivateKeyV0) SetPrivateKey(key crypto.PrivateKey)
type TomlPublicKeyV0 ¶
func (TomlPublicKeyV0) GetPublicKey ¶
func (b TomlPublicKeyV0) GetPublicKey() PublicKey
func (*TomlPublicKeyV0) SetPublicKey ¶
func (b *TomlPublicKeyV0) SetPublicKey(key crypto.PublicKey)
Click to show internal directories.
Click to hide internal directories.