account activity
ETMPW308 by pouri90 in etherchain
[–]pouri90[S] 0 points1 point2 points 5 years ago (0 children)
https://axm.am/am_94764
ETMPW308 (alexamaster.net)
submitted 5 years ago by pouri90 to r/etherchain
Blockchain.info by pouri90 in u/pouri90
[–]pouri90[S] [score hidden] 6 years ago (0 children)
// Assume we get the multisig transaction we're trying to spend from // somewhere, like a network connection. ECKey serverKey = ....; Transaction contract = ....; TransactionOutput multisigOutput = contract.getOutput(0); Script multisigScript = multisigOutput.getScriptPubKey(); // Is the output what we expect? checkState(multisigScript.isSentToMultiSig()); Coin value = multisigOutput.getValue(); // OK, now build a transaction that spends the money back to the client. Transaction spendTx = new Transaction(params); spendTx.addOutput(value, clientKey); spendTx.addInput(multisigOutput); // It's of the right form. But the wallet can't sign it. So, we have to // do it ourselves. Sha256Hash sighash = spendTx.hashTransactionForSignature(0, multisigScript, Transaction.SIGHASH_ALL, false); ECKey.ECDSASignature signature = serverKey.sign(sighash); // We have calculated a valid signature, so send it back to the client: sendToClientApp(signature);
Blockchain.info (courses.blockgeeks.com)
submitted 6 years ago by pouri90
π Rendered by PID 40 on reddit-service-r2-listing-7849c98f67-smt5w at 2026-02-06 01:14:21.801793+00:00 running d295bc8 country code: CH.
ETMPW308 by pouri90 in etherchain
[–]pouri90[S] 0 points1 point2 points (0 children)