Home Reference Source
public class | source

NanoWalletProtocol

You can directly use an instance of this class. nanoWalletProtocol

Nano Wallet which virtualize the consensus using SPV on the Accountant Tree

Constructor Summary

Public Constructor
public

Member Summary

Private Members
private
private
private

_sockets: *[]

Method Summary

Public Methods
public
public
public

virtualizeAddress(address: *, sockets: *)

public
Private Methods
private

_disconnectSocked(socket: *)

private

async _initializeSocket(socket: *): boolean

private

_subscribeAddress(socket: *, address: *): *

private

_subscribeTransactions(socket: *, address: *): *

Public Constructors

public constructor() source

Private Members

private _allowConsensus: boolean source

private _emitterOn: boolean source

private _sockets: *[] source

Public Methods

public async initializeNanoProtocol() source

public initializeNanoProtocolWallet(wallet: *) source

Params:

NameTypeAttributeDescription
wallet *

public virtualizeAddress(address: *, sockets: *) source

Params:

NameTypeAttributeDescription
address *
sockets *

public virtualizeWallet(socket: *): boolean source

Params:

NameTypeAttributeDescription
socket *

Return:

boolean

Private Methods

private _disconnectSocked(socket: *) source

Params:

NameTypeAttributeDescription
socket *

private async _initializeSocket(socket: *): boolean source

Params:

NameTypeAttributeDescription
socket *

Return:

boolean

private _subscribeAddress(socket: *, address: *): * source

Params:

NameTypeAttributeDescription
socket *
address *

Return:

*

private _subscribeTransactions(socket: *, address: *): * source

Params:

NameTypeAttributeDescription
socket *
address *

Return:

*