(amount = 10)
| 4 | const signingKey = ec.keyFromPrivate('3d6f54430830d388052865b95c10b4aeb1bbe33c01334cf2cfa8b520062a0ce3'); |
| 5 | |
| 6 | function createSignedTx(amount = 10) { |
| 7 | const txObject = new Transaction(signingKey.getPublic('hex'), 'wallet2', amount); |
| 8 | txObject.timestamp = 1; |
| 9 | txObject.sign(signingKey); |
| 10 | |
| 11 | return txObject; |
| 12 | } |
| 13 | |
| 14 | function createBCWithMined() { |
| 15 | const blockchain = new Blockchain(); |
no test coverage detected