How to use the @cityofzion/neon-core/lib/wallet.Wallet function in @cityofzion/neon-core

To help you get started, we’ve selected a few @cityofzion/neon-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NeoNextClub / neoline / src / app / core / services / neon.service.ts View on Github external
public clearCache() {
        this._wallet = new Wallet();
        this._walletArr = [];
        this.$wallet = new Subject();
    }
github NeoNextClub / neoline / src / app / core / services / neon.service.ts View on Github external
public parseWallet(src: any): Wallet {
        if (!wallet) {
            return null;
        }
        try {
            const w = new Wallet(src);
            if (!w.accounts.length) {
                return null;
            }
            return w;
        } catch (e) {
            return null;
        }
    }
    private generatePrivateKey(): string {