Comparing version 0.0.38 to 0.0.39
@@ -120,3 +120,3 @@ import { blake2b } from "./blake2b.js"; | ||
let entropyInput = new Uint8Array(keypairTag.length + seed.length); | ||
entropyInput.set(seed); | ||
entropyInput.set(seed, 0); | ||
entropyInput.set(keypairTag, seed.length); | ||
@@ -123,0 +123,0 @@ let keypairEntropy = sha512(entropyInput); |
@@ -11,4 +11,6 @@ import { DICTIONARY_UNIQUE_PREFIX, dictionary } from "./dictionary.js"; | ||
function deriveChildSeed(parentSeed, derivationTag) { | ||
let u8 = new TextEncoder().encode(" - " + derivationTag); | ||
let preimage = new Uint8Array(parentSeed.length + u8.length); | ||
let tagU8 = new TextEncoder().encode(" - " + derivationTag); | ||
let preimage = new Uint8Array(parentSeed.length + tagU8.length); | ||
preimage.set(parentSeed, 0); | ||
preimage.set(tagU8, parentSeed.length); | ||
let hash = sha512(preimage); | ||
@@ -15,0 +17,0 @@ return hash.slice(0, SEED_BYTES); |
@@ -7,3 +7,3 @@ declare type dataFn = (data?: any) => void; | ||
loginComplete: boolean; | ||
kernelLoaded: boolean; | ||
kernelLoaded: string; | ||
logoutComplete: boolean; | ||
@@ -10,0 +10,0 @@ } |
{ | ||
"name": "libskynet", | ||
"version": "0.0.38", | ||
"version": "0.0.39", | ||
"description": "helper library to interact with skynet's low level primitives", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
148708
4625