Bitcoin Forum
July 02, 2024, 07:54:54 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Alternate cryptocurrencies / Announcements (Altcoins) / Re: BYTEBALL: Totally new consensus algorithm + private untraceable payments on: March 14, 2017, 12:00:26 PM
If IOTA will generate volume, it will open gate for byteball on other exchanges. Devs will have to learn how to work with DAG, and become more comofortable with listing it.

1. Noone from IOTA team said that IOTA would go to exchanges next week.
2. IOTA is more about Tangle than about DAG, I can't explain the nuance without derailing this thread.

Tangle is the core here. Good job CFB.
2  Bitcoin / Development & Technical Discussion / Re: How to use script interpreter? on: March 14, 2017, 11:43:24 AM
I have extracted file interpreter.cpp from Bitcoin sources with dependencies.
I call:
Code:
EvalScript(stack, scriptOut, SCRIPT_VERIFY_STRICTENC, BaseSignatureChecker(), SIGVERSION_BASE);
scriptOut is "76a914592fc3990026334c8c6fb2b9da457179cdb5c68888ac":
OP_DUP OP_HASH160 N/A_20 [20 bytes] OP_EQUALVERIFY OP_CHECKSIG
But is error: at start, stack is empty and need OP_DUP opcode.
Next I try interpret input script, then output:
Code:
	int err = EvalScript(stack, scriptInp, SCRIPT_VERIFY_STRICTENC, BaseSignatureChecker(), SIGVERSION_BASE);
err = EvalScript(stack, scriptOut, SCRIPT_VERIFY_STRICTENC, BaseSignatureChecker(), SIGVERSION_BASE);
but is also badly.
How to use EvalScript and maybe VerifyScript instead?
p.s.I must use SCRIPT_VERIFY_STRICTENC or SCRIPT_VERIFY_NONE,SCRIPT_VERIFY_P2SH? class BaseSignatureChecker or TransactionSignatureChecker?
--Goal: acquire address from script (or addresses from multisig script) using Bitcoin script interperter

Try SCRIPT_VERIFY_P2SH, it should not cause any trouble
3  Alternate cryptocurrencies / Announcements (Altcoins) / Re: IOTA on: March 14, 2017, 11:25:53 AM
Tangle is very promising and it has been under development for two years. I don't really care about the exchange, hope tangle get the best future.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!