Generating Ethereum accounts and signing transactions in Javascript

Mnemonic:

**Note that in this demonstration application, this mnemonic will generate different sets of keys than Metamask or My Ether Wallet.**

Private Key: {{privKey.toString('hex')}}

Public Key: {{pubKey.toString('hex')}}

Ethereum address: {{ETHaddress}}

Transaction

{ nonce: '0x00', gasPrice: '0x09184e72a000', gasLimit: '0x2710', to: '0x31c1c0fec59ceb9cbe6ec474c31c1dc5b66555b6', value: '0x10', data: '0x7f7465737432000000000000000000000000000000000000000000000000000000600057', chainId: 1 }

Signed raw tx: { nonce: '0x00', gasPrice: '0x09184e72a000', gasLimit: '0x2710', to: '0x31c1c0fec59ceb9cbe6ec474c31c1dc5b66555b6', value: '0x00', data: '0x7f7465737432000000000000000000000000000000000000000000000000000000600057', v: {{'0x' + signedSample.v.toString('hex')}}, r: {{'0x' + signedSample.r.toString('hex')}}, s: {{'0x' + signedSample.v.toString('hex')}} }

Recovered address: {{recoveredAddress}}