2020-05-22 06:25:09 +00:00
|
|
|
# Alpha - Currently implemented in v2
|
2020-04-29 05:54:03 +00:00
|
|
|
proc waku_version(): string
|
2020-09-11 07:49:45 +00:00
|
|
|
# TODO Deprecate old waku_publish, requires adjust simulation code etc
|
2020-07-23 02:53:29 +00:00
|
|
|
proc waku_publish(topic: string, message: seq[byte]): bool
|
2020-09-11 07:49:45 +00:00
|
|
|
# TODO This should be properly done with rpc types, etc.
|
|
|
|
proc waku_publish2(topic: string, message: seq[byte]): bool
|
2020-05-22 07:35:31 +00:00
|
|
|
proc waku_subscribe(topic: string): bool
|
|
|
|
#proc waku_subscribe(topic: string, handler: Topichandler): bool
|
2020-04-29 05:54:03 +00:00
|
|
|
|
2020-05-22 06:25:09 +00:00
|
|
|
# NYI
|
2020-05-27 04:25:02 +00:00
|
|
|
#proc waku_info(): WakuInfo
|
|
|
|
#proc waku_setMaxMessageSize(size: uint64): bool
|
|
|
|
#proc waku_setMinPoW(pow: float): bool
|
|
|
|
#proc waku_markTrustedPeer(enode: string): bool
|
|
|
|
#
|
|
|
|
#proc waku_newKeyPair(): Identifier
|
|
|
|
#proc waku_addPrivateKey(key: string): Identifier
|
|
|
|
#proc waku_deleteKeyPair(id: Identifier): bool
|
|
|
|
#proc waku_hasKeyPair(id: Identifier): bool
|
|
|
|
#proc waku_getPublicKey(id: Identifier): PublicKey
|
|
|
|
#proc waku_getPrivateKey(id: Identifier): PrivateKey
|
|
|
|
#
|
|
|
|
#proc waku_newSymKey(): Identifier
|
|
|
|
#proc waku_addSymKey(key: string): Identifier
|
|
|
|
#proc waku_generateSymKeyFromPassword(password: string): Identifier
|
|
|
|
#proc waku_hasSymKey(id: Identifier): bool
|
|
|
|
#proc waku_getSymKey(id: Identifier): SymKey
|
|
|
|
#proc waku_deleteSymKey(id: Identifier): bool
|
|
|
|
#
|
|
|
|
#proc waku_newMessageFilter(options: WakuFilterOptions): Identifier
|
|
|
|
#proc waku_deleteMessageFilter(id: Identifier): bool
|
|
|
|
#proc waku_getFilterMessages(id: Identifier): seq[WakuFilterMessage]
|
|
|
|
##proc waku_post(message: WakuPostMessage): bool
|
|
|
|
#
|
|
|
|
#proc wakusim_generateTraffic(amount: int): bool
|
|
|
|
#proc wakusim_generateRandomTraffic(amount: int): bool
|