code: function (priv) {
          if (utils.isString(priv) || Buffer.isBuffer(priv)) {
              this.privKey = priv.length === 32 ? priv : Buffer(priv, 'hex');
              this.pubKey = null;
              this.address = null;
          }
      }
docs: Private Key setter.
  
  @param {Hash} priv - Account private key.
  
  @example account.setPrivateKey("ac3773e06ae74c0fa566b0e421d4e391333f31aef90b383f0c0e83e4873609d6");