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