@chorus-one/signer-local
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Chorus One SDK: Local Signer

Local signer for Chorus One SDK that utilizes a BIP39 mnemonic for signing operations.

Documentation

For detailed instructions on how to set up and use Local Signer with Chorus One SDK, please visit our main documentation.

Installation

In the project’s root directory, run the following command:

npm install @chorus-one/signer-local --save

Usage

Here is a basic example of how to configure and initialize the LocalSigner:

import { SolanaStaker } from '@chorus-one/solana';
import { LocalSigner } from '@chorus-one/signer-local';

const signer = new LocalSigner({
  mnemonic: 'your-mnemonic-phrase',
  accounts: [{ hdPath: 'your-hd-path' }]
  addressDerivationFn: SolanaStaker.getAddressDerivationFn()
});

await signer.init();

License

The Chorus One SDK is licensed under the Apache 2.0 License. For more detailed information, please refer to the LICENSE file in the repository.

Dependencies (6)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @chorus-one/signer-local

    Weekly Downloads

    3

    Version

    1.0.0

    License

    Apache-2.0

    Unpacked Size

    92.6 kB

    Total Files

    33

    Last publish

    Collaborators

    • dyakimov-chorus-one
    • mateusz-chorus
    • maria_chorus_one
    • chorusone-mksh
    • c1-opus