reaster / cardano_wallet_sdk

Targeting Flutter apps, the Cardano Wallet SDK is a high-level Dart library for managing cryptocurrency accounts & executing transactions on the blockchain.
Apache License 2.0
39 stars 17 forks source link

Bryon Support? #15

Open timmolter opened 2 years ago

timmolter commented 2 years ago

Hi, great looking library!

Are there plans to support Bryon master seed generation?

And the same question for Ledger: https://github.com/cardano-foundation/CIPs/blob/master/CIP-0003/Ledger_BitBox02.md

reaster commented 2 years ago

I created a dedicated source file, master_key_generation.dart, but the crypto package I'm working with, pinenacl, has a limited set of hash functions, digests.dart. I couldn't figure out how to do the

  function hashRepeatedly(key, i) {
    (iL, iR) = HMAC
        ( hash=SHA512
        , key=key
        , message="Root Seed Chain " + UTF8NFKD(i)
        );

equivalent.

Let's leave this issue open until somebody figures this out.

timmolter commented 2 years ago

This package would probably work for the HMAC step: https://pub.dev/packages/crypto.