import { Shh } from "https://deno.land/x/web3@v0.11.1/packages/web3-shh/types/index.d.ts";
Properties
Methods
addPrivateKey(privateKey: string, callback?: (error: Error, privateKey: string) => void): Promise<string>
addSymKey(symKey: string, callback?: (error: Error, key: string) => void): Promise<string>
deleteKeyPair(id: string, callback?: (error: Error, result: boolean) => void): Promise<boolean>
deleteMessageFilter(id: string, callback?: (error: Error, result: string) => void): Promise<boolean>
deleteSymKey(id: string, callback?: (error: Error, result: boolean) => void): Promise<boolean>
generateSymKeyFromPassword(password: string, callback?: (error: Error, key: string) => void): Promise<string>
getFilterMessages(id: string, callback?: (error: Error, result: string) => void): Promise<Notification[]>
getPrivateKey(id: string, callback?: (error: Error, privateKey: string) => void): Promise<string>
getPublicKey(id: string, callback?: (error: Error, publicKey: string) => void): Promise<string>
getSymKey(id: string, callback?: (error: Error, key: string) => void): Promise<string>
getVersion(callback?: (error: Error, version: string) => void): Promise<string>
hasKeyPair(id: string, callback?: (error: Error, result: boolean) => void): Promise<boolean>
hasSymKey(id: string, callback?: (error: Error, result: boolean) => void): Promise<boolean>
markTrustedPeer(enode: string, callback?: (error: Error, result: boolean) => void): Promise<boolean>
newKeyPair(callback?: (error: Error, key: string) => void): Promise<string>
newMessageFilter(options?: SubscriptionOptions, callback?: (error: Error, result: string) => void): Promise<string>
newSymKey(callback?: (error: Error, key: string) => void): Promise<string>
post(object: PostWithSymKey | PostWithPubKey, callback?: (error: Error, result: string) => void): Promise<string>
setMaxMessageSize(size: number, callback?: (error: Error, result: boolean) => void): Promise<boolean>
setMinPoW(pow: number, callback?: (error: Error, result: boolean) => void): Promise<boolean>
setProvider(provider: provider): boolean
subscribe(): Subscribe
Static Properties
readonly
providers: Providers