Documentation ¶
Index ¶
- func ClientPublicKey() common.PublicKey
- func ClientPublicKeyStr() string
- func DetachMarshalSign(msg common.BinaryMarshallable) *common.DetachedSignature
- func MarshalSign(msg common.BinaryMarshallable) common.Signature
- func Sign(d []byte) common.Signature
- func SignData(data []byte) common.Signature
- type KeyManager
- func (km *KeyManager) FilePath() (fp string)
- func (km *KeyManager) GenerateNewKey() (err error)
- func (km *KeyManager) InitKeyManager(path string, file string) (err error)
- func (km *KeyManager) LoadKeys(file *os.File) (err error)
- func (km *KeyManager) LoadOrGenerateKeys() (err error)
- func (km *KeyManager) WriteKeys(file *os.File) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientPublicKey ¶
func ClientPublicKeyStr ¶
func ClientPublicKeyStr() string
func DetachMarshalSign ¶
func DetachMarshalSign(msg common.BinaryMarshallable) *common.DetachedSignature
func MarshalSign ¶
func MarshalSign(msg common.BinaryMarshallable) common.Signature
Types ¶
type KeyManager ¶
type KeyManager struct {
// contains filtered or unexported fields
}
func (*KeyManager) FilePath ¶
func (km *KeyManager) FilePath() (fp string)
func (*KeyManager) GenerateNewKey ¶
func (km *KeyManager) GenerateNewKey() (err error)
func (*KeyManager) InitKeyManager ¶
func (km *KeyManager) InitKeyManager(path string, file string) (err error)
func (*KeyManager) LoadOrGenerateKeys ¶
func (km *KeyManager) LoadOrGenerateKeys() (err error)
Click to show internal directories.
Click to hide internal directories.