- Preparing search index...
- The search index is not available
casper-storage
Methods
generate
- generate(wordsLength?): Uint8Array
-
Parameters
-
Optional
wordsLength: number
Returns Uint8Array
getWordAt
- getWordAt(entropy, index, encode): string
-
Parameters
-
entropy: Hex
-
index: number
-
encode: boolean
Returns string
toEntropy
- toEntropy(key, encoded?): Uint8Array
-
Parameters
-
key: string[]
-
Optional
encoded: boolean
Returns Uint8Array
toEntropyAsync
- toEntropyAsync(key, encoded?): Promise<Uint8Array>
-
Parameters
-
key: string[]
-
Optional
encoded: boolean
Returns Promise<Uint8Array>
toKey
- toKey(entropy, encode?): string[]
-
Parameters
-
entropy: Hex
-
Optional
encode: boolean
Returns string[]
toKeyAsync
- toKeyAsync(entropy, encode?): Promise<string[]>
-
Parameters
-
entropy: Hex
-
Optional
encode: boolean
Returns Promise<string[]>
toSeed
- toSeed(entropy, password?): string
-
Parameters
-
entropy: Uint8Array
-
Optional
password: string
Returns string
toSeedArray
- toSeedArray(entropy, password?): Uint8Array
-
Parameters
-
entropy: Uint8Array
-
Optional
password: string
Returns Uint8Array
toSeedArrayAsync
- toSeedArrayAsync(entropy, password?): Promise<Uint8Array>
-
Parameters
-
entropy: Uint8Array
-
Optional
password: string
Returns Promise<Uint8Array>
toSeedAsync
- toSeedAsync(entropy, password?): Promise<string>
-
Parameters
-
entropy: Uint8Array
-
Optional
password: string
Returns Promise<string>
validate
- validate(key, encoded?): boolean
-
Parameters
-
key: string[]
-
Optional
encoded: boolean
Returns boolean
Key provider