4
votes
Accepted
Can you "undo" an nlockTime transaction by spending a single UTXO of it before lockTime's block happens?
Since one of the inputs of the nLockTime transaction has been spent already, the nLockTime transaction becomes invalid, as not all referenced inputs are available for spending.
This is described in ...
4
votes
Accepted
Can contracts programmed in bitcoins be used to scam merchants?
Simple answer, no. What you're most likely talking about are interesting ways to use script to pay to a m-of-n multisig, for example. Generally, when you get paid in bitcoin, you, as the merchant, get ...
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
Accepted
Proving to a title agency a bitcoin transaction occurred?
Things to prove:
Ownership
Address A belongs to Person 1
Person 1 controls the private key allowing spending from Address A
Address B belongs to Person 2
Person 2 controls the private key ...
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 ...
2
votes
Can contracts programmed in bitcoins be used to scam merchants?
No.
Bitcoin scripts only have control over the spendability of funds (yes, or no) and they don't have a view of where the output is being spent to. A concept of a system where they do have this ...
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 ...
1
vote
Can you "undo" an nlockTime transaction by spending a single UTXO of it before lockTime's block happens?
Wallet Y won't receive payment until nLockTime condition passed and transaction included into a block.
AFAIK most peers won't relay nlocktime with 1 month in the future.
https://bitcoin....
1
vote
Using Bitcoin for Bond Certificates
OpenAssets and CounterParty are the most similar projects I can think of, but I'm sure it doesn't have all of the features you are looking for. You may also be interested in Overstock's Medici project....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
contracts × 45script × 11
transactions × 6
blockchain × 5
locktime × 5
escrow × 5
multi-signature × 3
security × 2
altcoin × 2
trading × 2
encryption × 2
trust × 2
smartcontracts × 2
colored-coins × 2
open-transactions × 2
loans × 2
oracle × 2
wallet × 1
bitcoind × 1
address × 1
json-rpc × 1
client × 1
hash × 1
development × 1
mining-profitability × 1