XCP Dev Chat

XCP Dev Chat

Public archive of Telegram messages.

  • 2025

    • May 2025 (8)
    • Apr 2025 (20)
    • Mar 2025 (71)
    • Jan 2025 (4)
  • 2024

    • Dec 2024 (12)
    • Nov 2024 (29)
    • Oct 2024 (708)
    • Sep 2024 (277)
    • Aug 2024 (67)
    • Jul 2024 (68)
    • Jun 2024 (105)
    • May 2024 (344)
    • Apr 2024 (582)
    • Mar 2024 (1229)
    • Feb 2024 (2453)
    • Jan 2024 (5366)
  • 2023

    • Dec 2023 (183)
    • Nov 2023 (375)
    • Oct 2023 (24)
    • Sep 2023 (9)
    • Aug 2023 (3)
    • Jul 2023 (79)
    • Jun 2023 (241)
    • May 2023 (328)
    • Apr 2023 (21)
    • Mar 2023 (67)
    • Feb 2023 (11)
    • Jan 2023 (29)
  • 2022

    • Nov 2022 (16)
  • 01 June 2023 (14 messages)
  • @jp_janssen #481 08:00 PM, 01 Jun 2023
    I am against an imminent fork.  Some issues need to be sorted out (not src related).  
    Heading to bed now, will open github issues in the morning.
  • @uanbtc ↶ Reply to #481 #482 08:31 PM, 01 Jun 2023
    What is the imminent fork this time?? 😑
  • @hodlencoinfield #483 09:46 PM, 01 Jun 2023
    Hahaha nothing to worry about Juan
  • @hodlencoinfield #484 09:46 PM, 01 Jun 2023
    Just another day in Counterparty land
  • @hodlencoinfield #485 09:46 PM, 01 Jun 2023
    I also figured out why we forked at that weird taproot address
  • @hodlencoinfield #486 09:47 PM, 01 Jun 2023
    Python-bitcoinlib doesn’t support taproot and Javier had created his own fork for adding support which jdog had deployed on the node powering xchain
  • @hodlencoinfield #487 09:47 PM, 01 Jun 2023
    Luckily nothing spent from that address
  • @uanbtc ↶ Reply to #486 #488 10:39 PM, 01 Jun 2023
    This is so wrong (the jdog deployed part)
  • @uanbtc ↶ Reply to #444 #489 10:40 PM, 01 Jun 2023
    The problem is from this transaction correct? This was way before the release
  • @hodlencoinfield ↶ Reply to #488 #490 10:42 PM, 01 Jun 2023
    It was a mistake done in haste
  • @hodlencoinfield #491 10:43 PM, 01 Jun 2023
    Wasn’t malicious
  • @uanbtc #492 10:47 PM, 01 Jun 2023
    Well then what is it going to be? Will the v9.60.2 release stay? Are the hashes from this release different from v9.60.1 or where does the bug stand in terms of the hashes
  • @hodlencoinfield #493 10:55 PM, 01 Jun 2023
    He’s reparsing from that block forward with the correct version of bitcoinlib
  • @hodlencoinfield #494 10:55 PM, 01 Jun 2023
    This should fix the hashes
  • 02 June 2023 (4 messages)
  • @jp_janssen #495 03:46 AM, 02 Jun 2023
    I've posted some CIP29 issues on Github.  Shouldn't be a party stopper, but would like these to be resolved before going ahead with the update.
    https://github.com/CounterpartyXCP/cips/issues
    Issues · CounterpartyXCP/cips

    Counterparty Improvement Proposals. Contribute to CounterpartyXCP/cips development by creating an account on GitHub.

  • @jp_janssen #497 05:20 PM, 02 Jun 2023
    Did some performance testing. 
    https://forums.counterparty.io/t/testing-scalability-of-assets-and-issuances-tables/6621/3
    Testing Scalability of 'Assets' and 'Issuances' Tables

    I’ve simulated inserting rows into the assets and issuances tables and measured the performance. The initial DB is a real, recent Counterparty DB. The added rows are random values of the same format as real values. Assets Milliseconds to look up a name: The performance is worse than O(n) 😱 Issuances Counting the number of rows for given names. Even worse… Python scripts used for testing. Assets: db_file = 'db_copy.db' #latest Counterparty DB import os dir_path = os.path....

  • @uanbtc ↶ Reply to #497 #498 06:27 PM, 02 Jun 2023
    Replied on GitHub https://github.com/CounterpartyXCP/cips/issues/82#issuecomment-1574142264
    CIP29 - Correct assumption on node impact? · Issue #82 · CounterpartyXCP/cips

    The motivation for CIP29 is: "Balance the cost of issuing assets with that of running nodes/infrastructure, and to encourage use of broadcasts when issuances are not strictly needed." @jo...

  • @IMPOSSIBLEARTIFACTS #499 11:16 PM, 02 Jun 2023
    Joined.
  • 03 June 2023 (1 messages)
  • @uanbtc ↶ Reply to #499 #500 03:36 PM, 03 Jun 2023
    Welcome!
  • 06 June 2023 (10 messages)
  • @jp_janssen #501 07:40 AM, 06 Jun 2023
    A summary of possible dispenser solutions. https://forums.counterparty.io/t/solutions-to-rugspenser-problem/6623
    Solutions to "rugspenser" problem

    Attack vector: Scammer detects incoming buy and immediately sends another buy transaction with a higher fee. The scammer’s tx gets priority and the legit buyer loses his bitcoins. Possible solutions: 1. Pre-payment before full payment This requires a protocol change. The logic is simple. If less than a full dispense is detected, allow up to 12 blocks for the second tx. Perfectly safe as the protocol keeps the token on escrow. The buyer, if not trusting the seller, can thus make a tiny pre-pa...

  • @uanbtc ↶ Reply to #501 #502 05:49 PM, 06 Jun 2023
    Another option is for the dispenser to allow-list addresses
  • @uanbtc ↶ Reply to #501 #503 05:52 PM, 06 Jun 2023
    Serious related question: why continue using a separate obscure platform for discussion instead of having it all in GitHub?
  • @jp_janssen ↶ Reply to #503 #504 05:58 PM, 06 Jun 2023
    I though github was for issues. Forum more for informally discussions ?
  • @jp_janssen ↶ Reply to #502 #505 06:00 PM, 06 Jun 2023
    On the protocol level?
  • @uanbtc ↶ Reply to #505 #506 06:32 PM, 06 Jun 2023
    Yeah it would have to be a protocol change for that one
  • @uanbtc ↶ Reply to #504 #507 06:34 PM, 06 Jun 2023
    Maybe that was the purpose of creating a forum, but in my opinion all protocol related conversations should be made in the protocol repo!

    The informal conversations are in Telegram now as I see it
  • @hodlencoinfield #508 06:59 PM, 06 Jun 2023
    yeah makes a lot of sense to just have this discussion right on github
  • @uanbtc ↶ Reply to #508 #509 07:25 PM, 06 Jun 2023
    I would say all of them
  • @hodlencoinfield #510 08:19 PM, 06 Jun 2023
    Yep
  • 07 June 2023 (9 messages)
  • @uanbtc #511 11:40 PM, 07 Jun 2023
    Who is running twitter.com/CounterpartyXCP ?

    I see the last retweet being critical about SRC20…

    But then the previous* tweet (one in between) is the announcement of BTNS420…

    Why take a stand? Why the “official” account is promoting an alternative naming system?

    I’m with @jp_janssen that all references to alternative naming systems should be removed from “official” sources. He made an issue about this https://github.com/CounterpartyXCP/cips/issues/74
    Counterparty (@CounterpartyXCP) on X

    The #Bitcoin protocol to create tokens and #NFTs. Tokenizing on Bitcoin (BTC) since 2014. Telegram : https://t.co/OvscgMMSpa Discord: https://t.co/LXUzrZHvzU

  • @mikeinspace #512 11:50 PM, 07 Jun 2023
    SRC-20 aside (I know its controversial), I do find it funny that one RT is about how "stamps isn't a real protocol" because its just "rebranded" Counterparty, while another RT is about how "XCP-20" is the "next big thing!".
  • @mikeinspace #513 11:50 PM, 07 Jun 2023
    They both basically use the same approach of "rebranding"
  • @reinamora_137 #514 11:51 PM, 07 Jun 2023
    Haha yeah I saw that today pretty hilarious
  • @mikeinspace #515 11:51 PM, 07 Jun 2023
    Personally, I think the Counterparty Twitter should stick to Counterparty protocol neutrality
  • @reinamora_137 #516 11:51 PM, 07 Jun 2023
    And the brc token inside a btc token lol
  • @reinamora_137 #517 11:51 PM, 07 Jun 2023
    Yeah you would think
  • @uanbtc ↶ Reply to #515 #518 11:58 PM, 07 Jun 2023
    Yep I would just remove both tweets.

    And the one “in between” is promoting Rude Relics. Taking about parasites, that one can be considered a virus. All reset assets: https://www.xcp.dev/wallet#1RUDEjgtMCY8kSJUUvTv4KHMGFgg9LrgF
  • @mikeinspace #519 11:59 PM, 07 Jun 2023
    Anyways, no real objection as to how the account is run. Just my personal "opinion" that an account representing the protocol should probably not editorialize or have a bias. It's meant to disseminate information about the protocol. Like "Here is the latest release..."
  • 08 June 2023 (11 messages)
  • @hodlencoinfield ↶ Reply to #515 #520 12:04 AM, 08 Jun 2023
    I think I have access via tweetdeck, I can scrub those
  • @mikeinspace ↶ Reply to #520 #521 12:05 AM, 08 Jun 2023
    I'm not making the request. Just my opinion about how a twitter account should be run for a protocol.
  • @mikeinspace #522 12:07 AM, 08 Jun 2023
    It just seems schizophrenic for the account to RT my podcast appearance about stamps and then deride stamps 3 tweets later
  • @hodlencoinfield ↶ Reply to #522 #523 12:08 AM, 08 Jun 2023
    Lol sounds perfectly acceptable for twitter
  • @mikeinspace #524 12:09 AM, 08 Jun 2023
    anyways, my opinion is all news is good news. Every twitter mention about stamps helps stamps
  • @uanbtc #525 12:19 AM, 08 Jun 2023
    Looking at the latest tweets… I just cannot support it. Have to unfollow, I don’t like the vibe of it
  • @jp_janssen #526 06:27 AM, 08 Jun 2023
    I'm not a fan of labeling anything "official"
  • @uanbtc ↶ Reply to #526 #527 06:44 AM, 08 Jun 2023
    I try to always put it in “quotes”. Agree
  • @hodlencoinfield #528 02:11 PM, 08 Jun 2023
    i love that theres no official ordinals twitter
  • @hodlencoinfield #529 03:13 PM, 08 Jun 2023
    https://github.com/CounterpartyXCP/cips/discussions
    CounterpartyXCP/cips · Discussions

    Explore the GitHub Discussions forum for CounterpartyXCP cips. Discuss code, ask questions & collaborate with the developer community.

  • @hodlencoinfield #530 03:14 PM, 08 Jun 2023
    just enabled discussions on cips repo
  • 10 June 2023 (1 messages)
  • @jp_janssen #531 04:19 AM, 10 Jun 2023
    https://github.com/CounterpartyXCP/cips/discussions/87
    How we can squeeze some improvements into the asset ID system
    A. A assets can be introduced.
    B. 1-3 letter assets.
    C. Make subasset IDs deterministict so light wallets won't need to trust API.
    Possible Improvements to Asset Names & IDs · CounterpartyXCP/cips · Discussion #87

    All assets have a unique ID. The ID is what's inside Counterparty message data. For named asset a mathematical two-way function links the name to the ID and vice versa. Unfortunately, due to a ...

  • 11 June 2023 (4 messages)
  • @ABlue0ne #532 04:59 PM, 11 Jun 2023
    Whats the deal with the description field in XCP? I cant keep up with the ***-20 and drama. Is the description field character length on the chopping block? I believe I remember J someone talking about that recently.
  • @uanbtc ↶ Reply to #532 #533 08:14 PM, 11 Jun 2023
    Why you say the length is on the chopping block?
  • @uanbtc #534 08:15 PM, 11 Jun 2023
    It was discussed here but nothing has been submitted about that to the repo as far as I know
  • @hodlencoinfield ↶ Reply to #533 #535 08:19 PM, 11 Jun 2023
    First I’m hearing that
  • 12 June 2023 (7 messages)
  • @ABlue0ne ↶ Reply to #533 #536 12:11 AM, 12 Jun 2023
    Limiting the description field length would severely hinder base64 and stamp use in counterparty. As above, I’m not positive about this, who said it or when in all of the recent chaos. I might be imagining things.
  • @mikeinspace ↶ Reply to #536 #537 12:18 AM, 12 Jun 2023
    So here is my understanding of the situation. Base64 "Stamps" are not really the contentious issue. In fact, Jdog RAISED the description cap in Freewallet to accomodate for Base64 "Stamps" minting where, prior, it was almost impossible (200 character limit).

    The area of contention is SRC-20. SRC-20 is a fungible token standard built on Stamps but use zero supply numerics as the means by which they are deployed/minted/transfered does not utilize traditional Counterparty methods like Dispensers. SRC-20 is being pivoted away from using asset issuances.

    As far as I'm aware, there is no current effort to hinder base64 stamps when it comes to the "art" usecase.
  • @mikeinspace #538 12:20 AM, 12 Jun 2023
    ...but things are always fluid... so we'll see what happens.
  • @ABlue0ne ↶ Reply to #537 #539 12:54 AM, 12 Jun 2023
    You’re awesome. Thanks for taking the time to iron that out.
  • @uanbtc #540 01:09 AM, 12 Jun 2023
    The protocol allows long descriptions and stamps are taking advantage of that. And have been the very successful in growing Counterparty with cool minimalistic on-chain art, like the opposite approach to high data inscriptions. I really like them and believe they should be embraced.

    But these long description do bring a problem with a denormalized (unnecessarily duplicated) database.

    The zero quantity lock assets I don’t agree are a new problem. Is just the same as the above, the unnecessary data duplication.

    I think the best move to dissuade from the meta^2 layer like SRC-20 tokens done on numerics is to add a fee to issue numeric assets.
  • @uanbtc ↶ Reply to #540 #541 01:13 AM, 12 Jun 2023
    Then with the necessary time try to fix as much as possible of the duplicated data problems in the protocol.
  • @ABlue0ne #542 02:54 AM, 12 Jun 2023
    Thanks friends for the kind and intelligent conversation.
  • 13 June 2023 (135 messages)
  • @XJA77 #543 01:05 AM, 13 Jun 2023
    hello guys, i have a question, and i think here are so many talent to ask, im trying to get a way to once i have the Hiro wallet connected to my site and i am able to see the assets of the wallet a way to create a transaction for transfer and that users just have to sign
  • @XJA77 #544 01:06 AM, 13 Jun 2023
    i found this repo https://github.com/Jpja/CounterTools from @jp_janssen and thinking if i can use it in some way

    photo_2023-06-13_01-06-06.jpg
  • @hodlencoinfield #545 01:23 AM, 13 Jun 2023
    https://github.com/loon3/counterparty-hw/blob/f9156fe69204a05b8634413a72525db0979371ca/lib/xcp.js#L114
    counterparty-hw/xcp.js at f9156fe69204a05b8634413a72525db0979371ca · loon3/counterparty-hw

    Counterparty wallet for use with Ledger Nano S / S Plus / X - counterparty-hw/xcp.js at f9156fe69204a05b8634413a72525db0979371ca · loon3/counterparty-hw

  • @hodlencoinfield #546 01:24 AM, 13 Jun 2023
    You can pull the js functions right from here if you don’t want to use Counterparty api
  • @XJA77 #547 01:32 AM, 13 Jun 2023
    I dont want to have a full node for it
  • @XJA77 #548 01:33 AM, 13 Jun 2023
    But im fine with counterparty API if i can find a way to use it
  • @hodlencoinfield #549 01:33 AM, 13 Jun 2023
    You don’t need a full node but you do need a way to construct and sign txs
  • @XJA77 #550 01:34 AM, 13 Jun 2023
    I think that with the micro-stack library i can sign tx
  • @hodlencoinfield #551 01:35 AM, 13 Jun 2023
    Because of the way Counterparty encodes the data you also need to have coin control as in you need to know what utxos are being used as inputs and the order they are in the Tx
  • @hodlencoinfield ↶ Reply to #550 #552 01:36 AM, 13 Jun 2023
    Is this something hiro uses?
  • @XJA77 #553 01:36 AM, 13 Jun 2023
    Hiro recomends two libraries to interact with their wallet
  • @hodlencoinfield #554 01:38 AM, 13 Jun 2023
    You’ll also need to query a node or xchain api to get asset balances
  • @XJA77 #555 01:39 AM, 13 Jun 2023
    i have assets balance right now
  • @XJA77 #556 01:39 AM, 13 Jun 2023
    i just need a way to create and sign this tx
  • @XJA77 ↶ Reply to #551 #557 01:40 AM, 13 Jun 2023
    i didnt understand this
  • @XJA77 ↶ Reply to #545 #558 01:41 AM, 13 Jun 2023
    i have lot to learn and i dont find any docu i will follow this new thread, thanks!
  • @XJA77 #559 01:50 AM, 13 Jun 2023
    what wallet did u use to sign for the original project?
  • @hodlencoinfield ↶ Reply to #559 #560 01:51 AM, 13 Jun 2023
    what do you mean?
  • @hodlencoinfield #561 01:51 AM, 13 Jun 2023
    ive used two libraries, bitcore and bitcoinjs-lib
  • @hodlencoinfield #562 01:52 AM, 13 Jun 2023
    i dont think bitcore is maintained anymore
  • @XJA77 #563 01:52 AM, 13 Jun 2023
    and you connected the ledger directly?
  • @hodlencoinfield #564 01:53 AM, 13 Jun 2023
    yep, rpw.wtf is the latest version
  • @hodlencoinfield #565 01:54 AM, 13 Jun 2023
    connecting directly with ledger eliminates the need for a browser extension
  • @XJA77 #566 01:55 AM, 13 Jun 2023
    okey
  • @hodlencoinfield #567 01:56 AM, 13 Jun 2023
    but i think the reality is that people want the convenience of a wallet directly on their device
  • @hodlencoinfield #568 01:56 AM, 13 Jun 2023
    i use both now
  • @XJA77 #569 02:03 AM, 13 Jun 2023
    https://hirowallet.gitbook.io/developers/bitcoin/sign-transactions/fully-signed-bitcoin-transactions
    Sending bitcoin

    Sign and broadcast Bitcoin transactions

  • @hodlencoinfield #570 02:05 AM, 13 Jun 2023
    https://btckit.org/docs/requests/signpsbt
    request 'signPsbt' | btckit
  • @hodlencoinfield #571 02:05 AM, 13 Jun 2023
    this is what you want
  • @XJA77 #572 02:05 AM, 13 Jun 2023
    but is psbt
  • @XJA77 #573 02:05 AM, 13 Jun 2023
    https://btckit.org/docs/standard/methods-events/
    Methods & Events | btckit

    draft, subject to change

  • @XJA77 #574 02:05 AM, 13 Jun 2023
    but what is the method i need?
  • @hodlencoinfield #575 02:06 AM, 13 Jun 2023
    bitcoinjs-lib standard is to create all txs as psbts now
  • @XJA77 #576 02:06 AM, 13 Jun 2023
    thanks for your help bro
  • @hodlencoinfield #577 02:06 AM, 13 Jun 2023
    so any tx can be a psbt
  • @XJA77 #578 02:06 AM, 13 Jun 2023
    mmm okeyy
  • @XJA77 #579 02:07 AM, 13 Jun 2023
    i love this docs full of todos 😞
  • @XJA77 #580 02:07 AM, 13 Jun 2023
    okey so maybe with this and your repo i can do something
  • @hodlencoinfield #581 02:08 AM, 13 Jun 2023
    yep, i might work on packaging some functions
  • @hodlencoinfield #582 02:08 AM, 13 Jun 2023
    so you can just use npm
  • @XJA77 #583 02:09 AM, 13 Jun 2023
    that would be awesome
  • @XJA77 #584 02:09 AM, 13 Jun 2023
    also im interested in learning how it works so maybe i can help with that
  • @XJA77 #585 02:10 AM, 13 Jun 2023
    or at least being reading all your commits
  • @hodlencoinfield #586 02:15 AM, 13 Jun 2023
    you should familiarize yourself with bitcoinjs-lib
  • @hodlencoinfield #587 02:15 AM, 13 Jun 2023
    it does all the heavy lifting
  • @XJA77 #588 02:15 AM, 13 Jun 2023
    also i think i see in a group but as there are 100 of counterparty dev groups i cant find it anymore a good gist explaining how was done the raw tx that is encoded in OP_RETURN
  • @hodlencoinfield #589 02:15 AM, 13 Jun 2023
    everything else is just pulling data from APIs
  • @XJA77 ↶ Reply to #586 #590 02:15 AM, 13 Jun 2023
    i will
  • @XJA77 ↶ Reply to #573 #591 02:16 AM, 13 Jun 2023
    but i think hiro uses this
  • @hodlencoinfield #592 02:16 AM, 13 Jun 2023
    yes but you need to build the psbt
  • @hodlencoinfield #593 02:17 AM, 13 Jun 2023
    then you use btckit to sign the inputs
  • @XJA77 #594 02:19 AM, 13 Jun 2023
    okey im going to read it
  • @XJA77 #595 02:20 AM, 13 Jun 2023
    thanks
  • @XJA77 #596 02:23 AM, 13 Jun 2023
    but psbt are possible with xcp assets im still confussed i thought it was just for taproot
  • @hodlencoinfield #597 02:24 AM, 13 Jun 2023
    psbt is just a standard for building bitcoin transactions
  • @hodlencoinfield #598 02:25 AM, 13 Jun 2023
    psbts allow for things like atomic swaps for ordinals (openordex) but thats not the only use case
  • @XJA77 #599 02:26 AM, 13 Jun 2023
    sorry im really new to Bitcoin i need more reading but with this i have something to start reading i was a little blocked
  • @XJA77 ↶ Reply to #598 #600 02:27 AM, 13 Jun 2023
    yes this was the first time i eared this word
  • @XJA77 #601 02:27 AM, 13 Jun 2023
    okey so with this standard i can build any kind of transactions for example a counterparty asset transfer
  • @XJA77 #602 02:28 AM, 13 Jun 2023
    okey i need more reading on this
  • @XJA77 #603 02:28 AM, 13 Jun 2023
    thanks really appreciate your help
  • @hodlencoinfield ↶ Reply to #601 #604 02:30 AM, 13 Jun 2023
    yep exactly
  • @hodlencoinfield #605 02:33 AM, 13 Jun 2023
    https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/test/integration/transactions.spec.ts#L173
    bitcoinjs-lib/test/integration/transactions.spec.ts at master · bitcoinjs/bitcoinjs-lib

    A javascript Bitcoin library for node.js and browsers. - bitcoinjs/bitcoinjs-lib

  • @hodlencoinfield #606 02:34 AM, 13 Jun 2023
    one thing to keep in mind is that counterparty message data is rc4 encrypted using the txid of the first input (which is why you need coin control)
  • @XJA77 ↶ Reply to #605 #607 02:38 AM, 13 Jun 2023
    this is replacing data?
  • @hodlencoinfield #608 02:38 AM, 13 Jun 2023
    you would put counterparty message data in the op_return output
  • @XJA77 ↶ Reply to #608 #609 02:40 AM, 13 Jun 2023
    the counterparty message data is what you build in your code? here?https://github.com/loon3/counterparty-hw/blob/f9156fe69204a05b8634413a72525db0979371ca/lib/xcp.js#L114
    counterparty-hw/xcp.js at f9156fe69204a05b8634413a72525db0979371ca · loon3/counterparty-hw

    Counterparty wallet for use with Ledger Nano S / S Plus / X - counterparty-hw/xcp.js at f9156fe69204a05b8634413a72525db0979371ca · loon3/counterparty-hw

  • @hodlencoinfield #610 02:45 AM, 13 Jun 2023
    yep
  • @XJA77 #611 02:49 AM, 13 Jun 2023
    and in the body of transaction, because this example is sending actually funds i just put dust in it?
  • @XJA77 #612 02:50 AM, 13 Jun 2023
    or just 'broadcast' this OP_RETURN counterparty message?
  • @hodlencoinfield #613 02:50 AM, 13 Jun 2023
    the tx has two outputs, an op_return and a change output
  • @hodlencoinfield #614 02:50 AM, 13 Jun 2023
    the only amount spent is the tx fee
  • @XJA77 #615 02:51 AM, 13 Jun 2023
    okey that it
  • @c0rnh0li0 ↶ Reply to #588 #616 06:46 AM, 13 Jun 2023
    You might be looking for this: https://jpjanssen.com/compressed-xcp-transactions/
  • @uanbtc ↶ Reply to #616 #617 01:10 PM, 13 Jun 2023
    This is the future of Counterparty. Love it
  • @XJA77 ↶ Reply to #616 #618 01:55 PM, 13 Jun 2023
    I Will check it too
  • @XJA77 #619 01:56 PM, 13 Jun 2023
    Do you think that the psbt aproach is not interesting for not need to implement all counterparty-lib?
  • @XJA77 ↶ Reply to #616 #620 02:00 PM, 13 Jun 2023
    Very interesting
  • @XJA77 #621 02:01 PM, 13 Jun 2023
    Thanks for share
  • @XJA77 #622 02:01 PM, 13 Jun 2023
    Thia is just a propossal or the XCP prefix is also valid?
  • @hodlencoinfield #623 02:03 PM, 13 Jun 2023
    its a proposal
  • @hodlencoinfield #624 03:33 PM, 13 Jun 2023
    also @uanbtc im running 9.60.2 now and ledger, txlist, message hashes all match your node
  • @uanbtc ↶ Reply to #624 #625 03:41 PM, 13 Jun 2023
    Nice! Without bootstrap?
  • @hodlencoinfield #626 03:41 PM, 13 Jun 2023
    i used the 9.60.1 bootstrap
  • @hodlencoinfield #627 03:41 PM, 13 Jun 2023
    since that one was known to match yours previously
  • @uanbtc #628 03:46 PM, 13 Jun 2023
    Got it.
  • @hodlencoinfield #629 03:46 PM, 13 Jun 2023
    but good to know it was just a bad library and not an actual consensus fork with xchain
  • @uanbtc ↶ Reply to #629 #630 03:48 PM, 13 Jun 2023
    For sure
  • @hodlencoinfield #631 03:52 PM, 13 Jun 2023
    did you see my ordinal envelope proposal? curious what your thoughts are
  • @uanbtc #632 04:22 PM, 13 Jun 2023
    Just read it again. Your proposal (as of now) would mean adding ord satoshi tracking to the fednode stack correct?
  • @hodlencoinfield #633 04:33 PM, 13 Jun 2023
    yes, but it doesn’t necessarily need to be ord, just an indexer that follows ordinal theory
  • @hodlencoinfield #634 04:34 PM, 13 Jun 2023
    so all the inscription specific code in ord wouldn’t be necessary
  • @uanbtc #635 04:35 PM, 13 Jun 2023
    Yeah. It is super interesting for sure…

    Haha that’s what I was going to write about! That I feel the inscription data is something less complex that can add a lot of value to the current Counterparty
  • @uanbtc ↶ Reply to #635 #636 04:36 PM, 13 Jun 2023
    Inscribing by itself, without sat tracking
  • @hodlencoinfield #637 04:36 PM, 13 Jun 2023
    yeah its a better p2sh encoding
  • @uanbtc #638 04:37 PM, 13 Jun 2023
    Your proposal is about sending 1 unit of an asset right? Not like the issuance privileges of the asset
  • @hodlencoinfield #639 04:39 PM, 13 Jun 2023
    yes as it is now, the only action proposed for assets held in a sat would be to transfer them to another address
  • @hodlencoinfield #640 04:39 PM, 13 Jun 2023
    but theres no reason additional functionality couldnt be added
  • @uanbtc #641 04:39 PM, 13 Jun 2023
    We are getting close to something you know I believe in. We should get rid of the divisibility
  • @hodlencoinfield #642 04:40 PM, 13 Jun 2023
    the two-way peg mechanism allows for any counterparty message and the sat burn via op_return is a validity check
  • @uanbtc ↶ Reply to #638 #643 04:40 PM, 13 Jun 2023
    That’s what would need to happen for this to make sense
  • @hodlencoinfield #644 04:41 PM, 13 Jun 2023
    issue via sat is def possible
  • @hodlencoinfield #645 04:41 PM, 13 Jun 2023
    actually
  • @hodlencoinfield #646 04:41 PM, 13 Jun 2023
    you dont even need to, you can issue and transfer to sat
  • @uanbtc ↶ Reply to #642 #647 04:41 PM, 13 Jun 2023
    This I didn’t get too well because wouldn’t that destroy the originally sent unit also?
  • @hodlencoinfield #648 04:42 PM, 13 Jun 2023
    the sat is an envelope with an address (sat id)
  • @uanbtc ↶ Reply to #646 #649 04:42 PM, 13 Jun 2023
    Well yeah, my point being that CP divisibility is irrelevant
  • @hodlencoinfield #650 04:44 PM, 13 Jun 2023
    so the sat id is just another address type, the difference being to perform an action from that address you need to burn the sat
  • @uanbtc #651 04:46 PM, 13 Jun 2023
    Is ord actually tracking the sat burning? I know it was like an idea but not sure if it is integrated and accounted for
  • @hodlencoinfield #652 04:46 PM, 13 Jun 2023
    of course it has to track all sats
  • @hodlencoinfield #653 04:47 PM, 13 Jun 2023
    i wrote a simple daemon that identifies txs with sat burns via bitcoin rpc then gets the sat id from ord
  • @uanbtc #654 04:47 PM, 13 Jun 2023
    Well yeah… but is it like actively destroying the appropriate sat? I guess it is
  • @uanbtc #655 04:49 PM, 13 Jun 2023
    Anyway… before that I think that counterparty-lib, like ord, should be fully self contained meaning that addressindxr should be part of it
  • @hodlencoinfield #656 04:51 PM, 13 Jun 2023
    i agree, but it probly would require a rewrite of counterparty-lib in something like rust first
  • @hodlencoinfield #657 04:51 PM, 13 Jun 2023
    which is no small task
  • @uanbtc #658 04:51 PM, 13 Jun 2023
    Agree, and addrsindx is already rust so that is the side to go
  • @hodlencoinfield #659 04:51 PM, 13 Jun 2023
    yep and so is ord
  • @uanbtc #660 04:52 PM, 13 Jun 2023
    Yep
  • @hodlencoinfield #661 04:52 PM, 13 Jun 2023
    time to learn rust lol
  • @uanbtc ↶ Reply to #661 #662 04:54 PM, 13 Jun 2023
    I did for a bit, have a fork if ord that is just about inscribing no sat tracking

    https://github.com/jotapea/pub
    GitHub - jotapea/pub

    Contribute to jotapea/pub development by creating an account on GitHub.

  • @uanbtc #663 05:04 PM, 13 Jun 2023
    I’ve been thinking about what the next counterparty-lib hard fork (v9.61) should be about… I would limit it to a few simple but very crucial changes.

    1. Fee for numeric asset issuance

    2. Issuance message format revert (meaning…)

    3. No more reset assets

    1 is already quite understood why the need. But 2 and 3 are about going back into the drawing board to come up with a well thought update to the issuances / DB that can accommodate the recent growth. And acknowledging that resets as implemented were not a good move (what to do about the already reset assets will depend on the new issuance design that is decided).

    All these with a block activation with enough anticipation 1+ months after the software is fully tested and working well
  • @hodlencoinfield #664 05:06 PM, 13 Jun 2023
    no. 2 is a no-brainer, the new issuance format should have always been a new message id and even javier has recognized that was a mistake
  • @hodlencoinfield #665 05:07 PM, 13 Jun 2023
    i think you could get people on board with removing the reset if divisibility is addressed
  • @hodlencoinfield #666 05:07 PM, 13 Jun 2023
    because thats the only reason reset exists
  • @uanbtc #667 05:07 PM, 13 Jun 2023
    Yeah. I would say remove it! But no need to anticipate that, that will come later
  • @hodlencoinfield #668 05:08 PM, 13 Jun 2023
    divisiblity should be something the client does, just like bitcoin divisibility
  • @uanbtc ↶ Reply to #668 #669 05:09 PM, 13 Jun 2023
    I think the problem at the protocol comes with orders and dispenses, which do consider it
  • @hodlencoinfield #670 05:10 PM, 13 Jun 2023
    sends too, you have to be aware of it before performing any function with an asset qty
  • @hodlencoinfield #671 05:10 PM, 13 Jun 2023
    or else you risk sending the wrong amount
  • @uanbtc #672 05:12 PM, 13 Jun 2023
    Well but sends is still just interpretation of an integer. For the orders / dispenses is is actually considered as part of the trade math
  • @hodlencoinfield #673 05:14 PM, 13 Jun 2023
    oh interesting, seems odd
  • @hodlencoinfield #674 05:14 PM, 13 Jun 2023
    why not just use integers
  • @uanbtc #675 05:16 PM, 13 Jun 2023
    Well yes the source are all integers still
  • @hodlencoinfield #676 05:17 PM, 13 Jun 2023
    i guess i dont follow then why its different, orders just see a divisible assets as 100000000 units instead of 1
  • @uanbtc #677 05:21 PM, 13 Jun 2023
    Yes maybe I shouldn’t have said math, because the math will still be done at the integer level true
  • 14 June 2023 (1 messages)
  • @jp_janssen ↶ Reply to #670 #678 04:03 AM, 14 Jun 2023
    A partial solution here. Table with divisibility for all locked assets, so light wallets won't need to trust api.

    Problem is that new and unlocked assets still need api.

    https://github.com/Jpja/Electrum-Counterparty/tree/master/db
    Electrum-Counterparty/db at master · Jpja/Electrum-Counterparty

    Generate OP_RETURN for sending Counterparty tokens from Electrum - Jpja/Electrum-Counterparty

  • 15 June 2023 (3 messages)
  • @uanbtc #679 02:44 PM, 15 Jun 2023
    @hodlencoinfield is your node returning results for the mempool table?
  • @hodlencoinfield #680 05:11 PM, 15 Jun 2023
    yep
  • @uanbtc #681 05:24 PM, 15 Jun 2023
    Ok thanks
  • 16 June 2023 (6 messages)
  • @XJA77 #682 12:26 AM, 16 Jun 2023
    Hello! Im working on psbt transfers, thanks for tour resources, Im having some problems with bitcoinjslib working on the browser any suggestions?
  • @XJA77 #683 12:30 AM, 16 Jun 2023
    Most of the functions works well the problem is for creating the Psbt object is required a Buffer and Buffer is not available in browsers
  • @XJA77 #684 12:39 AM, 16 Jun 2023
    if i do with buffer there is other different error

    photo_2023-06-16_00-39-58.jpg
  • @XJA77 #685 12:39 AM, 16 Jun 2023

    photo_2023-06-16_00-39-59.jpg
  • @XJA77 #686 12:46 AM, 16 Jun 2023
    @hodlencoinfield i dm you as im using your repo as reference
  • @XJA77 #687 12:46 AM, 16 Jun 2023
    thanks guys
  • 20 June 2023 (9 messages)
  • @XJA77 #688 05:17 PM, 20 Jun 2023
    Thanks for your help and resources, i have done great advances (For me at least jejeje) so far and learn a lot but still in progress, i have achieved to build and sign a PSBT tx with the OP_RETURN but i think that im missing something, also idk why there are not outputs in the decoded json of the tx (im using this web to decode: https://chainquery.com/bitcoin-cli/decodepsbt) i add the json of the tx too so if anyone can help me to debug and create a valid XCP PSBT
    bitcoin-cli decodepsbt – ChainQuery

    The decodepsbt command returns a JSON object representing the serialized, base64-encoded partially signed Bitcoin transaction.

  • @XJA77 #689 05:17 PM, 20 Jun 2023
    tx.json
  • @hodlencoinfield #690 05:56 PM, 20 Jun 2023
    can you share your script?
  • @XJA77 #691 07:02 PM, 20 Jun 2023
    yes bro
  • @XJA77 #692 07:22 PM, 20 Jun 2023
    https://codefile.io/f/76Ugl0hDJc
    Untitled file — Codefile

    Create collaborative code files online for your technical interviews, pair programming, teaching, etc.

  • @XJA77 ↶ Reply to #690 #693 07:38 PM, 20 Jun 2023
    this is the script im using
  • @XJA77 ↶ Reply to #692 #694 09:34 PM, 20 Jun 2023
    did you had the time to check it bro? @hodlencoinfield
  • @hodlencoinfield ↶ Reply to #694 #695 10:03 PM, 20 Jun 2023
    I haven’t, will look tonight
  • @XJA77 ↶ Reply to #695 #696 10:04 PM, 20 Jun 2023
    Thanks ser if you need more info off what im using let me know
  • 21 June 2023 (26 messages)
  • @XJA77 #697 12:38 AM, 21 Jun 2023
    also, does anyone knows why is being used this 5459 to retrieve the change? i think i have seen it in other places too

    photo_2023-06-21_00-38-27.jpg
  • @hodlencoinfield #698 12:47 AM, 21 Jun 2023
    its a legacy number for checking if output would be below the dust limit
  • @hodlencoinfield #699 12:47 AM, 21 Jun 2023
    dust limit used to be 5460 but is now 546 so you can adjust to that
  • @hodlencoinfield #700 12:48 AM, 21 Jun 2023
    basically if the remaining satoshis from the input are less than the dust limit, they’re added to miner fee rather than change output
  • @XJA77 #701 12:54 AM, 21 Jun 2023
    mm okey
  • @XJA77 #702 12:55 AM, 21 Jun 2023
    i think one of my problems is that im not adding the change properly but i think is because im not calculating the good miner fee
  • @XJA77 #703 12:55 AM, 21 Jun 2023
    okey i will update to 546
  • @XJA77 #704 12:57 AM, 21 Jun 2023
    i see a tricky way to aproximate the size of the tx based on the number of utxo and multiplying it but idk if is a good idea..
  • @XJA77 #705 12:57 AM, 21 Jun 2023
    export function calculateAproxFee(utxoCount: number, outputCount: number, feeRate: number): number {
    const estimatedTxSize = utxoCount * 68 + outputCount * 31 + 10;
    const totalTxFee = estimatedTxSize * feeRate;
    return totalTxFee;
    }
  • @hodlencoinfield #706 12:58 AM, 21 Jun 2023
    you dont know the number of utxos until you know the total amount
  • @hodlencoinfield #707 12:58 AM, 21 Jun 2023
    this is why fee estimation is hard
  • @hodlencoinfield #708 12:59 AM, 21 Jun 2023
    the easier way is to use a standard tx size and calculate fees based on that
  • @XJA77 ↶ Reply to #706 #709 12:59 AM, 21 Jun 2023
    thats a problem yes
  • @XJA77 ↶ Reply to #708 #710 01:00 AM, 21 Jun 2023
    what do you mean?
  • @hodlencoinfield #711 01:00 AM, 21 Jun 2023
    if you’re creating a counterparty tx then generally you’ll have a single input, an opreturn output and a change output
  • @XJA77 #712 01:00 AM, 21 Jun 2023
    a hardcodes stimated size for a transfer tx?
  • @XJA77 #713 01:01 AM, 21 Jun 2023
    generaly yes
  • @XJA77 #714 01:01 AM, 21 Jun 2023
    and in my case i think always as this wallet have been just receiving assets
  • @hodlencoinfield #715 01:01 AM, 21 Jun 2023
    which is 249 bytes assuming p2pkh
  • @hodlencoinfield #716 01:02 AM, 21 Jun 2023
    so calculate fee using nextblock sat/byte and use that number to determine utxo needed
  • @XJA77 #717 01:04 AM, 21 Jun 2023
    lets try this thanks bro
  • @XJA77 ↶ Reply to #705 #718 01:05 AM, 21 Jun 2023
    and when i know how many utxo need i can do this check?
  • @XJA77 #719 01:05 AM, 21 Jun 2023
    i think i gotch it
  • @XJA77 #720 01:07 AM, 21 Jun 2023

    photo_2023-06-21_01-07-58.jpg
  • @hodlencoinfield #721 01:12 AM, 21 Jun 2023
    yes assuming txFeeSatoshis is the rate sat/byte then you’re good
  • @XJA77 #722 01:16 AM, 21 Jun 2023
    thankyou ser
  • 01 Jun 2023 (14)
  • 02 Jun 2023 (4)
  • 03 Jun 2023 (1)
  • 06 Jun 2023 (10)
  • 07 Jun 2023 (9)
  • 08 Jun 2023 (11)
  • 10 Jun 2023 (1)
  • 11 Jun 2023 (4)
  • 12 Jun 2023 (7)
  • 13 Jun 2023 (135)
  • 14 Jun 2023 (1)
  • 15 Jun 2023 (3)
  • 16 Jun 2023 (6)
  • 20 Jun 2023 (9)
  • 21 Jun 2023 (26)