API Documentation | DN-Key RAW Website

DN-Key - Domain Name Key Broadcasting


The DNKey.org protocol provides a super simple way to broadcast public keys using DNS TXT records.

The BCE Toolbox Wallet has support for sending to valid DN-Keys using dnkey-ethpublic and dnkey-ethbce namespacing.

They are especially useful for Bitcoin and other cryptographic addresses that you wish to share with others, where instead of having to remember over 30 seemingly random characters, such as - 13aaehx6p4QrTHMvQUZy3dTEevXr4Wprap - you can just share your DNK.

Performing a DNS TXT look-up at - http://bce.bloq.press - you should see the following entries:

dnkey-bitcoin=13aaehx6p4QrTHMvQUZy3dTEevXr4Wprap
dnkey-bitcoin=1M4VYf837vbKc9mJxqGdM2w1xPmZNDXdGa
dnkey-litecoin=LMUN5ZPQCym1sz2XxbunhWsfwJc5nKfANN

This symbolizes that bce at bloq.press is broadcasting two Bitcoin addresses and one Litecoin address.

Using the dnkey namespace at the begining of the DNS TXT record entry establishes it as a DNK, whereas the next word after the hyphen allows you to set multiple DN-Keys for different cryptographic needs. Client services can then (via online APIs or natively in most server-side languages) find the appropriate key that they are looking for.

For example, the BCE API has a dedicated DN-Key endpoint.

Used correctly - http://bce.asia/api/cortex/v1/dnkey?host=bce.bloq.press - it should produce the following results:

{
    "code": "success",
    "message": "Successfully fetched data",
    "data": {
        "status": 200,
        "results": {
            "ltc": "LMUN5ZPQCym1sz2XxbunhWsfwJc5nKfANN",
            "btc": [
                "13aaehx6p4QrTHMvQUZy3dTEevXr4Wprap",
                "1M4VYf837vbKc9mJxqGdM2w1xPmZNDXdGa"
            ]
        }
    }
}

Adding an optional index - http://bce.asia/api/cortex/v1/dnkey?host=bce.bloq.press&index=ltc - should result in the following:

{
    "code": "success",
    "message": "Successfully fetched data",
    "data": {
        "status": 200,
        "results": "LMUN5ZPQCym1sz2XxbunhWsfwJc5nKfANN"
    }
}

Table of Contents

join our mission to take the cryptic out of crypto

 

GET UPDATES CONTACT TEAM