question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

Where are actual docs and implementations?

See original GitHub issue

I know, this may sound a bit general, butā€¦ readme explains some libs:

  • @cosmjs/stargate: A client library for the Cosmos SDK 0.40 (cosmoshub-4), 0.41 and 0.42 (Stargate)
  • @cosmjs/crypto: Cryptography for blockchain projects, e.g. hashing (SHA-2, Keccak256, Ripemd160), signing (secp256k1, ed25519), HD key derivation (BIPO39, SLIP-0010), KDFs and symmetric encryption for key storage (PBKDF2, Argon2, XChaCha20Poly1305)
  • ā€¦

but when I try to use any of these, I see that:

  • https://github.com/cosmos/cosmjs/blob/main/packages/crypto/README.md tells ā€œLittle of it is implemented here, but mainly it is a curation of external libraries along with correctness tests.ā€ No links to implementations are provided, which is somewhat problematic. At least Iā€™m having difficulties to implement getting address and keys (pub, pri) from mnemonic and Iā€™ve tried several libs like @lunie/cosmos-keys (browser-only, doesnā€™t work in node.js), @cosmjs/launchpad (donā€™t how to get private key + donā€™t know how to convert public key as Uint8Array to string) and cosmos-lib (fails with ā€œerror:0308010C:digital envelope routines::unsupportedā€). Also I havenā€™t found any info on whether bech32prefix should be the same for cosmos mainnet and vega testnet.
  • https://github.com/cosmos/cosmjs/blob/main/packages/stargate/README.md contains no docs regarding usage of the lib. Itā€™s even unclear whether thereā€™s anything implemented, or just interfaces. I wonā€™t list all the attempts here, like for crypto.

Too many questions, too few answers, may be Iā€™m looking in the wrong places?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
YakovLcommented, Feb 21, 2022

Thanks, very helpful of you (TypeScript suggestions also work very well for some tasks). Looking forward to see examples of how to create and sign simple send transactions to further broadcast them with CosmWasmClient.broadcastTx. Also, Iā€™d be grateful to find how to get address, publicKey and privateKey from a mnemonic.

0reactions
msteiner96commented, Feb 21, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Life Hack 101: Doing Implementation Documentation Right
Project management documentation (such as RACI, team contact list, charter, statement of work) One final version of all required deliverables in a folder...
Read more >
Document Management: What to Expect When Implementing ...
There are three core phases to an implementation: preliminary planning, implementation, and live software. Your vendor should deliver a planĀ ...
Read more >
What is Implementation? - TechTarget
An implementation plan is a project management tool that outlines the steps to achieve a goal or objective. The plan sets the course...
Read more >
Implementing Docs as Code ā€“ Lessons and Benefits - devmio
Docs as Code treats all documentation as a codebase. Using some sort of version control like Git to manage the actual documents.
Read more >
java - Can I view the javadoc for an implementation rather ...
I do actually want the docs for a specific implementation as this implements one of many interfaces that extend the top level interface....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found