Skip to content
Snippets Groups Projects
Select Git revision
  • e4aeda3bc9030c89d477eb0698134aae35a49d6f
  • master default
  • notifications_test_ndf
  • main_ud_local_ndf
  • crust-integration
  • new-client
  • internal_build
  • FE-1054_test_net_ndf
  • FE-1053_change_retry_behavior
  • app_modularization_refactor
  • FE_1020_remove_version_check
  • FE-992_android_migration
  • XX-4094_add_fact_panic
  • FE-990_retry_reset_request
  • development
  • 2.92
  • 2.9
  • 2.8
  • 2.7
  • 2.5
  • 2.3
  • 2.2
  • 2.1
  • 2.04
  • 2.03
  • 2.02
26 results

Gemfile

Blame
  • This project manages its dependencies using Bundler. Learn more
    udMessages.proto 1.43 KiB
    ////////////////////////////////////////////////////////////////////////////////
    // Copyright © 2022 xx foundation                                             //
    //                                                                            //
    // Use of this source code is governed by a license that can be found in the  //
    // LICENSE file.                                                              //
    ////////////////////////////////////////////////////////////////////////////////
    
    // Call ./generate.sh to generate the protocol buffer code
    
    syntax = "proto3";
    
    package parse;
    option go_package = "ud";
    
    // Contains the Hash and its Type
    message HashFact {
      bytes hash = 1;
      int32 type = 2;
    }
    
    // Describes a user lookup result. The ID, public key, and the
    // facts inputted that brought up this user.
    message Contact {
      bytes userID = 1;
      bytes pubKey = 2;
      string username = 3;
      repeated HashFact trigFacts = 4;
    }
    
    // Message sent to UDB to search for users
    message SearchSend {
      // PublicKey used in the registration
      repeated HashFact fact = 1;
    }
    
    // Message sent from UDB to client in response to a search
    message SearchResponse {
      // ID of the session created
      repeated Contact contacts = 1;
      string error = 3;
    }
    
    // Message sent to UDB for looking up a user
    message LookupSend {
      bytes userID = 1;
    }
    
    // Message sent from UDB for looking up a user
    message LookupResponse {
      bytes pubKey = 1;
      string username = 2;
      string error = 3;
    }