-
Notifications
You must be signed in to change notification settings - Fork 94
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
Reserved Name Claims #357
Reserved Name Claims #357
Conversation
just tested this - i will start thinking about how the UX would look. would love to target this for one question - how come the claim TX doesn't show in mempool? is there anyway to tell that its pending? |
So, because name claims and airdrop proofs are merged into the coinbase TX, they are handled separately from regular TXs. In fact if you look at the p2p protocol there are additional sets of messages for sending claims & airdrops separate from regular TXs. When received, they are inserted into special buckets in the mempool, and you can see them tallied separately in
SO -- all the "get mempool" type APIs that we have in hsd just ignore those extra two buckets. In short, we just don't have the APIs yet (as far as I know) to return claims & proofs. They are a bit tricky to display in the mempool anyway because the hash you get when you send a claim or proof is NOT a txid and will never show up on the blockchain as such, its just a temporary ID that gets thrown away once the proof or claim is merged into a coinbase transaction. One thing that is badly needed not just for claims and proofs but for ALL TXs is |
I think this is a reasonable goal. I can definitely get method #3 (copy/paste TXT + RRSIG) implemented by then but I'm just starting to understand what is needed for PKCS#11. I think it's cool to include that button in the UI but disabled with no route yet as we work on it, and just add that feature later. |
Added success modal, implemented method 3 and 4 -- although 4 is a bit different now. I'm going to move the HSM/PKCS11 stuff to a fork of bns so HSM users don't need to install the entire GUI. So now method 4 is just "paste the entire base64 blob here" and calls sendrawclaim. You don't even need to have a reserved name in the search bar for it to work. |
This adds reserved name claim functionality to the UI.
DO NOT MERGE until commit deca1a5 is removed✅ OKTODO:
To test:
This branch uses a hard-fork of hsd to test, which includes two extra reserved names
hns-claim-test-1.xyz
andhns-claim-test-2.xyz
, which are two real ICANN domains that I own and set up for this purpose. When you launch Bob usingnpm run dev
it will automatically start in regtest mode and generate a few blocks, including the block I used in the claim commitment.To claim
hns-claim-test-1
you must create a wallet with my favorite seed phrase of all time:...and then you can use "Method 1" which is the easiest, since I have already pasted the claim TXT in "the" DNS:
To claim
hns-claim-test-2
you need my DNSSEC private key on your own computer which you then use to sign with "Method 2". That private key is posted here. Note that the filename on your local machine must match this filename exactly:Khns-claim-test-2.xyz.+008+27259.private
Navigating
The reserved name claim page is currently accessible in two ways: By looking up a reserved name, or by clicking "Airdrop / Name Claim" in the sidebar, then "Claim":
Usage