@toruslabs/torus.js
Advanced tools
Comparing version 13.0.0-alpha.1 to 13.0.0-alpha.2
@@ -11,5 +11,5 @@ /// <reference types="node" /> | ||
export declare function getMetadata(legacyMetadataHost: string, data: Omit<MetadataParams, "set_data" | "signature">, options?: RequestInit): Promise<BN>; | ||
export declare function getOrSetNonce(legacyMetadataHost: string, ecCurve: ec, serverTimeOffset: number, X: string, Y: string, privKey?: BN, getOnly?: boolean): Promise<GetOrSetNonceResult>; | ||
export declare function generateNonceMetadataParams(serverTimeOffset: number, operation: string, privateKey: BN, keyType: KeyType, nonce?: BN, seed?: string): NonceMetadataParams; | ||
export declare function getOrSetNonce(metadataHost: string, ecCurve: ec, serverTimeOffset: number, X: string, Y: string, privKey?: BN, getOnly?: boolean, isLegacyMetadata?: boolean, nonce?: BN, keyType?: KeyType, seed?: string): Promise<GetOrSetNonceResult>; | ||
export declare function getNonce(legacyMetadataHost: string, ecCurve: ec, serverTimeOffset: number, X: string, Y: string, privKey?: BN): Promise<GetOrSetNonceResult>; | ||
export declare function generateNonceMetadataParams(serverTimeOffset: number, operation: string, privateKey: BN, keyType: KeyType, nonce?: BN, seed?: string): NonceMetadataParams; | ||
export declare const decryptSeedData: (seedBase64: string, finalUserKey: BN) => Promise<Buffer>; |
@@ -253,5 +253,5 @@ import type { INodePub, TORUS_NETWORK_TYPE } from "@toruslabs/constants"; | ||
metadataNonce: BN; | ||
metadataSigningKey: BN; | ||
finalUserPubKeyPoint: curve.base.BasePoint; | ||
encryptedSeed?: string; | ||
finalUserPubKeyPoint: curve.base.BasePoint; | ||
metadataSigningKey?: BN; | ||
} | ||
@@ -258,0 +258,0 @@ export interface EncryptedSeed { |
{ | ||
"name": "@toruslabs/torus.js", | ||
"version": "13.0.0-alpha.1", | ||
"version": "13.0.0-alpha.2", | ||
"description": "Handle communication with torus nodes", | ||
@@ -5,0 +5,0 @@ "main": "dist/torusUtils.cjs.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
482375
5300
1