Giter Club home page Giter Club logo

Comments (9)

wintercooled avatar wintercooled commented on June 18, 2024

The addresses page is a carry over from the old .org site and is potentially the one out of date. I will look into it and update accordingly. Thanks @dgpv . Also - noted your comments on multi-sig CT addresses.

from elementsproject.github.io.

wintercooled avatar wintercooled commented on June 18, 2024

The correct prefix for an unblinded address is 2.

You can validate this by creating a new address using getnewaddress and then passing that into validateaddress. That will return data similar to:

"isvalid": true,
  "address": "CTEoaMTWgfUKoST1fkitVWuHHueqiL4EcUjrwJXuZW9RWKbSzYNq8ttd8KzJr3KBMzxh6HC83CgroNLR",
  "scriptPubKey": "76a914f5b3992c73d1bee5844d840bbb30fe00f989c1fc88ac",
  "confidential_key": "028fafda60c741b4735c9b14fc768dbda05762f0355a09ceb8fcdd4da114c415bd",
  "unconfidential": "2dwpu6ECUS2NHMwwAmqCGJ6uNESr6tUmAS9",

The 'unconfidential' address is the unblinded one. I will raise aPR to change the address page and close this shortly. Thanks for spotting @dgpv

from elementsproject.github.io.

wintercooled avatar wintercooled commented on June 18, 2024

Fixed with PR #52

from elementsproject.github.io.

wintercooled avatar wintercooled commented on June 18, 2024

By the way @dgpv you can create a multi-sig using the 'createmultisig' command. This is detailed in the 'Block Signing' tutorial section. Something like:

MULTISIG=$(e1-cli createmultisig 2 '''["'''$PUBKEY1'''", "'''$PUBKEY2'''"]''')
REDEEMSCRIPT=$(echo $MULTISIG | jq '.redeemScript' | tr -d '"')

from elementsproject.github.io.

dgpv avatar dgpv commented on June 18, 2024

Maybe it would be worth to mention that unblinded multisig addresses start with X, and blinded start with 'Azp'

Not sure if it would be suitable info for basic introduction pages, but maybe just as a footnote...

elements-cli createmultisig 2 '["0222c31615e457119c2cb33821c150585c8b6a571a511d3cd07d27e7571e02c76e", "039bac374a8cd040ed137d0ce837708864e70012ad5766030aee1eb2f067b43d7f"]'
{
  "address": "XCSVzf6jD4p3GUg1XLxTYkzZvH1CHrjvDA",
  "redeemScript": "52210222c31615e457119c2cb33821c150585c8b6a571a511d3cd07d27e7571e02c76e21039bac374a8cd040ed137d0ce837708864e70012ad5766030aee1eb2f067b43d7f52ae"
}

elements-cli createblindedaddress XCSVzf6jD4p3GUg1XLxTYkzZvH1CHrjvDA 02b0d67f275cc93ca2ac507375a1112982e8b50a627c3becb66a2ff27bc4fad0ac
Azpom1jJ3mGZzLwiB1bqkvAiRn1givCZ8WhWuY2BmUQMqqjq4uzbF9SNWy5icEq2yqsQCUd8u2epStKL

elements-cli createblindedaddress XRPehBAMuGCxDTFPiJkYgrEvQXYhT7iv2x 03dfeca24e0f901639db81afbb0c1e23b0911e3cb339237ad8eb034463fb6b9e58
Azpwy5Rp2ZxwmhidtpfJstdjGwmxjJ9rDJNB3WcGXzno5iicBh7wyetjtA6GGuFizPaXPtwZabAn5i2k

from elementsproject.github.io.

dgpv avatar dgpv commented on June 18, 2024

PR with info on multisig blinded addrs added to confidential addresses page: #54

from elementsproject.github.io.

dgpv avatar dgpv commented on June 18, 2024

A little offtopic, but is the bech32 prefixes and format for blinded and unblinded addresses already decided ?
(in 0.17.0 elements branch chainparams.cpp is still not changed, and googling for "elements sidechain bech32" does not give anything useful)

from elementsproject.github.io.

instagibbs avatar instagibbs commented on June 18, 2024

they have not been decided, no.

from elementsproject.github.io.

wintercooled avatar wintercooled commented on June 18, 2024

Closing - addressed with PR #54

from elementsproject.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.