Abstract Optional options: anyStatic prefixedRest ...args: any[]Optional context: anyAbstract addressAbstract attachMethod to register user's public key, so other users can discover it and send him messages.
Account for which connection should occur
public key to attach to user's address
version of the key (e.g. YlideKeyVersion.KEY_V3)
registrar code (e.g. 1 for Ylide Social Hub)
Optional options: anyadditional options for this wallet (e.g. "network" for EVM-wallets)
Abstract blockchainAbstract decryptMethod to decrypt message key using native wallet encryption system
Account of the recipient
Public key of the sender (needed to calculate shared secret key)
Encrypted message key bytes
Abstract disconnectMethod to request wallet to revoke authenticaion of this app
Calls each of the listeners registered for a given event.
Rest ...args: any[]Return an array listing the events for which the emitter has registered listeners.
Abstract getMethod to get account currently authenticated by the wallet for this app
Abstract getAbstract getMethod to get Ylide faucet service for this wallet
Optional options: anyadditional options for this wallet (e.g. "faucetType" for EVM-wallets)
Abstract initAbstract isAbstract isReturn the number of listeners listening to a given event.
Return the listeners registered for a given event.
Optional fn: ((...args: any[]) => void)Rest ...args: any[]Optional context: anyOptional once: booleanOptional context: anyOptional context: anyOptional context: anyAdd a one-time listener for a given event.
Rest ...args: any[]Optional context: anyRemove all listeners, or those of the specified event.
Optional event: WalletEventRemove the listeners of a given event.
Optional fn: ((...args: any[]) => void)Rest ...args: any[]Optional context: anyOptional once: booleanAbstract requestMethod to request wallet to authenticate some account for this app
Abstract sendMethod to publish non-encrypted broadcasted message using Ylide Protocol.
Account from which publish should occur
broadcasting feedId to publish to
raw bytes content to publish
Optional options: anyadditional options for this wallet (e.g. "network" for EVM-wallets)
Abstract sendMethod to publish encrypted direct message using Ylide Protocol.
Account from which publish should occur
mailing feedId to publish to (usually YLIDE_MAIN_FEED_ID)
raw bytes content to publish
array of recipients (address-public key pairs)
Optional options: anyadditional options for this wallet (e.g. "network" for EVM-wallets)
Abstract signMethod used to create Ylide keypair: it gets signature from the wallet for a certain magicString
Account for which you request signature
string which you get from YlideKeysRegistry
Protected switchAbstract walletGenerated using TypeDoc
Description
It's an abstract class designated to define an interface to send messages through blockchain and publish public keys
Example
Example of how to define your own ancestor: