Bitcoin Forum
May 09, 2024, 07:25:06 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is it possible for one Script to add a sum to another script?  (Read 45 times)
MoneyBomber (OP)
Jr. Member
*
Offline Offline

Activity: 105
Merit: 6


View Profile
January 01, 2024, 06:15:03 PM
 #1

Is it possible for one bitcoin script to be responsible for handling a calculation and taking the result and adding it to the sum in another script?
I'm trying to understand the limits of Bitcoin.

I understand bitcoin scripts aren't turing complete, but I do believe they can perform a "babylonian square root" in a limited form if the code for that loop is simply repeated.
The gas cost of ethereum limit the precision of this type of function anyway.

My goal is to bring my governance protocol to bitcoin. It is derived from a project that initially started as a pyramid scheme called proof of weak hands. In that smart contract they use the babylonian square root function.

I've asked chatGPT, and it seems scripts can be linked together, but I wanted to ask here just to be sure it's not hallucinating.
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!