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

feat(nibijs): Tx hash fns and better method for querying by tx hash #258

Closed
4 tasks
Unique-Divine opened this issue Dec 8, 2023 · 0 comments · Fixed by #260
Closed
4 tasks

feat(nibijs): Tx hash fns and better method for querying by tx hash #258

Unique-Divine opened this issue Dec 8, 2023 · 0 comments · Fixed by #260
Labels
type: enhance New feature, feature request, or enhancement

Comments

@Unique-Divine
Copy link
Member

Context: The UX when handling the cryptographic hashes for transactions is not great in existing Cosmos tooling. Let's fix that in NibiJS.

Tasks

  • getTxByHash(txHashHex: string) - Should be clearly hexadecimal
  • getByTxHashSha(txHashShe: Uint8Array) - Bytes for a sha256
  • txHashShaToHex with type (sha: Uint8Array) => string
  • txHashHexToSha with type (hex: string) => Result<Uint8Array> | Result meaning handle the error as a value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhance New feature, feature request, or enhancement
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant