@@ -30,10 +30,10 @@ interface Signature {
30
30
}
31
31
32
32
function output (
33
- out : Output = ( len : number ) => new Uint8Array ( len ) ,
33
+ out : Output = ( len : number ) : Uint8Array => new Uint8Array ( len ) ,
34
34
length : number ,
35
35
value ?: Uint8Array
36
- ) {
36
+ ) : Uint8Array {
37
37
if ( typeof out === "function" ) {
38
38
out = out ( length ) ;
39
39
}
@@ -123,7 +123,7 @@ export function ecdsaRecover(
123
123
msgHash : Uint8Array ,
124
124
compressed = true ,
125
125
out ?: Output
126
- ) {
126
+ ) : Uint8Array {
127
127
assertBytes ( msgHash , 32 ) ;
128
128
assertBool ( "compressed" , compressed ) ;
129
129
const sign = getSignature ( signature ) ;
@@ -193,7 +193,7 @@ export function publicKeyNegate(
193
193
publicKey : Uint8Array ,
194
194
compressed = true ,
195
195
out ?: Output
196
- ) {
196
+ ) : Uint8Array {
197
197
assertBytes ( publicKey , 33 , 65 ) ;
198
198
assertBool ( "compressed" , compressed ) ;
199
199
const point = Point . fromHex ( publicKey ) . negate ( ) ;
@@ -204,7 +204,7 @@ export function publicKeyCombine(
204
204
publicKeys : Uint8Array [ ] ,
205
205
compressed = true ,
206
206
out ?: Output
207
- ) {
207
+ ) : Uint8Array {
208
208
if ( ! Array . isArray ( publicKeys ) || ! publicKeys . length ) {
209
209
throw new TypeError (
210
210
`Expected array with one or more items, not ${ publicKeys } `
@@ -229,7 +229,7 @@ export function publicKeyTweakAdd(
229
229
tweak : Uint8Array ,
230
230
compressed = true ,
231
231
out ?: Output
232
- ) {
232
+ ) : Uint8Array {
233
233
assertBytes ( publicKey , 33 , 65 ) ;
234
234
assertBytes ( tweak , 32 ) ;
235
235
assertBool ( "compressed" , compressed ) ;
@@ -247,7 +247,7 @@ export function publicKeyTweakMul(
247
247
tweak : Uint8Array ,
248
248
compressed = true ,
249
249
out ?: Output
250
- ) {
250
+ ) : Uint8Array {
251
251
assertBytes ( publicKey , 33 , 65 ) ;
252
252
assertBytes ( tweak , 32 ) ;
253
253
assertBool ( "compressed" , compressed ) ;
@@ -317,7 +317,7 @@ export function ecdh(
317
317
hashfn ?: ( x : Uint8Array , y : Uint8Array , data : Uint8Array ) => Uint8Array ;
318
318
} = { } ,
319
319
out ?: Output
320
- ) {
320
+ ) : Uint8Array {
321
321
assertBytes ( publicKey , 33 , 65 ) ;
322
322
assertBytes ( privateKey , 32 ) ;
323
323
if ( typeof options !== "object" || options === null ) {
0 commit comments