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 ...
Murch's user avatar
  • 71.6k
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 ...
Jimmy Song's user avatar
  • 7,729
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....
MandelDuck's user avatar
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 ...
Colin Dean's user avatar
  • 7,004
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? ...
Nick ODell's user avatar
  • 29.2k
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 ...
chytrik's user avatar
  • 17.9k
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 ...
Claris's user avatar
  • 15.3k
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.
chytrik's user avatar
  • 17.9k
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....
Ken Huang's user avatar
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-...
pebwindkraft's user avatar
  • 5,086
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 ...
Pieter Wuille's user avatar
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....
Farghaly's user avatar
  • 873
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....
morsecoder's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible