Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is the Stacks Address zonefile located, and how and where the wallet retrieves the associated DID or Profile.json file? #6065

Open
paradigma-cl opened this issue Jan 16, 2025 · 3 comments
Labels

Comments

@paradigma-cl
Copy link

paradigma-cl commented Jan 16, 2025

Does the wallet use the zonefile references to retrieve the did or profile.json from the wallet?

I created a new account with the wallet. Sent to it some funds to buy a BNSv2 name. I went to the BNSv2 service, got connected to it with the wallet. Bought the name, and received it.

Then I went to Ubid.app, and try to use the domain name, and it could not do it, as it only accepts BNS v1 domain and subdomain names.
Since we do not know there is a names API service for BNSv2 (i.e. https://stacks-node-api.mainnet.stacks.co/v1/names/unbreakable.id) we constructed manually the reference with the Stacks Address to the profile.json supposing that it is at (https://gaia.hiro.so/hub/1Gio2MiaN5ZPDnLMePhBRiWjAFrsRe5Qz9/profile.json)
Then we found it, and updated to the connection to each of the dapps. The profile.json was created.

The question is when and how was created? Did the wallet create the profile.json at the GAIA hub or was it the connect of the first dapp? Was a zonefile created or used? Who created the zonefile? How to change it (use the original v1 way of changing it BNS?

Does the zone file need to be related to the BNS? Or just it should be linked to the Stacks Address? The BNSv1 or BNSv2 then are the same, as the zone file does not depend on the domain or subdomain names neither BNSv1 or BNSv2?

@kyranjamie
Copy link
Collaborator

Then I went to Ubid.app, and try to use the domain name, and it could do it, as it only accepts BNS v1 domain and subdomain names.

Do you mean couldn't do it?

Leather uses the BNS v2 to look up addresses, rather than directly checking a user's zone/profile json. What behaviour is it you're expecting?

@paradigma-cl
Copy link
Author

Then I went to Ubid.app, and try to use the domain name, and it could do it, as it only accepts BNS v1 domain and subdomain names.

Do you mean couldn't do it?

Leather uses the BNS v2 to look up addresses, rather than directly checking a user's zone/profile json. What behaviour is it you're expecting?

I could not do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants