Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

conseiljs

Package Overview
Dependencies
Maintainers
3
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conseiljs - npm Package Compare versions

Comparing version 5.0.2-beta.0 to 5.0.2-beta.1

2

dist/chain/tezos/TezosNodeWriter.js

@@ -130,3 +130,3 @@ "use strict";

const forgedOperationGroup = forgeOperations(blockHead.hash, operations);
const opSignature = yield signer.sign(Buffer.from(TezosConstants_1.TezosConstants.OperationGroupWatermark + forgedOperationGroup, 'hex'));
const opSignature = yield signer.signOperation(Buffer.from(TezosConstants_1.TezosConstants.OperationGroupWatermark + forgedOperationGroup, 'hex'));
const signedOpGroup = Buffer.concat([Buffer.from(forgedOperationGroup, 'hex'), opSignature]);

@@ -133,0 +133,0 @@ const hexSignature = TezosMessageUtil_1.TezosMessageUtils.readSignatureWithHint(opSignature, 'edsig');

/// <reference types="node" />
export interface Signer {
sign: (bytes: Buffer) => Promise<Buffer>;
signOperation: (bytes: Buffer) => Promise<Buffer>;
signText: (message: string) => Promise<string>;

@@ -5,0 +5,0 @@ }

{
"name": "conseiljs",
"version": "5.0.2-beta.0",
"version": "5.0.2-beta.1",
"description": "Client-side library for dApp development.",

@@ -61,5 +61,3 @@ "browser": "dist/index-web.js",

],
"reporter": [
"text-lcov"
],
"reporter": [ "text", "text-lcov" ],
"sourceMap": true,

@@ -88,2 +86,3 @@ "instrument": true

"chai-as-promised": "7.1.1",
"conseiljs-softsigner": "5.0.2-beta.0",
"copyfiles": "2.3.0",

@@ -90,0 +89,0 @@ "coveralls": "3.1.0",

@@ -19,2 +19,4 @@ # ConseilJS-core

For more details on how to use these libraries see their respective readme files: [ConseilJS-core](./blob/master/ConseilJS/docs/README.md), [ConseilJS-softsigner](https://github.com/Cryptonomic/ConseilJS-softsigner/blob/master/README.md), [ConseilJS-ledgersigner](https://github.com/Cryptonomic/ConseilJS-ledgersigner/blob/master/README.md).
## Use with Nodejs

@@ -42,3 +44,3 @@

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

@@ -59,3 +61,3 @@ ```

<script src="https://cdn.jsdelivr.net/gh/cryptonomic/conseiljs/dist-web/conseiljs.min.js"
integrity="sha384-/Zw9+ejb8b2df21bw3+z5azbgdiFLvEks7esYyGtjFiWNHEGsnjnPYSfcztio8lq"
integrity="sha384-zf1JnFgeBkUovmAPQjLAJl81QYeEwY3HcMv626FdnOq1cS9pnxSbuBi4tZPfhGjd"
crossorigin="anonymous"></script>

@@ -62,0 +64,0 @@ ```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc