lse);


var tryInputParse = function () {
    if (isValidPrivateKey(this.value)) {
        wallet = new Wallet({privateKey: this.value});
        populatePageData();
    }
};
$id('privateKeyInput').addEventListener('paste', tryInputParse);
$id('privateKeyInput').addEventListener('keyup', tryInputParse);
$id('processKeyInput').addEventListener('click', function () {
    if (!isValidPrivateKey(this.value)) {
        $id('processKeyWarning').style.display = 'block';
        return;
    }
    tryInputParse();
}