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

@iota/signing

Package Overview
Dependencies
Maintainers
5
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iota/signing - npm Package Compare versions

Comparing version 1.0.0-beta.12 to 1.0.0-beta.15

11

out/signing/src/signing.js

@@ -8,6 +8,5 @@ "use strict";

var Promise = require("bluebird");
require("core-js");
var errors = require("../../errors");
require("../../typed-array");
var add_1 = require("./add");
exports.TRYTE_WIDTH = 3;
exports.MIN_TRYTE_VALUE = -13;

@@ -17,5 +16,5 @@ exports.MAX_TRYTE_VALUE = 13;

exports.HASH_LENGTH = 243;
exports.FRAGMENT_LENGTH = (exports.HASH_LENGTH / exports.NUMBER_OF_SECURITY_LEVELS / exports.TRYTE_WIDTH) * exports.HASH_LENGTH;
exports.FRAGMENT_LENGTH = (exports.HASH_LENGTH / exports.NUMBER_OF_SECURITY_LEVELS / converter_1.TRYTE_WIDTH) * exports.HASH_LENGTH;
exports.NUMBER_OF_FRAGMENT_CHUNKS = exports.FRAGMENT_LENGTH / exports.HASH_LENGTH;
exports.NORMALIZED_FRAGMENT_LENGTH = exports.HASH_LENGTH / exports.TRYTE_WIDTH / exports.NUMBER_OF_SECURITY_LEVELS;
exports.NORMALIZED_FRAGMENT_LENGTH = exports.HASH_LENGTH / converter_1.TRYTE_WIDTH / exports.NUMBER_OF_SECURITY_LEVELS;
/**

@@ -235,3 +234,3 @@ * @method subseed

}
var output = new Int8Array(exports.HASH_LENGTH / exports.TRYTE_WIDTH);
var output = new Int8Array(exports.HASH_LENGTH / converter_1.TRYTE_WIDTH);
for (var i = 0; i < exports.NUMBER_OF_SECURITY_LEVELS; i++) {

@@ -241,3 +240,3 @@ var sum = 0;

sum += output[j] =
bundle[j * exports.TRYTE_WIDTH] + bundle[j * exports.TRYTE_WIDTH + 1] * 3 + bundle[j * exports.TRYTE_WIDTH + 2] * 9;
bundle[j * converter_1.TRYTE_WIDTH] + bundle[j * converter_1.TRYTE_WIDTH + 1] * 3 + bundle[j * converter_1.TRYTE_WIDTH + 2] * 9;
}

@@ -244,0 +243,0 @@ if (sum >= 0) {

@@ -34,2 +34,21 @@ "use strict";

}; }; // tslint:disable-line prefer-object-spread
var PersistenceEvents;
(function (PersistenceEvents) {
PersistenceEvents["writeBundle"] = "writeBundle";
PersistenceEvents["deleteBundle"] = "deleteBundle";
PersistenceEvents["writeCDA"] = "writeCDA";
PersistenceEvents["deleteCDA"] = "deleteCDA";
})(PersistenceEvents = exports.PersistenceEvents || (exports.PersistenceEvents = {}));
var PersistenceBatchTypes;
(function (PersistenceBatchTypes) {
PersistenceBatchTypes["writeBundle"] = "writeBundle";
PersistenceBatchTypes["deleteBundle"] = "deleteBundle";
PersistenceBatchTypes["writeCDA"] = "writeCDA";
PersistenceBatchTypes["deleteCDA"] = "delteCDA";
})(PersistenceBatchTypes = exports.PersistenceBatchTypes || (exports.PersistenceBatchTypes = {}));
var PersistenceAdapterBatchTypes;
(function (PersistenceAdapterBatchTypes) {
PersistenceAdapterBatchTypes["write"] = "write";
PersistenceAdapterBatchTypes["delete"] = "delete";
})(PersistenceAdapterBatchTypes = exports.PersistenceAdapterBatchTypes || (exports.PersistenceAdapterBatchTypes = {}));
//# sourceMappingURL=types.js.map
{
"name": "@iota/signing",
"version": "1.0.0-beta.12",
"version": "1.0.0-beta.15",
"description": "IOTA Signing Scheme",

@@ -47,7 +47,7 @@ "main": "./out/signing/src/index.js",

"dependencies": {
"@iota/converter": "^1.0.0-beta.12",
"@iota/kerl": "^1.0.0-beta.12",
"@iota/pad": "^1.0.0-beta.12"
"@iota/converter": "^1.0.0-beta.15",
"@iota/kerl": "^1.0.0-beta.15",
"@iota/pad": "^1.0.0-beta.15"
},
"gitHead": "0777d33f7a01a2751b570774e917ce5e2485cd40"
"gitHead": "fe5e4a44530c27a5cd5d1d65aaf79b49aa2be3cd"
}
/** @module signing */
import { fromValue } from '@iota/converter'
import { fromValue, TRYTE_WIDTH } from '@iota/converter'
import Kerl from '@iota/kerl'
import { padTrits } from '@iota/pad'
import * as Promise from 'bluebird'
import 'core-js'
import * as errors from '../../errors'
import '../../typed-array'
import { NativeGenerateSignatureFunction } from '../../types'
import { add } from './add'
export const TRYTE_WIDTH = 3
export const MIN_TRYTE_VALUE = -13

