MCPcopy Create free account

hub / github.com/AudiusProject/hedgehog / functions

Functions42 in github.com/AudiusProject/hedgehog

↓ 8 callersMethodcreateWalletObj
* Create a new client side wallet object without going through the signup flow. This is useful * if you need a temporary, read-only wallet that is
src/Hedgehog.ts:368
↓ 6 callersMethodcreateAuthLookupKey
( username: string, password: string, createKey: CreateKey )
src/WalletManager.ts:73
↓ 6 callersMethodgetEntropyFromLocalStorage
(localStorage: LocalStorage)
src/WalletManager.ts:87
↓ 6 callersMethodgetWallet
* Returns the current user wallet * @returns ethereumjs-wallet wallet object if a wallet exists, otherwise null
src/Hedgehog.ts:342
↓ 6 callersMethodisLoggedIn
* Returns is the user has a client side wallet. If they do, calls can be made against * that wallet, if they don't the user has to login or signup
src/Hedgehog.ts:334
↓ 6 callersMethodsetEntropyInLocalStorage
( entropy: string, localStorage: LocalStorage )
src/WalletManager.ts:112
↓ 5 callersMethoddeleteEntropyFromLocalStorage
(localStorage: LocalStorage)
src/WalletManager.ts:119
↓ 4 callersMethodconfirmCredentials
* Confirms the user credentials given generate the same entropy after using artifacts from the server * @param username username * @param passwo
src/Hedgehog.ts:286
↓ 4 callersFunctioncreateKey
(encryptStr: string, ivHex: string)
src/utils.ts:61
↓ 4 callersMethoddecryptCipherTextAndRetrieveWallet
( password: string, ivHex: string, cipherTextHex: string, createKey: CreateKey )
src/WalletManager.ts:52
↓ 4 callersMethodgenerateWalletFromEntropy
* Given an entropy string and a HD wallet path, return the wallet address * @param entropy Hex string generated by generateMnemonicAndEntropy()
src/Authentication.ts:31
↓ 4 callersMethodlogin
* Given user credentials, attempt to get authentication artifacts from server using * getFn, create the private key using the artifacts and the use
src/Hedgehog.ts:251
↓ 4 callersFunctionsetDataInDB
(auth, user)
tests/hedgehogTest.js:37
↓ 3 callersFunctionbufferFromHexString
(hexString: string)
src/utils.ts:5
↓ 3 callersMethoddecrypt
* Given an iv buffer, key buffer and ciphertext, decrypt the plaintext value of the entropy * @param ivBuffer Buffer version of iv * @param keyB
src/Authentication.ts:93
↓ 3 callersFunctiongetPlatformCreateKey
()
src/utils.ts:55
↓ 3 callersMethodgetWalletObjFromLocalStorageIfExists
( localStorage: LocalStorage )
src/WalletManager.ts:97
↓ 3 callersMethodlogout
* Deletes the local client side wallet including entropy and all associated * authentication artifacts
src/Hedgehog.ts:324
↓ 3 callersMethodrestoreLocalWallet
* If a user refreshes or navigates away from the page and comes back later, this attempts * to restore the client side wallet from localStorage, if
src/Hedgehog.ts:352
↓ 2 callersMethodcreateIV
* Generate a 16 byte initialization vector and returns it as both a hex string and a buffer
src/Authentication.ts:59
↓ 2 callersMethodencrypt
* Given a iv buffer and key buffer, generate a ciphertext * @param entropy Hex string of entropy * @param ivBuffer Buffer version of iv * @pa
src/Authentication.ts:72
↓ 2 callersMethodgenerateMnemonicAndEntropy
* Creates a random mnemonic and creates an entropy string from the mnemonic * @returns `{mnemonic: '...mnemonic string...', entropy: '47b0e5e107ccc
src/Authentication.ts:47
↓ 2 callersFunctionisNodeEnv
()
src/utils.ts:51
↓ 2 callersFunctionisWebEnv
()
src/utils.ts:42
↓ 2 callersFunctionresetDataInDB
()
tests/hedgehogTest.js:33
↓ 1 callersFunctionWebWorker
(worker: Worker)
src/utils.ts:12
↓ 1 callersFunctioncreateEncryptBuffer
* This prepends the encryptPrefixStr to the entropy, converts it to a buffer and returns the buffer * @param entropy hex string of entropy * @return
src/Authentication.ts:114
↓ 1 callersFunctioncreateKey
(encryptStr, ivHex)
src/authWorker.js:16
↓ 1 callersFunctiongetPlatformLocalStorage
()
src/utils.ts:23
↓ 1 callersFunctionisReactNativeEnv
()
src/utils.ts:36
↓ 1 callersMethodisReady
* Helper function to check if Hedgehog instance is ready. * Only needed if `useLocalStorage = true` * Otherwise, Hedgehog will be ready as soon
src/Hedgehog.ts:64
↓ 1 callersMethodsignUp
* Given user credentials, create a client side wallet and all other authentication artifacts, * call setFn to persist the artifacts to a server and
src/Hedgehog.ts:84
↓ 1 callersFunctionverifyDecryptString
* This converts the buffer returned by the `decrypt` function to string, checks that the * integrity of the string to check if the encryptPrefixStr e
src/Authentication.ts:126
↓ 1 callersFunctionwaitUntil
(condition: () => boolean)
src/utils.ts:112
MethodchangePassword
* Generate new set of auth credentials to allow login and remove the old password * Note: Doesn't log out on error * @param username - username
src/Hedgehog.ts:190
Methodconstructor
( getFn?: GetFn, setAuthFn?: SetAuthFn, setUserFn?: SetUserFn, useLocalStorage = true, loc
src/Hedgehog.ts:25
MethodcreateWalletObj
( password: string, entropyOverride: string | null = null, localStorage: LocalStorage, createK
src/WalletManager.ts:15
FunctiongetFn
(obj)
tests/hedgehogTest.js:20
MethodresetPassword
* Generate new set of auth credentials to allow login * If the old password is included, the setAuthFn will include the old lookup key for deletion
src/Hedgehog.ts:139
FunctionsetAuthFn
(obj)
tests/hedgehogTest.js:25
FunctionsetUserFn
(obj)
tests/hedgehogTest.js:29
MethodwaitUntilReady
* Helper function to wait until Hedgehog instance is ready. * Only needed if `useLocalStorage = true` * Otherwise, Hedgehog will be ready as soo
src/Hedgehog.ts:73