Class: PeerProfile

Database. PeerProfile


new PeerProfile(properties)

Describes a known network peer
Parameters:
Name Type Description
properties object
Properties
Name Type Description
identity string Hexidecimal identity key
contact object
Properties
Name Type Argument Default Description
hostname string Onion service address
port number Onion service virtual port
protocol string <optional>
https: Transport protocol
xpub string HD public extended key
index number Indentity key derivation index
agent string <optional>
User agent identifier
capacity object
Properties
Name Type Description
timestamp number Last capacity publication
available number Bytes available at host
allocated number Bytes allocated by host
reputation object
Properties
Name Type Description
score number Audit based reputation score
timestamp number Last scoring time
updated number Timestamp of last profile update
Source:

Methods


<static> methods.toString()

Returns a human readable string URI for the peer
Source:
Returns:
Type
string