MCPcopy Index your code
hub / github.com/Savjee/SavjeeCoin / createSignedTx

Function createSignedTx

tests/helpers.js:6–12  ·  view source on GitHub ↗
(amount = 10)

Source from the content-addressed store, hash-verified

4const signingKey = ec.keyFromPrivate('3d6f54430830d388052865b95c10b4aeb1bbe33c01334cf2cfa8b520062a0ce3');
5
6function 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
14function createBCWithMined() {
15 const blockchain = new Blockchain();

Callers 3

blockchain.test.jsFile · 0.85
block.test.jsFile · 0.85

Calls 1

signMethod · 0.95

Tested by

no test coverage detected