File tree Expand file tree Collapse file tree 3 files changed +3
-15
lines changed Expand file tree Collapse file tree 3 files changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,6 @@ export const blake2b: Blake2b = {
35
35
return hash ( outputLengthBytes ) . update ( hexStringToBuffer ( message ) ) . digest ( 'hex' ) as T ;
36
36
} ,
37
37
async hashAsync < T extends HexBlob > ( message : HexBlob , outputLengthBytes : number ) : Promise < T > {
38
- return new Promise ( ( resolve ) => {
39
- setImmediate ( ( ) => {
40
- resolve ( blake2b . hash < T > ( message , outputLengthBytes ) ) ;
41
- } ) ;
42
- } ) ;
38
+ return blake2b . hash < T > ( message , outputLengthBytes ) ;
43
39
}
44
40
} ;
Original file line number Diff line number Diff line change @@ -104,11 +104,7 @@ export class CmlBip32Ed25519 implements Bip32Ed25519 {
104
104
parentKey : Bip32PublicKeyHex ,
105
105
derivationIndices : BIP32Path
106
106
) : Promise < Bip32PublicKeyHex > {
107
- return new Promise ( ( resolve ) => {
108
- setImmediate ( ( ) => {
109
- resolve ( this . derivePublicKey ( parentKey , derivationIndices ) ) ;
110
- } ) ;
111
- } ) ;
107
+ return this . derivePublicKey ( parentKey , derivationIndices ) ;
112
108
}
113
109
114
110
public sign (
Original file line number Diff line number Diff line change @@ -74,11 +74,7 @@ export class SodiumBip32Ed25519 implements Bip32Ed25519 {
74
74
parentKey : Bip32PublicKeyHex ,
75
75
derivationIndices : BIP32Path
76
76
) : Promise < Bip32PublicKeyHex > {
77
- return new Promise ( ( resolve ) => {
78
- setImmediate ( ( ) => {
79
- resolve ( this . derivePublicKey ( parentKey , derivationIndices ) ) ;
80
- } ) ;
81
- } ) ;
77
+ return this . derivePublicKey ( parentKey , derivationIndices ) ;
82
78
}
83
79
84
80
public sign (
You can’t perform that action at this time.
0 commit comments