Skip to content

Latest commit

 

History

History
140 lines (111 loc) · 3.68 KB

Namespace:Aliases.mediawiki

File metadata and controls

140 lines (111 loc) · 3.68 KB

!! DRAFT !!

Table of Contents

Aims

  • Fast and secure way to get informations from an alias
  • Can be used to store bitcoin addresses, email addresses, xmp, gpg, etc
  • Associate a set of different addresses with an alias.

Use case with a bitcoin client

Bitcoin Aliases are pointers to Bitcoin addresses. Instead of pasting a bitcoin address in the client, users may type their alias.

Aliases may be stored on a server. The problem with that is that you need to trust the server with the task of giving your alias. Someone who takes the control of the server can hijack your alias.

Also, most people do not want the hassle of managing a server.

A solution to that problem is to store aliases in the Namecoin blockchain. An alias stored with this method cannot be forged. (some clients might access the namecoin blockchain using a server, but that remains their choice; it is not imposed on others)

To avoid managing a namecoin wallets, it is possible to share the same private key between a bitcoin address and the namecoin address used to register the alias.

see:

Possible namespaces

  • a/
  • alias/
  • id/
  • email/
  • p/

Name

An alias prefixed with the namespace.

  • Uppercase allowed / not allowed ?
  • email address allowed / not allowed ?
Examples
a/example
a/[email protected]

Value

Example

$ namecoind name_show a/khal6987
{
    "email"    : "khal@dot-bit.org",
    "bitcoin"  : "1J3EKMfboca3SESWGrQKESsG1MA9yK6vN4",
    "namecoin" :
    {
      "Donation address": "N2pGWAh65TWpWmEFrFssRQkQubbczJSKi9",
      "Generic address" : "N2pGWAh65TWpWmEFrFssRQkQubbczJSKi9"
    }
    "gpg"      :
    {
        "fpr"  : "0123456789abcde0123456789abcde0123456789",
        "uri"  : ["http://domainA/user.key", "http://domainB/user.key"],
    }
}
</dl>

Fields

Type Description Example
nick A nickname
 &quot;nick&quot; &#58; &quot;my_usual_nick_name&quot;
email An email address
 &quot;email&quot; &#58; &quot;khal@dot&#45;bit.org&quot;
xmpp A jabber/xmpp id
 &quot;xmpp&quot; &#58; &quot;noreply@dot&#45;bit.org&quot;
bitcoin A bitcoin address,
array of addresses
or object of addresses
 &quot;bitcoin&quot; &#58; &quot;1J3EKMfboca3SESWGrQKESsG1MA9yK6vN4&quot;
 &quot;bitcoin&quot; &#58; &#91;&quot;1J3EKMfboca3SESWGrQKESsG1MA9yK6vN4&quot;,&#93;
namecoin A namecoin address,
array of addresses
or object of addresses
 &quot;namecoin&quot; &#58; &quot;N2pGWAh65TWpWmEFrFssRQkQubbczJSKi9&quot;
 &quot;namecoin&quot; &#58;
 &#123;
   &quot;Donation address&quot;&#58; &quot;N2pGWAh65TWpWmEFrFssRQkQubbczJSKi9&quot;,
   &quot;Generic address&quot; &#58; &quot;N2pGWAh65TWpWmEFrFssRQkQubbczJSKi9&quot;
 &#125;
gpg OpenGPG fingerprint and URIs of the key,
or ASCII armored public key
 &#123;
   &quot;fpr&quot; &#58; &quot;N2pGWAh65TWpWmEFrFssRQkQubbczJSKi9&quot;,
   &quot;uri&quot; &#58; &#91;&quot;http&#58;//a.key&quot;,&#93;
 &#125;
 &#123;
  &quot;pgpk&quot;&#58; &quot;mQINBE2xbR8BEADT3HRuWJ9dzIhetmMgPRYD4Yv4Bb17/bMgdAV0HPUa+6X4xwUjPjEGSfvSIPUAKo0DCsJrzKhysgSj+Pr8lingPb...&quot;
 &#125;

Notes

  • ASCII armored public key :
Namecoin records don't allow more than 1023 characters, so storing "pgpk" in the blockchain might not be possible for all keys.

Increasing the allowed size of a record would solve this.