-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Step 1: Alice has received the public key from her mnemonic phrase and wants to find out her account: ed25519:3fJb5T7zAB7eysUoUyXnhA5cALdQ2GF8vuYZwmiMp16u
Step 2: Alice uses the helper to get her account:
curl -s https://helper.mainnet.near.org/publicKey/ed25519:3fJb5T7zAB7eysUoUyXnhA5cALdQ2GF8vuYZwmiMp16u/accountsReceives the answer: Not found
Omniscient Bob knows Alice's account and can verify that the public key exists:
curl -s -X POST -H 'Content-Type: application/json' -d '{"jsonrpc": "2.0", "id": "dontcare", "method": "query", "params": {"request_type": "view_access_key", "finality": "final", "account_id": "ilyar42.near", "public_key": "ed25519:3fJb5T7zAB7eysUoUyXnhA5cALdQ2GF8vuYZwmiMp16u"}}' https://rpc.mainnet.near.orggot:
{
"jsonrpc": "2.0",
"result": {
"block_hash": "6B3GLFhnCj7zEPyVCZBuDnbmNmgnvMezbANq9KHo2gNj",
"block_height": 107428409,
"nonce": 96776901000001,
"permission": "FullAccess"
},
"id": "dontcare"
}Bob sees that the key exists, but cannot explain to Alice why she cannot get the account name using the public key using the service and assumes that there is an error in the service.
ilyar
Metadata
Metadata
Assignees
Labels
No labels