Tangem Wallet Pack of 2 - Secure Crypto Wallet - Trusted Cold Storage for Bitcoin, Ethereum, NFT's &

Tangem Wallet Pack of 2 - Secure Crypto Wallet - Trusted Cold Storage for Bitcoin, Ethereum, NFT's &
Key item features Ultimate Security: Generates a private key that remains on the card, safeguarding crypto and NFTs from hackers with EAL6+ certification and audited firmware. Versatile Compatibility: Manages over 13,000 tokens across 70+ blockchains, supporting DeFi, NFTs, and DeEx without wires, Bluetooth, or USB. Effortless Operation: Utilizes NFC for secure transactions via a mobile device and the Tangem app, enabling buying and selling crypto with various payment methods. Smart Backup: Features a second Tangem Wallet as a backup, eliminating the need for paper, pictures, or seed phrases for recovery. Durable Design: Boasts IP68 protection against environmental conditions, ensuring longevity and robust physical security. Comprehensive Support: Compatible with Bitcoin, Ethereum, Solana, XRP, USDT, and over 6,000 cryptocurrencies, integrating with dApps and WalletConnect.

LBANK

mandatory-script-verify-flag-failed (Signature must be zero for failed CHECK(MULTI)SIG operation)

I want to send raw transaction But, I have a problem. I working with regtest node. I generated p2pkh address with seed-phrase mjnJj4TFyU4jYrTVUHMA632UmuUMssZHq4

Then generatetoaddress 101 block as always

My unspent

[
    {
        "txid": "6481bbba699177c735c3e336735674641459bbbe2aba85a1b8be233df8f36938",
        "vout": 0,
        "address": "mjnJj4TFyU4jYrTVUHMA632UmuUMssZHq4",
        "label": "",
        "scriptPubKey": "76a9142ec7cc30ef662cf7c757e3460995f2682871207688ac",
        "amount": 50,
        "confirmations": 101,
        "spendable": true,
        "solvable": false,
        "parent_descs": [
            "addr(mjnJj4TFyU4jYrTVUHMA632UmuUMssZHq4)#rwelz9me"
        ],
        "safe": true
    }
]

and after that i make transaction just send little bit sats to another empty address

My steps: 1 . make empty transaction with 1 input and 2 outputs (1 for change)

CREATE TRANSACTION START
== Amount to send (sats): 100000000
== Fee (sats): 1000000
== Get UTXO id for pay: 6481bbba699177c735c3e336735674641459bbbe2aba85a1b8be233df8f36938
== Reversed UTXO id: 3869f3f83d23beb8a185ba2abebb59146474567336e3c335c7779169babb8164
== Full generated tx: {"version":1,"inputs":[{"txid":"3869f3f83d23beb8a185ba2abebb59146474567336e3c335c7779169babb8164","vout":0,"scriptSig":"76a9142ec7cc30ef662cf7c757e3460995f2682871207688ac","sequence":4294967295}],"outputs":[{"value":100000000,"scriptPubKey":"76a914796e2d78cff63c21f8ee823052b5362bc2cc2af388ac"},{"value":4899000000,"scriptPubKey":"76a914929b53a5d57f12e924b9c6d58524faec5c5cfee788ac"}],"locktime":0}
CREATE TRANSACTION END
  1. then serialize it
SERIALIZATION START
== Version (4 bytes LE):  01000000
== Input Count (1 bytes Compact Size): 01
==== TXID (32 bytes Natural Byte Order): 3869f3f83d23beb8a185ba2abebb59146474567336e3c335c7779169babb8164
==== VOut (4 bytes LE):  00000000
==== ScriptSig Size (1 bytes Compact Size): 19
==== ScriptSig (25 bytes): 76a9142ec7cc30ef662cf7c757e3460995f2682871207688ac
==== Sequence (4 bytes LE):  ffffffff
== Output Count: (1 bytes Compact Size): 02
==== Amount (8 bytes LE): 00e1f50500000000
==== ScriptPubKey Size (1 bytes Compact Size): 19
==== ScriptPubKey (25 bytes): 76a914796e2d78cff63c21f8ee823052b5362bc2cc2af388ac
==== Amount (8 bytes LE): c0ce002401000000
==== ScriptPubKey Size (1 bytes Compact Size): 19
==== ScriptPubKey (25 bytes): 76a914929b53a5d57f12e924b9c6d58524faec5c5cfee788ac
==== Locktime (4 bytes LE): 00000000
== SIGHASH_ALL (4 bytes LE):  01000000
== Final Buffer: 01000000013869f3f83d23beb8a185ba2abebb59146474567336e3c335c7779169babb8164000000001976a9142ec7cc30ef662cf7c757e3460995f2682871207688acffffffff0200e1f505000000001976a914796e2d78cff63c21f8ee823052b5362bc2cc2af388acc0ce0024010000001976a914929b53a5d57f12e924b9c6d58524faec5c5cfee788ac0000000001000000
SERIALIZATION END
  1. Sign it
 SIGNING START
== WIF: cRcGtESEBF1ztuwtftM7Ds9Mcu1x6PtCK1TiXKTvShZF43ZtVYVY
== Private Key: 7828a7d17099c3d5baeaa4a8de47d97038e9cefd62d5d04e4736e47fe0a81779
== Public Key: 03a1dbe0aea6bf483bc00ed3d101f54e0b1e06e9c2e5103de5950b135ff055f107
== Double sha256 of serialized tx: 08b7c9af7310ff1dbeea59575dd851565b52046a03631351b5aec94100655b91
== Der signature with sighash: 304502210085016fb2b7cc850ca2560da9e5873c922643388af63ae5a496899acd6e94537c022077df3eba94465a22f764338a9200865a591c7998206c9fbcf22080d9152f45af01
== All size (1 bytes Compact Size): 6b
== Sig len (1 bytes Compact Size): 48
== Pub Key (1 bytes Compact Size): 21
== ScriptSig Size (1 bytes Compact Size): 6c
== ScriptSig (108 bytes): 6b48304502210085016fb2b7cc850ca2560da9e5873c922643388af63ae5a496899acd6e94537c022077df3eba94465a22f764338a9200865a591c7998206c9fbcf22080d9152f45af012103a1dbe0aea6bf483bc00ed3d101f54e0b1e06e9c2e5103de5950b135ff055f107
SIGNING END

What's wrong ? In DER signature? Not in my data and algo? Please help me. I wrote code for send raw transactions, research steps, but i guess i made a mistake somewhere



from Recent Questions - Bitcoin Stack Exchange https://ift.tt/UAHWEYL
via IFTTT

Popular posts from this blog

Crypto Exec Warns Tokenization Is Moving Faster Than Expected

Bitcoin Mining Could Be Strengthening The Ruble, Russian Central Bank Says

Nigerian SEC Partners With Police To Tackle Crypto Ponzi Schemes – Details