• About
  • FAQ
  • Privacy Policy
  • Support Forum
  • Disclaimer
  • Contact Us
Newsletter
Token Alytics
  • Home
  • Bitcoin
  • Blockchain
  • Cryptocurrency
  • Defi
  • Ripple
  • Ethereum
  • Metaverse
No Result
View All Result
  • Home
  • Bitcoin
  • Blockchain
  • Cryptocurrency
  • Defi
  • Ripple
  • Ethereum
  • Metaverse
No Result
View All Result
Token Alytics
No Result
View All Result
Home Bitcoin

taproot – Subscribe PSBT inputs through Golang

thecryptogoblin by thecryptogoblin
November 24, 2024
in Bitcoin
0
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter


I wrote the code to partially signal the PSBT. Briefly the server sends me a PSBT in Base64 format and N inputs to be signed. I encode the PSBT, signal the inputs with PK utilizing Schnorr technique. I replace it again to Base64 and ship it to the server (not finalised PSBT with unsigned enter 0).

That is the way it ought to appear to be after processing (right):

{
    { ‘outcome’: {
        { ‘inputs’: [
            {
                ‘has_utxo": true,
                ‘is_final": false,
                { ‘next’: { ‘updater’.
            },
            {
                ‘has_utxo": true,
                ‘is_final": false,
                { ‘next’: ‘finalizer’.
            },
            {
                ‘has_utxo": true,
                ‘is_final": false,
                { ‘next’: ‘finalizer’.
            }
        ],
        ‘payment": 1.328e-5,
        ‘subsequent": { ‘updater’
    },
    ‘error": null,
    ‘id": null
}

That is what it seems like after being processed by my script. The Updater standing ought to change to finaliser for these inputs I signed, however it does not (incorrect) :

{
    "outcome": {
        "inputs": [
            {
                "has_utxo": true,
                "is_final": false,
                "next": "updater"
            },
            {
                "has_utxo": true,
                "is_final": false,
                "next": "updater"
            }
        ],
        "estimated_vsize": 286,
        "estimated_feerate": 7.0e-5,
        "payment": 2.002e-5,
        "subsequent": "updater"
    },
    "error": null,
    "id": null
}

I checked signatures (they’re right), in contrast right partially signed PSBT and my very own (no variations besides txid, which will probably be distinctive each time), even tried to finalise PSBT (though it’s completely not want), however I nonetheless could not perceive why the standing of inputs stays Updater, when it’s despatched with finilize when signed through any pockets extension.I do not even perceive the place the error may very well be, since I do the logs BEFORE signing and AFTER signing, and their standing within the logs is up to date. Additionally, should you take the PSBT after my code has processed it and decoded it, it does replace and isn’t any totally different from the proper one apart from the TXid.

I am a whole beginner at coding, sorry if I stated something flawed

Related articles

XRP Should Crash First—Then Comes The $10 Rally, Says Analyst

XRP Breaks Out Throughout The Board—However One Factor’s Lacking

July 1, 2025
Shheikh.io Launches SHHEIKH Token Presale for Blockchain-Backed Actual‑World Asset Investments

Shheikh.io Launches SHHEIKH Token Presale for Blockchain-Backed Actual‑World Asset Investments

June 30, 2025


I wrote the code to partially signal the PSBT. Briefly the server sends me a PSBT in Base64 format and N inputs to be signed. I encode the PSBT, signal the inputs with PK utilizing Schnorr technique. I replace it again to Base64 and ship it to the server (not finalised PSBT with unsigned enter 0).

That is the way it ought to appear to be after processing (right):

{
    { ‘outcome’: {
        { ‘inputs’: [
            {
                ‘has_utxo": true,
                ‘is_final": false,
                { ‘next’: { ‘updater’.
            },
            {
                ‘has_utxo": true,
                ‘is_final": false,
                { ‘next’: ‘finalizer’.
            },
            {
                ‘has_utxo": true,
                ‘is_final": false,
                { ‘next’: ‘finalizer’.
            }
        ],
        ‘payment": 1.328e-5,
        ‘subsequent": { ‘updater’
    },
    ‘error": null,
    ‘id": null
}

That is what it seems like after being processed by my script. The Updater standing ought to change to finaliser for these inputs I signed, however it does not (incorrect) :

{
    "outcome": {
        "inputs": [
            {
                "has_utxo": true,
                "is_final": false,
                "next": "updater"
            },
            {
                "has_utxo": true,
                "is_final": false,
                "next": "updater"
            }
        ],
        "estimated_vsize": 286,
        "estimated_feerate": 7.0e-5,
        "payment": 2.002e-5,
        "subsequent": "updater"
    },
    "error": null,
    "id": null
}

I checked signatures (they’re right), in contrast right partially signed PSBT and my very own (no variations besides txid, which will probably be distinctive each time), even tried to finalise PSBT (though it’s completely not want), however I nonetheless could not perceive why the standing of inputs stays Updater, when it’s despatched with finilize when signed through any pockets extension.I do not even perceive the place the error may very well be, since I do the logs BEFORE signing and AFTER signing, and their standing within the logs is up to date. Additionally, should you take the PSBT after my code has processed it and decoded it, it does replace and isn’t any totally different from the proper one apart from the TXid.

I am a whole beginner at coding, sorry if I stated something flawed

Tags: GolanginputsPSBTSubscribetaproot
Share76Tweet47

Related Posts

XRP Should Crash First—Then Comes The $10 Rally, Says Analyst

XRP Breaks Out Throughout The Board—However One Factor’s Lacking

by thecryptogoblin
July 1, 2025
0

Purpose to belief Strict editorial coverage that focuses on accuracy, relevance, and impartiality Created by business specialists and meticulously reviewed...

Shheikh.io Launches SHHEIKH Token Presale for Blockchain-Backed Actual‑World Asset Investments

Shheikh.io Launches SHHEIKH Token Presale for Blockchain-Backed Actual‑World Asset Investments

by thecryptogoblin
June 30, 2025
0

Zurich, Switzerland, June thirtieth, 2025, ChainwireShheikh.io Introduces Tokenization Platform for Actual-World Luxurious Property, Together with Properties in Dubai, Lisbon, Rome,...

NFT Gross sales Fall From $1.6B In Q1 2025, To $1.3B In Q2 2025

NFT Gross sales Fall From $1.6B In Q1 2025, To $1.3B In Q2 2025

by thecryptogoblin
June 30, 2025
0

Be part of Our Telegram channel to remain updated on breaking information protection Regardless of struggling excessive volatility and intense...

$1 Million Drained From Pepe NFT Tasks in Coordinated Contract Hijack

$1 Million Drained From Pepe NFT Tasks in Coordinated Contract Hijack

by thecryptogoblin
June 30, 2025
0

A set of NFT collections tied to Matt Furie, the creator of the Pepe meme, and the ChainSaw studio have...

Bitcoin Miners Maintain On To Their Cash Regardless of Low Profitability — Particulars

Bitcoin Miners Maintain On To Their Cash Regardless of Low Profitability — Particulars

by thecryptogoblin
June 29, 2025
0

Trusted Editorial content material, reviewed by main trade consultants and seasoned editors. Advert Disclosure In response to the most recent...

Load More
  • Trending
  • Comments
  • Latest
CryptoRank Telegram Airdrop Information | How To Take part

CryptoRank Telegram Airdrop Information | How To Take part

September 7, 2024

bitcoin core – mandatory-script-verify-flag-failed (Script evaluated with out error however completed with a false/empty prime stack component) on wrapped SegWit enter

December 24, 2024
How Essential is Jito Solana MEV Bot Growth for the Cryptocurrency Ecosystem?

How Essential is Jito Solana MEV Bot Growth for the Cryptocurrency Ecosystem?

August 1, 2024
Lumina Hunt Telegram Sport Airdrop Information

Lumina Hunt Telegram Sport Airdrop Information

October 23, 2024

Ethereum Whales Quickly Accumulate ETH Amid Worth Decline

0

How Can a Web3 Neobanking Platform Be Useful for the Decentralized Enterprise Area?

0

2024 Recreation Growth Traits: Alternatives & Challenges | by Jon Radoff | Constructing the Metaverse

0

Prime Ethereum Analyst Says DOGE, PEPE, and RCOF Are About to Expertise a ‘Historic Breakout’

0
Circle Strikes to Turn into a US Nationwide Belief Financial institution after Bumper IPO

Circle Strikes to Turn into a US Nationwide Belief Financial institution after Bumper IPO

July 1, 2025
From Static Credentials to Sensible Identification: The Potential of AI-Pushed NFTs

From Static Credentials to Sensible Identification: The Potential of AI-Pushed NFTs

July 1, 2025
Fellowship Program: Cohort #2 Purposes Open & Cohort #1 Roundup

Fellowship Program: Cohort #2 Purposes Open & Cohort #1 Roundup

July 1, 2025
XRP Should Crash First—Then Comes The $10 Rally, Says Analyst

XRP Breaks Out Throughout The Board—However One Factor’s Lacking

July 1, 2025

Token Alytics

We are a team of dedicated enthusiasts, analysts, and writers with a shared interest in the dynamic and fast-paced world of digital assets and blockchain innovation. Our diverse backgrounds in finance, technology, and media give us a unique perspective on the developments in the crypto space.

Categories

  • Bitcoin
  • Blockchain
  • Cryptocurrency
  • Defi
  • Ethereum
  • Metaverse
  • Ripple

Follow Us

  • 643 Followers

Recent News

Circle Strikes to Turn into a US Nationwide Belief Financial institution after Bumper IPO

Circle Strikes to Turn into a US Nationwide Belief Financial institution after Bumper IPO

July 1, 2025
From Static Credentials to Sensible Identification: The Potential of AI-Pushed NFTs

From Static Credentials to Sensible Identification: The Potential of AI-Pushed NFTs

July 1, 2025
  • About
  • FAQ
  • Privacy Policy
  • Support Forum
  • Disclaimer
  • Contact Us

© 2018- tokenalytics.io, All rights reserved

No Result
View All Result
  • Home
  • Bitcoin
  • Blockchain
  • Cryptocurrency
  • Defi
  • Ripple
  • Ethereum
  • Metaverse

© 2018- tokenalytics.io, All rights reserved