Skip to content
Snippets Groups Projects
Commit 6e447137 authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

made skeleton for remove fact

parent 83d5c7af
No related branches found
No related tags found
No related merge requests found
package ud
import (
"gitlab.com/elixxir/comms/client"
"gitlab.com/xx_network/comms/connect"
)
type Manager struct{
comms *client.Comms
host *connect.Host
privKey *
}
package ud
import (
"gitlab.com/elixxir/client/interfaces/contact"
"gitlab.com/elixxir/comms/client"
"gitlab.com/xx_network/comms/connect"
"gitlab.com/xx_network/comms/messages"
"gitlab.com/xx_network/crypto/signature/rsa"
)
type removeFactComms interface{
SendDeleteMessage(host *connect.Host, message *messages.AuthenticatedMessage)
}
func (m *Manager)RemoveFact(fact contact.Fact)error{
return m.removeFact(fact,m.comms)
}
func (m *Manager)removeFact(fact contact.Fact, SendDeleteMessage removeFactComms)error {
//digest the fact
fact.Stringify()
//sign the fact
rsa.Sign()
//constuct the message
//send the message
//return the 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