@@ -13,0 +12,0 @@ export const MAX_TRYTE_VALUE = 13

import * as Promise from 'bluebird';
import '../../typed-array';
import 'core-js';
import { NativeGenerateSignatureFunction } from '../../types';
export declare const TRYTE_WIDTH = 3;
export declare const MIN_TRYTE_VALUE = -13;

@@ -6,0 +5,0 @@ export declare const MAX_TRYTE_VALUE = 13;

@@ -265,15 +265,19 @@ /// <reference types="node" />

readonly batch: (ops: ReadonlyArray<PersistenceBatch<T>>) => Promise<void>;
readonly stateRead: (key: B) => Promise<B>;
readonly stateWrite: (key: B, value: B) => Promise<void>;
readonly stateDelete: (key: B) => Promise<B>;
readonly stateBatch: (ops: ReadonlyArray<PersistenceAdapterBatch<B, B>>) => Promise<void>;
readonly createStateReadStream: (options?: PersistenceIteratorOptions) => NodeJS.ReadableStream;
readonly historyRead: (key: B) => Promise<B>;
readonly historyWrite: (key: B, value: B) => Promise<void>;
readonly historyDelete: (key: B) => Promise<void>;
readonly historyBatch: (ops: ReadonlyArray<PersistenceAdapterBatch<B, B>>) => Promise<void>;
readonly createHistoryReadStream: (options?: PersistenceIteratorOptions) => NodeJS.ReadableStream;
readonly state: PersistenceAdapter<B, B>;
readonly history: PersistenceAdapter<B, B>;
}
export declare enum PersistenceEvents {
writeBundle = "writeBundle",
deleteBundle = "deleteBundle",
writeCDA = "writeCDA",
deleteCDA = "deleteCDA"
}
export declare enum PersistenceBatchTypes {
writeBundle = "writeBundle",
deleteBundle = "deleteBundle",
writeCDA = "writeCDA",
deleteCDA = "delteCDA"
}
export interface PersistenceBatch<V = Int8Array> {
readonly type: 'writeBundle' | 'deleteBundle' | 'writeCDA' | 'deleteCDA';
readonly type: PersistenceBatchTypes.writeBundle | PersistenceBatchTypes.deleteBundle | PersistenceBatchTypes.writeCDA | PersistenceBatchTypes.deleteCDA;
readonly value: V;

@@ -293,6 +297,12 @@ }

readonly createReadStream: (options?: PersistenceIteratorOptions) => NodeJS.ReadableStream;
readonly close: () => Promise<void>;
readonly open: () => Promise<void>;
}
export declare type PersistenceAdapterBatch<K = Buffer, V = Buffer> = PersistenceAdapterWriteOp<K, V> | PersistenceAdapterDeleteOp<K>;
export declare enum PersistenceAdapterBatchTypes {
write = "write",
delete = "delete"
}
export interface PersistenceAdapterWriteOp<K = Buffer, V = Buffer> {
readonly type: 'write';
readonly type: PersistenceAdapterBatchTypes.write;
readonly key: K;

@@ -302,3 +312,3 @@ readonly value: V;

export interface PersistenceAdapterDeleteOp<K = Buffer> {
readonly type: 'delete';
readonly type: PersistenceAdapterBatchTypes.delete;
readonly key: K;

@@ -305,0 +315,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