Skip to content

🐛 Ed generateKeyPair missing return for Promise? #588

@xgiovio

Description

@xgiovio

What's happening?

On https://github.com/margelo/react-native-quick-crypto/blob/main/packages/react-native-quick-crypto/src/ed.ts
Is return Promise missing on line 19?

Reproducible Code

var ed1 = new Ed('ed25519', {});
    var p = await ed1.generateKeyPair();
    const priv = ed1.getPrivateKey();

    console.log(priv);

Relevant log output

[Error: EdKeyPair.getPrivateKey(...): Keypair not initialized]

Device

ios real device, latest ios, xcode and expo

QuickCrypto Version

  1. beta 9

Can you reproduce this issue in the QuickCrypto Example app?

Yes, I can reproduce the same issue in the Example app here

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions