Local signer for Chorus One SDK that utilizes a BIP39 mnemonic for signing operations.
For detailed instructions on how to set up and use Local Signer with Chorus One SDK, please visit our main documentation.
In the project’s root directory, run the following command:
npm install @chorus-one/signer-local --save
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();
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.