public HandshakeParty(HandshakeMaster master, string role, Logger logger) { m_logger = logger; HandshakeMaster.MemberCredetials serverCredentials = master.issueCredentialsForClient(role); m_member = new HandshakeMember(serverCredentials.secret, serverCredentials.pseudonym, serverCredentials.role); m_logger.WriteLine(role + " pseudonym: " + m_member.getPseudonym()); }
public MainPage() { this.InitializeComponent(); m_logger = new Logger(this.textBox); // This one must be called to initialize the random function PbcProxy.PBC.init(RANDOM_SEED); #if false // Test PBC PbcProxy.PBC.test(); // Test pairing proxy Utils.testPairings(); #endif m_master = new HandshakeMaster(); m_scanner = new Scanner(m_master, m_logger); m_advertiser = new Advertiser(m_master, m_logger); }
public Advertiser(HandshakeMaster master, Logger logger) : base(master, SERVER_ROLE, logger) { }
public Scanner(HandshakeMaster master, Logger logger) : base(master, CLIENT_ROLE, logger) { }