@twin.org/crypto 0.0.1-next.2 → 0.0.1-next.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +218 -0
- package/dist/esm/index.mjs +217 -1
- package/dist/types/address/bip44.d.ts +15 -0
- package/dist/types/hashes/blake3.d.ts +44 -0
- package/dist/types/hashes/sha3.d.ts +61 -0
- package/dist/types/index.d.ts +2 -0
- package/docs/changelog.md +1 -1
- package/docs/reference/classes/Bech32.md +12 -4
- package/docs/reference/classes/Bip32Path.md +12 -4
- package/docs/reference/classes/Bip39.md +24 -8
- package/docs/reference/classes/Bip44.md +118 -18
- package/docs/reference/classes/Blake2b.md +27 -9
- package/docs/reference/classes/Blake3.md +137 -0
- package/docs/reference/classes/ChaCha20Poly1305.md +15 -5
- package/docs/reference/classes/Ed25519.md +18 -6
- package/docs/reference/classes/HmacSha1.md +12 -4
- package/docs/reference/classes/HmacSha256.md +21 -7
- package/docs/reference/classes/HmacSha512.md +33 -11
- package/docs/reference/classes/Hotp.md +6 -2
- package/docs/reference/classes/PasswordGenerator.md +3 -1
- package/docs/reference/classes/PasswordValidator.md +19 -7
- package/docs/reference/classes/Pbkdf2.md +24 -8
- package/docs/reference/classes/Secp256k1.md +18 -6
- package/docs/reference/classes/Sha1.md +6 -2
- package/docs/reference/classes/Sha256.md +12 -4
- package/docs/reference/classes/Sha3.md +179 -0
- package/docs/reference/classes/Sha512.md +18 -6
- package/docs/reference/classes/Slip0010.md +24 -8
- package/docs/reference/classes/Totp.md +39 -13
- package/docs/reference/classes/X25519.md +6 -2
- package/docs/reference/classes/Zip215.md +9 -3
- package/docs/reference/index.md +2 -0
- package/locales/en.json +3 -6
- package/package.json +10 -36
|
@@ -12,11 +12,15 @@ Create a new instance of HmacSha256.
|
|
|
12
12
|
|
|
13
13
|
#### Parameters
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
##### key
|
|
16
|
+
|
|
17
|
+
`Uint8Array`
|
|
16
18
|
|
|
17
19
|
The key for the hmac.
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
##### bits
|
|
22
|
+
|
|
23
|
+
`number` = `HmacSha256.SIZE_256`
|
|
20
24
|
|
|
21
25
|
The number of bits.
|
|
22
26
|
|
|
@@ -50,11 +54,15 @@ Perform Sum 224 on the block.
|
|
|
50
54
|
|
|
51
55
|
#### Parameters
|
|
52
56
|
|
|
53
|
-
|
|
57
|
+
##### key
|
|
58
|
+
|
|
59
|
+
`Uint8Array`
|
|
54
60
|
|
|
55
61
|
The key for the hmac.
|
|
56
62
|
|
|
57
|
-
|
|
63
|
+
##### block
|
|
64
|
+
|
|
65
|
+
`Uint8Array`
|
|
58
66
|
|
|
59
67
|
The block to operate on.
|
|
60
68
|
|
|
@@ -74,11 +82,15 @@ Perform Sum 256 on the block.
|
|
|
74
82
|
|
|
75
83
|
#### Parameters
|
|
76
84
|
|
|
77
|
-
|
|
85
|
+
##### key
|
|
86
|
+
|
|
87
|
+
`Uint8Array`
|
|
78
88
|
|
|
79
89
|
The key for the hmac.
|
|
80
90
|
|
|
81
|
-
|
|
91
|
+
##### block
|
|
92
|
+
|
|
93
|
+
`Uint8Array`
|
|
82
94
|
|
|
83
95
|
The block to operate on.
|
|
84
96
|
|
|
@@ -98,7 +110,9 @@ Update the hash with the block.
|
|
|
98
110
|
|
|
99
111
|
#### Parameters
|
|
100
112
|
|
|
101
|
-
|
|
113
|
+
##### block
|
|
114
|
+
|
|
115
|
+
`Uint8Array`
|
|
102
116
|
|
|
103
117
|
The block to update the hash with.
|
|
104
118
|
|
|
@@ -12,11 +12,15 @@ Create a new instance of HmacSha512.
|
|
|
12
12
|
|
|
13
13
|
#### Parameters
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
##### key
|
|
16
|
+
|
|
17
|
+
`Uint8Array`
|
|
16
18
|
|
|
17
19
|
The key for the hmac.
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
##### bits
|
|
22
|
+
|
|
23
|
+
`number` = `HmacSha512.SIZE_512`
|
|
20
24
|
|
|
21
25
|
The number of bits.
|
|
22
26
|
|
|
@@ -66,11 +70,15 @@ Perform Sum 512 on the block.
|
|
|
66
70
|
|
|
67
71
|
#### Parameters
|
|
68
72
|
|
|
69
|
-
|
|
73
|
+
##### key
|
|
74
|
+
|
|
75
|
+
`Uint8Array`
|
|
70
76
|
|
|
71
77
|
The key for the hmac.
|
|
72
78
|
|
|
73
|
-
|
|
79
|
+
##### block
|
|
80
|
+
|
|
81
|
+
`Uint8Array`
|
|
74
82
|
|
|
75
83
|
The block to operate on.
|
|
76
84
|
|
|
@@ -90,11 +98,15 @@ Perform Sum 384 on the block.
|
|
|
90
98
|
|
|
91
99
|
#### Parameters
|
|
92
100
|
|
|
93
|
-
|
|
101
|
+
##### key
|
|
102
|
+
|
|
103
|
+
`Uint8Array`
|
|
94
104
|
|
|
95
105
|
The key for the hmac.
|
|
96
106
|
|
|
97
|
-
|
|
107
|
+
##### block
|
|
108
|
+
|
|
109
|
+
`Uint8Array`
|
|
98
110
|
|
|
99
111
|
The block to operate on.
|
|
100
112
|
|
|
@@ -114,11 +126,15 @@ Perform Sum 256 on the block.
|
|
|
114
126
|
|
|
115
127
|
#### Parameters
|
|
116
128
|
|
|
117
|
-
|
|
129
|
+
##### key
|
|
130
|
+
|
|
131
|
+
`Uint8Array`
|
|
118
132
|
|
|
119
133
|
The key for the hmac.
|
|
120
134
|
|
|
121
|
-
|
|
135
|
+
##### block
|
|
136
|
+
|
|
137
|
+
`Uint8Array`
|
|
122
138
|
|
|
123
139
|
The block to operate on.
|
|
124
140
|
|
|
@@ -138,11 +154,15 @@ Perform Sum 224 on the block.
|
|
|
138
154
|
|
|
139
155
|
#### Parameters
|
|
140
156
|
|
|
141
|
-
|
|
157
|
+
##### key
|
|
158
|
+
|
|
159
|
+
`Uint8Array`
|
|
142
160
|
|
|
143
161
|
The key for the hmac.
|
|
144
162
|
|
|
145
|
-
|
|
163
|
+
##### block
|
|
164
|
+
|
|
165
|
+
`Uint8Array`
|
|
146
166
|
|
|
147
167
|
The block to operate on.
|
|
148
168
|
|
|
@@ -162,7 +182,9 @@ Update the hash with the block.
|
|
|
162
182
|
|
|
163
183
|
#### Parameters
|
|
164
184
|
|
|
165
|
-
|
|
185
|
+
##### block
|
|
186
|
+
|
|
187
|
+
`Uint8Array`
|
|
166
188
|
|
|
167
189
|
The block to update the hash with.
|
|
168
190
|
|
|
@@ -23,11 +23,15 @@ Generate a counter based One Time Password.
|
|
|
23
23
|
|
|
24
24
|
#### Parameters
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
##### key
|
|
27
|
+
|
|
28
|
+
`Uint8Array`
|
|
27
29
|
|
|
28
30
|
Key for the one time password.
|
|
29
31
|
|
|
30
|
-
|
|
32
|
+
##### counter
|
|
33
|
+
|
|
34
|
+
`number`
|
|
31
35
|
|
|
32
36
|
This should be stored by the application,
|
|
33
37
|
must be user specific, and be incremented for each request.
|
|
@@ -23,31 +23,43 @@ Test the strength of the password.
|
|
|
23
23
|
|
|
24
24
|
#### Parameters
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
##### property
|
|
27
|
+
|
|
28
|
+
`string`
|
|
27
29
|
|
|
28
30
|
The name of the property.
|
|
29
31
|
|
|
30
|
-
|
|
32
|
+
##### password
|
|
33
|
+
|
|
34
|
+
`string`
|
|
31
35
|
|
|
32
36
|
The password to test.
|
|
33
37
|
|
|
34
|
-
|
|
38
|
+
##### failures
|
|
39
|
+
|
|
40
|
+
`IValidationFailure`[]
|
|
35
41
|
|
|
36
42
|
The list of failures to add to.
|
|
37
43
|
|
|
38
|
-
|
|
44
|
+
##### options?
|
|
39
45
|
|
|
40
46
|
Options to configure the testing.
|
|
41
47
|
|
|
42
|
-
|
|
48
|
+
###### minLength
|
|
49
|
+
|
|
50
|
+
`number`
|
|
43
51
|
|
|
44
52
|
The minimum length of the password, defaults to 8.
|
|
45
53
|
|
|
46
|
-
|
|
54
|
+
###### maxLength
|
|
55
|
+
|
|
56
|
+
`number`
|
|
47
57
|
|
|
48
58
|
The minimum length of the password, defaults to 128.
|
|
49
59
|
|
|
50
|
-
|
|
60
|
+
###### minPhraseLength
|
|
61
|
+
|
|
62
|
+
`number`
|
|
51
63
|
|
|
52
64
|
The minimum length of the password for it to be considered a pass phrase.
|
|
53
65
|
|
|
@@ -22,19 +22,27 @@ Derive a key from the parameters using Sha256.
|
|
|
22
22
|
|
|
23
23
|
#### Parameters
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
##### password
|
|
26
|
+
|
|
27
|
+
`Uint8Array`
|
|
26
28
|
|
|
27
29
|
The password to derive the key from.
|
|
28
30
|
|
|
29
|
-
|
|
31
|
+
##### salt
|
|
32
|
+
|
|
33
|
+
`Uint8Array`
|
|
30
34
|
|
|
31
35
|
The salt for the derivation.
|
|
32
36
|
|
|
33
|
-
|
|
37
|
+
##### iterations
|
|
38
|
+
|
|
39
|
+
`number`
|
|
34
40
|
|
|
35
41
|
Number of iterations to perform.
|
|
36
42
|
|
|
37
|
-
|
|
43
|
+
##### keyLength
|
|
44
|
+
|
|
45
|
+
`number`
|
|
38
46
|
|
|
39
47
|
The length of the key to derive.
|
|
40
48
|
|
|
@@ -54,19 +62,27 @@ Derive a key from the parameters using Sha512.
|
|
|
54
62
|
|
|
55
63
|
#### Parameters
|
|
56
64
|
|
|
57
|
-
|
|
65
|
+
##### password
|
|
66
|
+
|
|
67
|
+
`Uint8Array`
|
|
58
68
|
|
|
59
69
|
The password to derive the key from.
|
|
60
70
|
|
|
61
|
-
|
|
71
|
+
##### salt
|
|
72
|
+
|
|
73
|
+
`Uint8Array`
|
|
62
74
|
|
|
63
75
|
The salt for the derivation.
|
|
64
76
|
|
|
65
|
-
|
|
77
|
+
##### iterations
|
|
78
|
+
|
|
79
|
+
`number`
|
|
66
80
|
|
|
67
81
|
Number of iterations to perform.
|
|
68
82
|
|
|
69
|
-
|
|
83
|
+
##### keyLength
|
|
84
|
+
|
|
85
|
+
`number`
|
|
70
86
|
|
|
71
87
|
The length of the key to derive.
|
|
72
88
|
|
|
@@ -38,7 +38,9 @@ Public returns the PublicKey corresponding to private.
|
|
|
38
38
|
|
|
39
39
|
#### Parameters
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
##### privateKey
|
|
42
|
+
|
|
43
|
+
`Uint8Array`
|
|
42
44
|
|
|
43
45
|
The private key to get the corresponding public key.
|
|
44
46
|
|
|
@@ -62,11 +64,15 @@ Sign the block with privateKey and returns a signature.
|
|
|
62
64
|
|
|
63
65
|
#### Parameters
|
|
64
66
|
|
|
65
|
-
|
|
67
|
+
##### privateKey
|
|
68
|
+
|
|
69
|
+
`Uint8Array`
|
|
66
70
|
|
|
67
71
|
The private key.
|
|
68
72
|
|
|
69
|
-
|
|
73
|
+
##### block
|
|
74
|
+
|
|
75
|
+
`Uint8Array`
|
|
70
76
|
|
|
71
77
|
The block to sign.
|
|
72
78
|
|
|
@@ -90,15 +96,21 @@ Verify reports whether sig is a valid signature of block by publicKey.
|
|
|
90
96
|
|
|
91
97
|
#### Parameters
|
|
92
98
|
|
|
93
|
-
|
|
99
|
+
##### publicKey
|
|
100
|
+
|
|
101
|
+
`Uint8Array`
|
|
94
102
|
|
|
95
103
|
The public key to verify the signature.
|
|
96
104
|
|
|
97
|
-
|
|
105
|
+
##### block
|
|
106
|
+
|
|
107
|
+
`Uint8Array`
|
|
98
108
|
|
|
99
109
|
The block for the signature.
|
|
100
110
|
|
|
101
|
-
|
|
111
|
+
##### signature
|
|
112
|
+
|
|
113
|
+
`Uint8Array`
|
|
102
114
|
|
|
103
115
|
The signature.
|
|
104
116
|
|
|
@@ -24,7 +24,9 @@ Perform Sum on the block.
|
|
|
24
24
|
|
|
25
25
|
#### Parameters
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
##### block
|
|
28
|
+
|
|
29
|
+
`Uint8Array`
|
|
28
30
|
|
|
29
31
|
The block to operate on.
|
|
30
32
|
|
|
@@ -44,7 +46,9 @@ Update the hash with the block.
|
|
|
44
46
|
|
|
45
47
|
#### Parameters
|
|
46
48
|
|
|
47
|
-
|
|
49
|
+
##### block
|
|
50
|
+
|
|
51
|
+
`Uint8Array`
|
|
48
52
|
|
|
49
53
|
The block to update the hash with.
|
|
50
54
|
|
|
@@ -12,7 +12,9 @@ Create a new instance of Sha256.
|
|
|
12
12
|
|
|
13
13
|
#### Parameters
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
##### bits
|
|
16
|
+
|
|
17
|
+
`number` = `Sha256.SIZE_256`
|
|
16
18
|
|
|
17
19
|
The number of bits.
|
|
18
20
|
|
|
@@ -46,7 +48,9 @@ Perform Sum 256 on the block.
|
|
|
46
48
|
|
|
47
49
|
#### Parameters
|
|
48
50
|
|
|
49
|
-
|
|
51
|
+
##### block
|
|
52
|
+
|
|
53
|
+
`Uint8Array`
|
|
50
54
|
|
|
51
55
|
The block to operate on.
|
|
52
56
|
|
|
@@ -66,7 +70,9 @@ Perform Sum 224 on the block.
|
|
|
66
70
|
|
|
67
71
|
#### Parameters
|
|
68
72
|
|
|
69
|
-
|
|
73
|
+
##### block
|
|
74
|
+
|
|
75
|
+
`Uint8Array`
|
|
70
76
|
|
|
71
77
|
The block to operate on.
|
|
72
78
|
|
|
@@ -86,7 +92,9 @@ Update the hash with the block.
|
|
|
86
92
|
|
|
87
93
|
#### Parameters
|
|
88
94
|
|
|
89
|
-
|
|
95
|
+
##### block
|
|
96
|
+
|
|
97
|
+
`Uint8Array`
|
|
90
98
|
|
|
91
99
|
The block to update the hash with.
|
|
92
100
|
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# Class: Sha3
|
|
2
|
+
|
|
3
|
+
Perform a SHA-3 hash on the block.
|
|
4
|
+
|
|
5
|
+
## Constructors
|
|
6
|
+
|
|
7
|
+
### new Sha3()
|
|
8
|
+
|
|
9
|
+
> **new Sha3**(`bits`): [`Sha3`](Sha3.md)
|
|
10
|
+
|
|
11
|
+
Create a new instance of Sha3.
|
|
12
|
+
|
|
13
|
+
#### Parameters
|
|
14
|
+
|
|
15
|
+
##### bits
|
|
16
|
+
|
|
17
|
+
`number` = `Sha3.SIZE_256`
|
|
18
|
+
|
|
19
|
+
The number of bits.
|
|
20
|
+
|
|
21
|
+
#### Returns
|
|
22
|
+
|
|
23
|
+
[`Sha3`](Sha3.md)
|
|
24
|
+
|
|
25
|
+
## Properties
|
|
26
|
+
|
|
27
|
+
### SIZE\_224
|
|
28
|
+
|
|
29
|
+
> `readonly` `static` **SIZE\_224**: `number` = `224`
|
|
30
|
+
|
|
31
|
+
Sha3 224.
|
|
32
|
+
|
|
33
|
+
***
|
|
34
|
+
|
|
35
|
+
### SIZE\_256
|
|
36
|
+
|
|
37
|
+
> `readonly` `static` **SIZE\_256**: `number` = `256`
|
|
38
|
+
|
|
39
|
+
Sha3 256.
|
|
40
|
+
|
|
41
|
+
***
|
|
42
|
+
|
|
43
|
+
### SIZE\_384
|
|
44
|
+
|
|
45
|
+
> `readonly` `static` **SIZE\_384**: `number` = `384`
|
|
46
|
+
|
|
47
|
+
Sha3 384.
|
|
48
|
+
|
|
49
|
+
***
|
|
50
|
+
|
|
51
|
+
### SIZE\_512
|
|
52
|
+
|
|
53
|
+
> `readonly` `static` **SIZE\_512**: `number` = `512`
|
|
54
|
+
|
|
55
|
+
Sha3 512.
|
|
56
|
+
|
|
57
|
+
## Methods
|
|
58
|
+
|
|
59
|
+
### sum256()
|
|
60
|
+
|
|
61
|
+
> `static` **sum256**(`block`): `Uint8Array`
|
|
62
|
+
|
|
63
|
+
Perform Sum 256 on the block.
|
|
64
|
+
|
|
65
|
+
#### Parameters
|
|
66
|
+
|
|
67
|
+
##### block
|
|
68
|
+
|
|
69
|
+
`Uint8Array`
|
|
70
|
+
|
|
71
|
+
The block to operate on.
|
|
72
|
+
|
|
73
|
+
#### Returns
|
|
74
|
+
|
|
75
|
+
`Uint8Array`
|
|
76
|
+
|
|
77
|
+
The sum 256 of the block.
|
|
78
|
+
|
|
79
|
+
***
|
|
80
|
+
|
|
81
|
+
### sum224()
|
|
82
|
+
|
|
83
|
+
> `static` **sum224**(`block`): `Uint8Array`
|
|
84
|
+
|
|
85
|
+
Perform Sum 224 on the block.
|
|
86
|
+
|
|
87
|
+
#### Parameters
|
|
88
|
+
|
|
89
|
+
##### block
|
|
90
|
+
|
|
91
|
+
`Uint8Array`
|
|
92
|
+
|
|
93
|
+
The block to operate on.
|
|
94
|
+
|
|
95
|
+
#### Returns
|
|
96
|
+
|
|
97
|
+
`Uint8Array`
|
|
98
|
+
|
|
99
|
+
The sum 224 of the block.
|
|
100
|
+
|
|
101
|
+
***
|
|
102
|
+
|
|
103
|
+
### sum384()
|
|
104
|
+
|
|
105
|
+
> `static` **sum384**(`block`): `Uint8Array`
|
|
106
|
+
|
|
107
|
+
Perform Sum 384 on the block.
|
|
108
|
+
|
|
109
|
+
#### Parameters
|
|
110
|
+
|
|
111
|
+
##### block
|
|
112
|
+
|
|
113
|
+
`Uint8Array`
|
|
114
|
+
|
|
115
|
+
The block to operate on.
|
|
116
|
+
|
|
117
|
+
#### Returns
|
|
118
|
+
|
|
119
|
+
`Uint8Array`
|
|
120
|
+
|
|
121
|
+
The sum 384 of the block.
|
|
122
|
+
|
|
123
|
+
***
|
|
124
|
+
|
|
125
|
+
### sum512()
|
|
126
|
+
|
|
127
|
+
> `static` **sum512**(`block`): `Uint8Array`
|
|
128
|
+
|
|
129
|
+
Perform Sum 512 on the block.
|
|
130
|
+
|
|
131
|
+
#### Parameters
|
|
132
|
+
|
|
133
|
+
##### block
|
|
134
|
+
|
|
135
|
+
`Uint8Array`
|
|
136
|
+
|
|
137
|
+
The block to operate on.
|
|
138
|
+
|
|
139
|
+
#### Returns
|
|
140
|
+
|
|
141
|
+
`Uint8Array`
|
|
142
|
+
|
|
143
|
+
The sum 512 of the block.
|
|
144
|
+
|
|
145
|
+
***
|
|
146
|
+
|
|
147
|
+
### update()
|
|
148
|
+
|
|
149
|
+
> **update**(`block`): [`Sha3`](Sha3.md)
|
|
150
|
+
|
|
151
|
+
Update the hash with the block.
|
|
152
|
+
|
|
153
|
+
#### Parameters
|
|
154
|
+
|
|
155
|
+
##### block
|
|
156
|
+
|
|
157
|
+
`Uint8Array`
|
|
158
|
+
|
|
159
|
+
The block to update the hash with.
|
|
160
|
+
|
|
161
|
+
#### Returns
|
|
162
|
+
|
|
163
|
+
[`Sha3`](Sha3.md)
|
|
164
|
+
|
|
165
|
+
The instance for chaining.
|
|
166
|
+
|
|
167
|
+
***
|
|
168
|
+
|
|
169
|
+
### digest()
|
|
170
|
+
|
|
171
|
+
> **digest**(): `Uint8Array`
|
|
172
|
+
|
|
173
|
+
Get the digest for the hash.
|
|
174
|
+
|
|
175
|
+
#### Returns
|
|
176
|
+
|
|
177
|
+
`Uint8Array`
|
|
178
|
+
|
|
179
|
+
The instance for chaining.
|
|
@@ -12,7 +12,9 @@ Create a new instance of Sha512.
|
|
|
12
12
|
|
|
13
13
|
#### Parameters
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
##### bits
|
|
16
|
+
|
|
17
|
+
`number` = `Sha512.SIZE_512`
|
|
16
18
|
|
|
17
19
|
The number of bits.
|
|
18
20
|
|
|
@@ -62,7 +64,9 @@ Perform Sum 512 on the block.
|
|
|
62
64
|
|
|
63
65
|
#### Parameters
|
|
64
66
|
|
|
65
|
-
|
|
67
|
+
##### block
|
|
68
|
+
|
|
69
|
+
`Uint8Array`
|
|
66
70
|
|
|
67
71
|
The block to operate on.
|
|
68
72
|
|
|
@@ -82,7 +86,9 @@ Perform Sum 384 on the block.
|
|
|
82
86
|
|
|
83
87
|
#### Parameters
|
|
84
88
|
|
|
85
|
-
|
|
89
|
+
##### block
|
|
90
|
+
|
|
91
|
+
`Uint8Array`
|
|
86
92
|
|
|
87
93
|
The block to operate on.
|
|
88
94
|
|
|
@@ -102,7 +108,9 @@ Perform Sum 256 on the block.
|
|
|
102
108
|
|
|
103
109
|
#### Parameters
|
|
104
110
|
|
|
105
|
-
|
|
111
|
+
##### block
|
|
112
|
+
|
|
113
|
+
`Uint8Array`
|
|
106
114
|
|
|
107
115
|
The block to operate on.
|
|
108
116
|
|
|
@@ -122,7 +130,9 @@ Perform Sum 224 on the block.
|
|
|
122
130
|
|
|
123
131
|
#### Parameters
|
|
124
132
|
|
|
125
|
-
|
|
133
|
+
##### block
|
|
134
|
+
|
|
135
|
+
`Uint8Array`
|
|
126
136
|
|
|
127
137
|
The block to operate on.
|
|
128
138
|
|
|
@@ -142,7 +152,9 @@ Update the hash with the block.
|
|
|
142
152
|
|
|
143
153
|
#### Parameters
|
|
144
154
|
|
|
145
|
-
|
|
155
|
+
##### block
|
|
156
|
+
|
|
157
|
+
`Uint8Array`
|
|
146
158
|
|
|
147
159
|
The block to update the hash with.
|
|
148
160
|
|