allocate blockSeed as Uint8Array
This commit is contained in:
1 parent
7aa7b82c60
commit
cfc81e8c96
2 files changed
+4
-1
No files matched your search
@@ -23,6 +23,9 @@ define([
|
||||
|
||||
// should be deterministic from a seed...
|
||||
Block.genkeys = function (seed) {
|
||||
if (!(seed instanceof Uint8Array)) {
|
||||
throw new Error('INVALID_SEED_FORMAT');
|
||||
}
|
||||
if (!seed || typeof(seed.length) !== 'number' || seed.length < 64) {
|
||||
throw new Error('INVALID_SEED_LENGTH');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user