func (s *Service) DeactivateAccount(info vault.AccountInfo) error {
	addrInfo := AddressInfo{
		Hash:        info.Address.Hash().String(),
		PublicKey:   info.GetActiveKey().PubKey,
		RoutingID:   info.RoutingID,
		Pow:         info.Pow.String(),
		RoutingInfo: RoutingInfo{},
	}

	return s.repo.DeleteAddress(&addrInfo, info.GetActiveKey().PrivKey)
}
// DeactivateAccount will deactivate an account (public key) on the keyserver. It can be activated again if the key is not yet purged
DeactivateAccount will deactivate an account (public key) on the keyserver. It can be activated again if the key is not yet purged
// DeactivateAccount will deactivate an account ( public key ) on the keyserver . It can be activated again if the key is not yet purged
func (s *Service) DeactivateAccount(info vault.AccountInfo) error {
	addrInfo := AddressInfo{
		Hash:        info.Address.Hash().String(),
		PublicKey:   info.GetActiveKey().PubKey,
		RoutingID:   info.RoutingID,
		Pow:         info.Pow.String(),
		RoutingInfo: RoutingInfo{},
	}
	return s.repo.DeleteAddress(&addrInfo, info.GetActiveKey().PrivKey)
}
func ( s * Service ) DeactivateAccount ( info vault . AccountInfo ) error { addrInfo := AddressInfo { Hash : info . Address . Hash ( ) . String ( ) , PublicKey : info . GetActiveKey ( ) . PubKey , RoutingID : info . RoutingID , Pow : info . Pow . String ( ) , RoutingInfo : RoutingInfo { } , } return s . repo . DeleteAddress ( & addrInfo , info . GetActiveKey ( ) . PrivKey ) }
DeactivateAccount will deactivate an account (public key) on the keyserver.
DeactivateAccount will deactivate an account ( public key ) on the keyserver .