lib/account.js
function (priv) {
        if (utils.isString(priv) || Buffer.isBuffer(priv)) {
            this.privKey = priv.length === 32 ? priv : Buffer(priv, 'hex');
            this.pubKey = null;
            this.address = null;
        }
    }
function (priv) {
        if (utils.isString(priv) || Buffer.isBuffer(priv)) {
            this.privKey = priv.length === 32 ? priv : Buffer(priv, 'hex');
            this.pubKey = null;
            this.address = null;
        }
    }
function ( priv ) { if ( utils . isString ( priv ) || Buffer . isBuffer ( priv ) ) { this . privKey = priv . length === 32 ? priv : Buffer ( priv , 'hex' ) ; this . pubKey = null ; this . address = null ; } }
Private Key setter.

@param {Hash} priv - Account private key.

@example account.setPrivateKey("ac3773e06ae74c0fa566b0e421d4e391333f31aef90b383f0c0e83e4873609d6");
Private Key setter .