diff --git a/ud/channelIDTracking.go b/ud/channelIDTracking.go index bf4d185fbf64aa62688e744a341cce64ae675bc7..7d1dc3ed5a68dd6963204258a32374a80ec2b7b0 100644 --- a/ud/channelIDTracking.go +++ b/ud/channelIDTracking.go @@ -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) {