3
votes
Accepted
Creating an OP_CSV transaction with bitcoinjs
In bitcoin-js you could do something like this
aliceToBobRedeemScript = bitcoin.script.compile([,
bitcoin.opcodes.OP_IF,
bitcoin.opcodes.OP_HASH160,
aliceSecretHash,
bitcoin.opcodes....
2
votes
What is the status of smart contracts in bitcoin?
Are contracts described here already available for use?
Yes.
Some of them are admittedly kind of arbitrary. For example, you can trustlessly sell someone a solution to a Sudoku. What does that mean? ...
2
votes
Accepted
Transaction Puzzles, Awareness and Questions
How would people (likely power users) even be aware that these funds were out there, and available to be redeemed if they solved the puzzles.
As you mentioned, it could be that either the creator of ...
1
vote
How to find the contract address
BTC does not have a 'contract address', it is the native token of the Bitcoin network.
As mentioned by Romo, a Metamask wallet cannot hold BTC. You will need a proper bitcoin wallet for that.
1
vote
Creating an OP_CSV transaction with bitcoinjs
To answer the question:
What does the timeDelay value represent? How can I e.g. lock the funds for 2 blocks?
Please see the following example using bitcoinjs:
let bip68 = require('bip68')
bip68....
1
vote
Creating an OP_CSV transaction with bitcoinjs
following the link https://github.com/bitcoin/bips/blob/master/bip-0112.mediawiki:
1.) the timeDelay in your example represents two possibilities:
// There are two kinds of nSequence: lock-by-...
1
vote
Spending transaction with custom output
Typically wallets do not support spending coins with any scriptPubKey except the ones they hand out themselves (in the sense that an address is a shorthand for a particulatlr scriptPubKey).
This is ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
contracts × 46script × 11
transactions × 6
blockchain × 6
locktime × 5
escrow × 5
multi-signature × 3
security × 2
altcoin × 2
trading × 2
encryption × 2
trust × 2
smartcontracts × 2
colored-coins × 2
futures × 2
loans × 2
open-transactions × 2
oracle × 2
wallet × 1
bitcoind × 1
address × 1
json-rpc × 1
client × 1
hash × 1
development × 1