Bitmime
You have not selected any currencies to display
  • Bitmime – Bitcoin, Ethereum, Crypto News and Market Analysis
  • Cryptocurrency
    • Crypto Mining
  • Bitcoin
  • Ethereum
  • DeFi
  • Blockchain
  • Metaverse
No Result
View All Result
  • Bitmime – Bitcoin, Ethereum, Crypto News and Market Analysis
  • Cryptocurrency
    • Crypto Mining
  • Bitcoin
  • Ethereum
  • DeFi
  • Blockchain
  • Metaverse
No Result
View All Result
Bitmime
No Result
View All Result
Home Bitcoin

taproot – Subscribe PSBT inputs by way of Golang

Martin Spielberg by Martin Spielberg
November 24, 2024
in Bitcoin
0
cryptography – When Satoshi Nakamoto mined his first set of blocks in 2008/2009, it was on Bitcoin core, however was he utilizing Linux or Home windows?
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 methodology. 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 seem like after processing (appropriate):

{
    { ‘end result’: {
        { ‘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’.
            }
        ],
        ‘charge": 1.328e-5,
        ‘subsequent": { ‘updater’
    },
    ‘error": null,
    ‘id": null
}

That is what it appears 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) :

{
    "end result": {
        "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,
        "charge": 2.002e-5,
        "subsequent": "updater"
    },
    "error": null,
    "id": null
}

I checked signatures (they’re appropriate), in contrast appropriate 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 by way of any pockets extension.I do not even perceive the place the error could possibly be, since I do the logs BEFORE signing and AFTER signing, and their standing within the logs is up to date. Additionally, in case you take the PSBT after my code has processed it and decoded it, it does replace and is not any completely different from the proper one aside from the TXid.

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

Related articles

Bitcoin Value Up 4% On Price Lower Hopes As SpaceX Strikes BTC

Bitcoin Value Up 4% On Price Lower Hopes As SpaceX Strikes BTC

November 28, 2025
BTC NEWS: BTC Stabilizes Above $110k, What’ll It Take For It To Retest $115k?

SpaceX Strikes $105M Bitcoin, Wooden Predicts Liquidity Easing, Nasdaq Boosts IBIT Choices

November 28, 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 methodology. 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 seem like after processing (appropriate):

{
    { ‘end result’: {
        { ‘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’.
            }
        ],
        ‘charge": 1.328e-5,
        ‘subsequent": { ‘updater’
    },
    ‘error": null,
    ‘id": null
}

That is what it appears 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) :

{
    "end result": {
        "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,
        "charge": 2.002e-5,
        "subsequent": "updater"
    },
    "error": null,
    "id": null
}

I checked signatures (they’re appropriate), in contrast appropriate 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 by way of any pockets extension.I do not even perceive the place the error could possibly be, since I do the logs BEFORE signing and AFTER signing, and their standing within the logs is up to date. Additionally, in case you take the PSBT after my code has processed it and decoded it, it does replace and is not any completely different from the proper one aside from the TXid.

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

Tags: GolanginputsPSBTSubscribetaproot
Share76Tweet47

Related Posts

Bitcoin Value Up 4% On Price Lower Hopes As SpaceX Strikes BTC

Bitcoin Value Up 4% On Price Lower Hopes As SpaceX Strikes BTC

by Martin Spielberg
November 28, 2025
0

Be a part of Our Telegram channel to remain updated on breaking information protection The Bitcoin worth surged 4% prior...

BTC NEWS: BTC Stabilizes Above $110k, What’ll It Take For It To Retest $115k?

SpaceX Strikes $105M Bitcoin, Wooden Predicts Liquidity Easing, Nasdaq Boosts IBIT Choices

by Martin Spielberg
November 28, 2025
0

SpaceX has shifted 1,163 Bitcoin, value about $105 million, into a brand new pockets, nearly a month after it transferred...

Solana Hack Strikes South Korea’s Main Alternate

Solana Hack Strikes South Korea’s Main Alternate

by Martin Spielberg
November 27, 2025
0

