paritytech / paritytech/host-rust-core

listRingVrfKeys returns an empty list for a key registerRingVrfKey just returned (truapi-host 0.13.1)

Open
#657 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
10
Forks
3
Avg merge
1d 10h
Merged PRs (30d)
148

Description

On truapi-host 0.13.1 (truapi-host signing-host --serve --auto-accept, product peopl.dot, network previewnet, a lite person created by the CLI), through @parity/product-sdk-host's accounts provider:

  1. account.registerRingVrfKey(1, <people-lite ring location>) returns the key.
  2. account.createAccountProof with the hand-built handle { dotNsIdentifier: "peopl.dot", derivationIndex: { tag: "Index", value: 1 } } mints a proof the chain accepts (PeopleLite.set_alias_account under AsLiteAliasWithProof lands).
  3. account.listRingVrfKeys("peopl.dot", "PublicKey") answers an empty list — before step 1 and after it.

So a product following the SDK's documented path, listRingVrfKeysfindRingVrfKeyHandle, finds nothing, while the handle it would have found works when constructed by hand.

Is the registry meant to list the key here?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the sequence through the accounts provider: registerRingVrfKey, createAccountProof, and listRingVrfKeys("peopl.dot", "PublicKey") using truapi-host 0.13.1 on previewnet. Compare the registry result with the documented listRingVrfKeys → findRingVrfKeyHandle path and the hand-built derivation handle. Done means the expected registry behavior is established and the reported discrepancy is resolved or clearly documented.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.