4.2.0 • Published 5 months ago

@exodus/public-key-provider v4.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@exodus/public-key-provider

Handles unified access to public keys from software and different hardware wallets.

flowchart TD
    A[Consumer] --> |getPublicKey| B
    B[PublicKeyProvider] --> C{Wallet\nSource}
    C -->|Hardware| E[publicKeyStore.get]
    C -->|Seed| F[keychain.exportKey]

Install

yarn add @exodus/public-key-provider

Usage

This feature is designed to be used together with @exodus/headless. See using the sdk.

Play with it

  1. Open the playground https://exodus-hydra.pages.dev/features/public-key-provider
  2. Try out the some methods via the UI. These corresponds 1:1 with the exodus.publicKeyProvider API.
  3. Run the below in the Dev Tools Console:
await exodus.publicKeyProvider.getPublicKey({
  walletAccount: 'exodus_0',
  keyIdentifier: {
    derivationAlgorithm: 'BIP32',
    derivationPath: "m/44'/0'/0'/0/0",
    keyType: 'secp256k1',
  },
})

API Side

See using the sdk for more details on how features plug into the SDK and the API interface in the type declaration.

const publicKey = await exodus.publicKeyProvider.getPublicKey({
  walletAccount: 'exodus_0',
  keyIdentifier,
})

const xpub = await exodus.publicKeyProvider.getExtendedPublicKey({
  walletAccount: 'exodus_0',
  keyIdentifier,
})
4.2.0

5 months ago

4.1.1

8 months ago

4.1.0

10 months ago

4.0.2

11 months ago

4.0.1

11 months ago

4.0.0

12 months ago

3.0.0

1 year ago

2.5.0

1 year ago

2.4.1

1 year ago

2.4.0

1 year ago

2.3.1

1 year ago

2.3.0

1 year ago

2.2.2

1 year ago

2.2.1

2 years ago

2.2.0

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago