func (r mockRepo) Remove(v GenericKey) error {
	if v.GetAddressHash() != nil {
		delete(r.addr[v.GetID()], v.GetAddressHash().String())
	}

	delete(r.keys, v.GetID())
	return nil
}
// Remove the given key from the repository
Remove the given key from the repository
// Remove the given key from the repository
func (r mockRepo) Remove(v GenericKey) error {
	if v.GetAddressHash() != nil {
		delete(r.addr[v.GetID()], v.GetAddressHash().String())
	}
	delete(r.keys, v.GetID())
	return nil
}
func ( r mockRepo ) Remove ( v GenericKey ) error { if v . GetAddressHash ( ) != nil { delete ( r . addr [ v . GetID ( ) ] , v . GetAddressHash ( ) . String ( ) ) } delete ( r . keys , v . GetID ( ) ) return nil }
Remove the given key from the repository
Remove the given key from the repository