Skip to content
Snippets Groups Projects
Select Git revision
  • fd9629d858246179e5d5435814af0253ad93e48e
  • release default protected
  • master protected
  • hotfix/GrpcParameters
  • XX-4441
  • tls-websockets
  • hotfix/allow-web-creds
  • hotfix/nilCert
  • XX-3566_const_time_token_compare
  • AceVentura/AccountBackup
  • dev
  • waitingRoundsRewrite
  • fullRateLimit
  • XX-3564/TlsCipherSuite
  • XX-3563/DisableTlsCheck
  • notls
  • url-repo-rename
  • perftuning
  • Anne/CI2
  • AddedGossipLogging
  • hotfix/connectionReduction
  • v0.0.6
  • v0.0.4
  • v0.0.5
  • v0.0.3
  • v0.0.2
  • v0.0.1
27 results

host.go

Blame
  • 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;
    }