Yesterday, I registered my first name with v0.14 of the Blockstack CLI. I’m following the instructions from https://blockstack.org/docs to see what we’re missing.
This is the name: devname0.id
Registration went very smoothly (great job @jude!) but the instructions became a bit unclear once I got to the section about updating the DNS settings for the name.
There wasn’t any information about how to generate the zone file. I tried using the master branch of dns-zone-file-py library as follows:
-
Clone the repo
-
Run the following commands
records = {‘uri’: [{‘priority’: 1, ‘target’: ‘https://www.larrysalibra.com/blockstack-data/devname0.id/profile.json’, ‘name’: ‘@’, ‘weight’: 10, ‘ttl’: ‘1D’}]}
zone_file = make_zone_file(records, origin=“devname0.id”, ttl=“3600”)
print zone_file
$ORIGIN devname0.id
$TTL 3600
@ 1D URI 1 10 “https://www.larrysalibra.com/blockstack-data/devname0.id/profile.json” -
Copy and save the output into a file zonefile.txt
Next I ran blockstack update devname0.id zonefile.txt
, which told me my zonefile wasn’t in the proper format. I compared it to the zonefile format generated by onename.com for larry.id and adjusted it to match. (Note: It turns out the master branch of dns-zone-file-py
wasn’t up to date.)
Running blockstack update devname0.id zonefile.txt
again succeeded:
{
"message": "The name has been queued up for update and will take ~1 hour to process. You can check on the status at any time by running 'blockstack info'.",
"success": true,
"transaction_hash": "5cef0a7ebac5ec019c2c7b129ef6798cce6d85928efaa40a640dcc6075062e3d",
"value_hash": "a88cbc639d18170d847bb80950de27000caf6696"
}
While I wait for that to confirm, I’ve generated a signed profile as follows:
pip install blockstack-profiles
- Obtain public key using
blockstack wallet
Data public key: 0215236d51d7e835699b15d092d946e9010c0329eb9086e7fa6d4de698856d77d2
3. Create a JSON structure with profile components:
profile_components = [
{"name": "Johnny Appleseed"},
{"birthDate": "1980-01-01"}
]
-
Generate signed tokens records:
from blockstack_profiles import sign_token_records
token_records = sign_token_records(profile_components, “0215236d51d7e835699b15d092d946e9010c0329eb9086e7fa6d4de698856d77d2”)
I saved the result in token_records
and uploaded it to
https://www.larrysalibra.com/blockstack-data/devname0.id/profile.json
Now to wait for confirmations and see if it works.