Trusted Editorial content material, reviewed by main trade specialists and seasoned editors. Advert Disclosure Upbit, certainly one of South Korea’s...

Dogecoin Falling Wedge Formation Says Anticipate 80-90% Rally In The Coming Days

Dogecoin Falling Wedge Formation Says Anticipate 80-90% Rally In The Coming Days

by Martin Spielberg
November 27, 2025
0

Dogecoin (DOGE) is flashing a possible bullish reversal sign as a crypto analyst factors to a breakout setup forming on...

Bitcoin Worth Roars Previous $90,000 On Robust Wall Road Information

Bitcoin Worth Roars Previous $90,000 On Robust Wall Road Information

by Martin Spielberg
November 27, 2025
0

Bitcoin value ripped greater above $90,000 on Wednesday, extending a pointy rally fueled by accelerating institutional demand and a brand...

Load More
  • Trending
  • Comments
  • Latest
Alchemy Quietly Buys NFT Launchpad HeyMint – Right here’s Extra data

Alchemy Quietly Buys NFT Launchpad HeyMint – Right here’s Extra data

May 25, 2025
BitHub 77-Bit token airdrop information

BitHub 77-Bit token airdrop information

January 15, 2025
Volatility Shares debuts first 1x XRP futures ETF for US buyers

Volatility Shares debuts first 1x XRP futures ETF for US buyers

May 26, 2025
Texas football’s rivalry matchup with Texas A&M

Texas football’s rivalry matchup with Texas A&M

May 9, 2025
6 Methods Web3 Is Altering On-line Communities

6 Methods Web3 Is Altering On-line Communities

1
Dogecoin (DOGE) Eyes $0.50 Once more: Is a New Rally on the Horizon?

Dogecoin (DOGE) Eyes $0.50 Once more: Is a New Rally on the Horizon?

0
Binance Pool Introduces Merged Mining with Fractal Bitcoin (FB) Rewards

Binance Pool Introduces Merged Mining with Fractal Bitcoin (FB) Rewards

0
Are Retail Buyers Behind The Bitcoin Worth Surge This Bull Run?

Are Retail Buyers Behind The Bitcoin Worth Surge This Bull Run?

0
Solana Worth Up 3% Regardless of $38M Upbit Hack

Solana Worth Up 3% Regardless of $38M Upbit Hack

November 28, 2025
How Web3 Gaming Infrastructure Grew to become the Prime Funding Precedence in 2025

How Web3 Gaming Infrastructure Grew to become the Prime Funding Precedence in 2025

November 28, 2025
Bitcoin dominance dips to 23.6 fib degree, indicators potential altcoin rotation

Bitcoin dominance dips to 23.6 fib degree, indicators potential altcoin rotation

November 28, 2025
Bitcoin Value Up 4% On Price Lower Hopes As SpaceX Strikes BTC

Bitcoin Value Up 4% On Price Lower Hopes As SpaceX Strikes BTC

November 28, 2025

About Us

Welcome to Bitmime.com, your go-to destination for the latest and most reliable news from the world of cryptocurrency, blockchain, and decentralized finance.

Categories

  • Bitcoin
  • Blockchain
  • Crypto Mining
  • Cryptocurrency
  • DeFi
  • Ethereum
  • Metaverse
  • Uncategorized

Recent Posts

  • Solana Worth Up 3% Regardless of $38M Upbit Hack
  • How Web3 Gaming Infrastructure Grew to become the Prime Funding Precedence in 2025
  • Bitcoin dominance dips to 23.6 fib degree, indicators potential altcoin rotation
  • Bitmime – Bitcoin, Ethereum, Crypto News and Market Analysis
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Terms & Conditions

© 2024 bitmime.com. All rights reserved.

No Result
View All Result
  • Bitmime – Bitcoin, Ethereum, Crypto News and Market Analysis
  • Cryptocurrency
    • Crypto Mining
  • Bitcoin
  • Ethereum
  • DeFi
  • Blockchain
  • Metaverse

© 2024 bitmime.com. All rights reserved.