clean up yarn.lock

This commit is contained in:
einhorn_b 2023-09-19 09:58:14 +02:00
parent 678b4c0a03
commit 6ff4652271
3 changed files with 543 additions and 638 deletions

View File

@ -35,8 +35,7 @@
"reflect-metadata": "^0.1.13",
"sodium-native": "^4.0.4",
"tsconfig-paths": "^4.1.2",
"type-graphql": "^2.0.0-beta.2",
"typeorm": "^0.3.17"
"type-graphql": "^2.0.0-beta.2"
},
"devDependencies": {
"@eslint-community/eslint-plugin-eslint-comments": "^3.2.1",
@ -63,7 +62,8 @@
"ts-jest": "^27.0.5",
"ts-node": "^10.9.1",
"typescript": "^4.9.4",
"typeorm-extension": "^3.0.1"
"typeorm-extension": "^3.0.1",
"typeorm": "^0.3.17"
},
"engines": {
"node": ">=14"

View File

@ -7,21 +7,3 @@ export const uuid4ToBuffer = (uuid: string): Buffer => {
return buffer
}
export const HARDENED_KEY_BITMASK = 0x80000000
/*
* change derivation index from x => x'
* for more infos to hardened keys look here:
* https://en.bitcoin.it/wiki/BIP_0032
*/
export const hardenDerivationIndex = (derivationIndex: number): number => {
/*
TypeScript uses signed integers by default,
but bip32-ed25519 expects an unsigned value for the derivation index.
The >>> shifts the bits 0 places to the right, which effectively makes no change to the value,
but forces TypeScript to treat derivationIndex as an unsigned value.
Source: ChatGPT
*/
return (derivationIndex | HARDENED_KEY_BITMASK) >>> 0
}

File diff suppressed because it is too large Load Diff