async generateIdentityKey(number) {
        const nb = number || 1;
        if (typeof nb !== 'number' || nb < 1) {
            throw new Error(`Invalid number of identity keys to generate: ${nb}`);
        }

        const keys = [];
        for (let i = 0; i < nb; ++i) {
            keys.push(await this.cli.call('generate-identity-key'));
        }

        return keys;
    }
/**
     * Generates a new identity key from the wallet seed and stores it into walletd.
     * New keys are generated from the same mnemonic seed used for FCT and EC addresses.
     * @async
     * @param {number} [number=1] - Number of identity keys to generate.
     * @returns {{public: string, secret: string}}
     */
Generates a new identity key from the wallet seed and stores it into walletd.
New keys are generated from the same mnemonic seed used for FCT and EC addresses.
@async
@param {number} [number=1] - Number of identity keys to generate.
@returns {{public: string, secret: string}}
Generates a new identity key from the wallet seed and stores it into walletd . New keys are generated from the same mnemonic seed used for FCT and EC addresses . @async @param { number } [ number = 1 ] - Number of identity keys to generate . @returns {{ public : string secret : string }}
async generateIdentityKey(number) {
        const nb = number || 1;
        if (typeof nb !== 'number' || nb < 1) {
            throw new Error(`Invalid number of identity keys to generate: ${nb}`);
        }
        const keys = [];
        for (let i = 0; i < nb; ++i) {
            keys.push(await this.cli.call('generate-identity-key'));
        }
        return keys;
    }
async generateIdentityKey ( number ) { const nb = number || 1 ; if ( typeof nb !== 'number' || nb < 1 ) { throw new Error ( ` ${ nb } ` ) ; } const keys = [ ] ; for ( let i = 0 ; i < nb ; ++ i ) { keys . push ( await this . cli . call ( 'generate-identity-key' ) ) ; } return keys ; }
Generates a new identity key from the wallet seed and stores it into walletd.
Generates a new identity key from the wallet seed and stores it into walletd .