Comparing version 0.0.40 to 0.0.41
@@ -15,3 +15,3 @@ export { blake2b } from "./blake2b.js"; | ||
export { verifyRegistryReadResponse } from "./registryverify.js"; | ||
export { deriveChildSeed, deriveMyskyRoot, generateSeedPhraseDeterministic, seedPhraseToSeed, validSeedPhrase, } from "./seed.js"; | ||
export { deriveChildSeed, deriveMyskyRootKeypair, generateSeedPhraseDeterministic, seedPhraseToSeed, validSeedPhrase, } from "./seed.js"; | ||
export { sha512 } from "./sha512.js"; | ||
@@ -18,0 +18,0 @@ export { parseSkylinkBitfield, skylinkV1Bitfield } from "./skylinkbitfield.js"; |
@@ -15,3 +15,3 @@ export { blake2b } from "./blake2b.js"; | ||
export { verifyRegistryReadResponse } from "./registryverify.js"; | ||
export { deriveChildSeed, deriveMyskyRoot, generateSeedPhraseDeterministic, seedPhraseToSeed, validSeedPhrase, } from "./seed.js"; | ||
export { deriveChildSeed, deriveMyskyRootKeypair, generateSeedPhraseDeterministic, seedPhraseToSeed, validSeedPhrase, } from "./seed.js"; | ||
export { sha512 } from "./sha512.js"; | ||
@@ -18,0 +18,0 @@ export { parseSkylinkBitfield, skylinkV1Bitfield } from "./skylinkbitfield.js"; |
import { ed25519Keypair } from "./ed25519.js"; | ||
declare const SEED_BYTES = 16; | ||
declare function deriveChildSeed(parentSeed: Uint8Array, derivationTag: string): Uint8Array; | ||
declare function deriveMyskyRoot(userSeed: Uint8Array): ed25519Keypair; | ||
declare function deriveMyskyRootKeypair(userSeed: Uint8Array): ed25519Keypair; | ||
declare function generateSeedPhraseDeterministic(password: string): [string, string | null]; | ||
@@ -9,2 +9,2 @@ declare function seedToChecksumWords(seed: Uint8Array): [string, string, string | null]; | ||
declare function seedPhraseToSeed(seedPhrase: string): [Uint8Array, string | null]; | ||
export { deriveChildSeed, deriveMyskyRoot, generateSeedPhraseDeterministic, seedToChecksumWords, seedPhraseToSeed, validSeedPhrase, SEED_BYTES, }; | ||
export { deriveChildSeed, deriveMyskyRootKeypair, generateSeedPhraseDeterministic, seedToChecksumWords, seedPhraseToSeed, validSeedPhrase, SEED_BYTES, }; |
@@ -24,3 +24,3 @@ import { DICTIONARY_UNIQUE_PREFIX, dictionary } from "./dictionary.js"; | ||
// ecosystem. Compatibility cannot be broken here. | ||
function deriveMyskyRoot(userSeed) { | ||
function deriveMyskyRootKeypair(userSeed) { | ||
let saltBytes = Uint8Array.from(Buffer.from("root discoverable key", "utf-8")); | ||
@@ -168,2 +168,2 @@ let saltHash = sha512(saltBytes); | ||
} | ||
export { deriveChildSeed, deriveMyskyRoot, generateSeedPhraseDeterministic, seedToChecksumWords, seedPhraseToSeed, validSeedPhrase, SEED_BYTES, }; | ||
export { deriveChildSeed, deriveMyskyRootKeypair, generateSeedPhraseDeterministic, seedToChecksumWords, seedPhraseToSeed, validSeedPhrase, SEED_BYTES, }; |
{ | ||
"name": "libskynet", | ||
"version": "0.0.40", | ||
"version": "0.0.41", | ||
"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
149718