shh_newMessageFilter: New filter in the node.

Description Usage Arguments Value See Also Examples

View source: R/shh.R

Description

shh_newMessageFilter create a new filter within the node. This filter can be used to poll for new messages that match the set of criteria.

Usage

1
2
shh_newMessageFilter(symKeyID = NULL, privateKeyID = NULL,
  sig = NULL, minPow = NULL, topics = NULL, allowP2P = NULL)

Arguments

symKeyID

String - ID of the symmetric key for message decryption.

privateKeyID

String - ID of the key pair for message decryption.

sig

String - Public key of the signature.

minPow

Integer - Minimal PoW requirement for incomming messages.

topics

Array of Data - Possible topics (or partial topics).

allowP2P

Boolean - Indicates if this filter allows processing of direct peer-to-peer messages (which are not to be forwarded any further, because they might be expired).

Value

String - Filter identifier.

See Also

Other shh functions: gethr, shh_addPrivatekey, shh_addSymKey, shh_deleteKeyPair, shh_deleteSymKey, shh_generateSymKeyFromPassword, shh_getPrivateKey, shh_getPublicKey, shh_getSymKey, shh_hasKeyPair, shh_hasSymKey, shh_info, shh_markTrustedPeer, shh_newKeyPair, shh_newSymKey, shh_post, shh_setMaxMessageSize, shh_setMinPoW, shh_version

Examples

1
2
3
4
shh_newMessageFilter(symKeyID = '8e975ab6e0427396d3afb748678a09b036ebe389
c1c5a6d39560adabdfdb08ca')
shh_newMessageFilter(privateKeyID = '3794e3b08a2962b066e19869283974dc6b39
6cfc87cdcd69a2d269f5f1bab3cb', minPow = 0.3, allowP2P = TRUE)

gethr documentation built on May 2, 2019, 7:03 a.m.