PEER

A peer could be a user with a single agent or multiple agents. It is a server and a client as well in the peer to peer network. The essential character of PEER is equlity. Every peer have the same right of initiation, management, voting and so on.

Formally, peer could be defined as a tuple (P; p; a; d; q):
p: GID of the peer
p: set of properties declared by the peer, such as name and email
a: A set of Internet addresses
d: the date and time when p was declared
q: A signature which is computed as: q = SIGN(SK(P), p)

A drug and draw technique could be used to add a new peer.


"peer_ID" INTEGER PRIMARY KEY NOT NULL,
"global_peer_ID" TEXT UNIQUE ON CONFLICT FAIL,
"global_peer_ID_hash" TEXT UNIQUE ON CONFLICT FAIL,
"name" TEXT,
"broadcastable" INTEGER DEFAULT (0),
"slogan" TEXT,
"used" INTEGER DEFAULT (0),
"blocked" INTEGER DEFAULT (0),
"hash_alg" TEXT,
"version" TEXT,
"signature" BLOB,
"picture" BLOB,
"plugin_info" TEXT,
"exp_avg" REAL,
"experience" INTEGER,
"filtered" INTEGER DEFAULT (0),
"last_sync_date" TEXT,
"last_reset" TEXT,
"emails" TEXT,
"phones" TEXT,
"urls" TEXT,
"plugins_msg" BLOB,
"revoked" INTEGER DEFAULT (0),
"creation_date" TEXT,
"arrival_date" TIMESTAMP,
"preferences_date" TIMESTAMP,






Back To Menu