Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions packages/crypto/src/blake2b-hash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ export const blake2b: Blake2b = {
return hash(outputLengthBytes).update(hexStringToBuffer(message)).digest('hex') as T;
},
async hashAsync<T extends HexBlob>(message: HexBlob, outputLengthBytes: number): Promise<T> {
return new Promise((resolve) => {
setImmediate(() => {
resolve(blake2b.hash<T>(message, outputLengthBytes));
});
});
return blake2b.hash<T>(message, outputLengthBytes);
}
};
6 changes: 1 addition & 5 deletions packages/crypto/src/strategies/CmlBip32Ed25519.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,7 @@ export class CmlBip32Ed25519 implements Bip32Ed25519 {
parentKey: Bip32PublicKeyHex,
derivationIndices: BIP32Path
): Promise<Bip32PublicKeyHex> {
return new Promise((resolve) => {
setImmediate(() => {
resolve(this.derivePublicKey(parentKey, derivationIndices));
});
});
return this.derivePublicKey(parentKey, derivationIndices);
}

public sign(
Expand Down
6 changes: 1 addition & 5 deletions packages/crypto/src/strategies/SodiumBip32Ed25519.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,7 @@ export class SodiumBip32Ed25519 implements Bip32Ed25519 {
parentKey: Bip32PublicKeyHex,
derivationIndices: BIP32Path
): Promise<Bip32PublicKeyHex> {
return new Promise((resolve) => {
setImmediate(() => {
resolve(this.derivePublicKey(parentKey, derivationIndices));
});
});
return this.derivePublicKey(parentKey, derivationIndices);
}

public sign(
Expand Down
Loading