Bitcoin Forum
November 09, 2024, 12:15:21 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin smart contract taproot  (Read 163 times)
alessandromerlettidepalo (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
November 17, 2021, 07:00:25 PM
 #1

Hello, I am a newbie, I can code, how can I use the taproot upgrade to code a smart contract involving BTC and not Eth?
DannyHamilton
Legendary
*
Offline Offline

Activity: 3486
Merit: 4831



View Profile
November 17, 2021, 07:30:05 PM
Merited by pooya87 (2)
 #2

Hello, I am a newbie, I can code, how can I use the taproot upgrade to code a smart contract involving BTC and not Eth?

That depends on what you want to accomplish.  Bitcoin Script is not Turing Complete, so depending on what you want to do, it may or may not be possible.
ABCbits
Legendary
*
Offline Offline

Activity: 3052
Merit: 8073


Crypto Swap Exchange


View Profile
November 18, 2021, 10:50:32 AM
Merited by pooya87 (2), Coin-1 (1)
 #3

It would be great if you're being specific about what do you want to do and how much do you know about Bitcoin? Assuming  you're not too familiar with Bitcoin script/protocol, but just want to look around you could try Minsc (https://min.sc). But if you want interact with Bitcoin script directly and looking for introduction material, check https://blockgeeks.com/guides/best-bitcoin-script-guide/. Take note it's somehow outdated and doesn't cover Taproot.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
pooya87
Legendary
*
Offline Offline

Activity: 3626
Merit: 11020


Crypto Swap Exchange


View Profile
November 19, 2021, 12:35:31 PM
Merited by NeuroticFish (2), BlackHatCoiner (2), ABCbits (1), hosseinimr93 (1)
 #4

Unfortunately people have been misled to think "smart contract" is the same as "token creation capability" whereas "smart contract" has a wider meaning. Essentially ever since the first bitcoin transaction we have been using "smart contracts" in bitcoin, usually in their simplest form but with the ability to create more complex ones such as the HTLC ones used for second layer.
However, bitcoin doesn't and will probably never have the "token creation capability", at least not in the same sense as token creation platforms such as ethereum have. You can use Omni layer to create tokens (which is what Tether/USDT started with).

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4361

<insert witty quote here>


View Profile
November 19, 2021, 10:06:51 PM
Merited by NeuroticFish (1), BlackHatCoiner (1)
 #5

bitcoin doesn't and will probably never have the "token creation capability"
Thankfully...

Can you imagine what would happen to the mempool, network load and fees if someone created a Bitcoin version of "CrypoKitties" Shocked Undecided Roll Eyes

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
BlackHatCoiner
Legendary
*
Offline Offline

Activity: 1694
Merit: 8326


Fiatheist


View Profile WWW
November 21, 2021, 08:17:59 PM
Last edit: November 22, 2021, 12:19:51 PM by BlackHatCoiner
Merited by pooya87 (2)
 #6

Hello, I am a newbie, I can code, how can I use the taproot upgrade to code a smart contract involving BTC and not Eth?
The taproot upgrade isn't meant to introduce token creation. However, it can be used to:

  • Improve your privacy. The transactions which open lightning channels won't seem differently in the block chain. Also, with MAST and Schnorr signatures, it can obfuscate the final destination. it can make indistinguishable M-of-N addresses from 1-of-1.
  • Make big transactions' fees lower such as the ones with multi-sig.

If you're a newbie, I would recommend you to start learning.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
pooya87
Legendary
*
Offline Offline

Activity: 3626
Merit: 11020


Crypto Swap Exchange


View Profile
November 22, 2021, 04:22:31 AM
Merited by BlackHatCoiner (4), ABCbits (1)
 #7

with MAST and Schnorr signatures, it can obfuscate the final destination.
What do you mean by that?
The "destination" is the outputs of the transaction, how can you obfuscate the outputs by using Schnorr signatures or MAST? The only thing that gets obfuscated is the "details" of the "signature", like a multi sig not looking any different than a single sig while the destination remains the same, the same address and the same amount obvious for anyone to see.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
BlackHatCoiner
Legendary
*
Offline Offline

Activity: 1694
Merit: 8326


Fiatheist


View Profile WWW
November 22, 2021, 12:18:39 PM
 #8

What do you mean by that?

Sorry, that's what I meant! Not the destination. It just makes indistinguishable multi-sig transactions.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!