conseiljs-softsigner
TypeScript icon, indicating that this package has built-in type declarations

5.0.6 • Public • Published

ConseilJS-softsigner

npm version npm Build Status Coverage Status dependencies

ConseilJS software signer plugin for ConseilJS-core. Supports the ED25519 curve via libsodium for tz1-address operations on the Tezos platform.

Use with Nodejs

Add our NPM package to your project and a signing library.

npm i conseiljs
npm i conseiljs-softsigner
import fetch from 'node-fetch';
import * as log from 'loglevel';

import { registerFetch, registerLogger, Signer, TezosMessageUtils } from 'conseiljs';
import { KeyStoreUtils, SoftSigner } from 'conseiljs-softsigner';

const logger = log.getLogger('conseiljs');
logger.setLevel('debug', false);
registerLogger(logger);
registerFetch(fetch);

let signer: Signer;
const keyStore = await KeyStoreUtils.restoreIdentityFromSecretKey('edskRgu8wHxjwayvnmpLDDijzD3VZDoAH7ZLqJWuG4zg7LbxmSWZWhtkSyM5Uby41rGfsBGk4iPKWHSDniFyCRv3j7YFCknyHH');
signer = new SoftSigner(TezosMessageUtils.writeKeyWithHint(keyStore.secretKey, 'edsk'));

Use with React

TBD

Use with React Native

TBD

Use with Web

<html>
<head>
    <script src="https://cdn.jsdelivr.net/gh/cryptonomic/conseiljs-softsigner/dist-web/conseiljs-softsigner.min.js"
        integrity="KPS+XSGK3b3DoKqOd537PoAO8jWj3UMSRPZJa3nGs11jbH6QKZcBlhM6zeW0c9Qx" crossorigin="anonymous"></script>
        <script>
            //conseiljssoftsigner.
        </script>
</head>
<body>
    ...
</body>
</html>

Package Sidebar

Install

npm i conseiljs-softsigner

Weekly Downloads

164

Version

5.0.6

License

Apache-2.0

Unpacked Size

46.9 kB

Total Files

16

Last publish

Collaborators

  • vishakh
  • anonymoussprocket
  • bcryptonomic
  • taaseen