Skip to content
Snippets Groups Projects
Commit 81af270f authored by David Stainton's avatar David Stainton
Browse files

WIP

parent 117347ff
No related branches found
No related tags found
6 merge requests!510Release,!419rewrote the health tracker to both consider if there are waiting rounds and...,!371[Channel RSAtoPrivate] Implement Reverse Asymmetric in Client/Broadcast,!354Channels impl,!340Project/channels,!338Xx 4055/channel identity tracking
......@@ -28,28 +28,6 @@ const (
var startChannelNameServiceOnce sync.Once
var ErrChannelLeaseSignature = errors.New("failure to validate lease signature")
// NameService is an interface which encapsulates
// the user identity channel tracking service.
type NameService interface {
// GetUsername returns the username.
GetUsername() string
// GetChannelValidationSignature returns the validation
// signature and the time it was signed.
GetChannelValidationSignature() (signature []byte, lease time.Time)
// GetChannelPubkey returns the user's public key.
GetChannelPubkey() ed25519.PublicKey
// SignChannelMessage returns the signature of the
// given message.
SignChannelMessage(message []byte) (signature []byte, err error)
// ValidateChannelMessage
ValidateChannelMessage(username string, lease time.Time, pubKey ed25519.PublicKey, authorIDSignature []byte) bool
}
// loadRegistrationDisk loads a registrationDisk from the kv
// and returns the registrationDisk.
func loadRegistrationDisk(kv *versioned.KV) (registrationDisk, error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment