Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tbfleming committed Aug 9, 2019
1 parent 7a79d3f commit bf7cf57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eosjs-numeric.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,8 @@ export function stringToPrivateKey(s: string): Key {
return stringToKey(s.substr(7), KeyType.r1, privateKeyDataSize, 'R1');
} else {
// todo: Verify checksum: sha256(sha256(key.data)).
// Not critical since a bad key will fail to produce an
// invalid signature anyway.
// Not critical since a bad key will fail to produce a
// valid signature anyway.
const whole = base58ToBinary(privateKeyDataSize + 5, s);
const key = { type: KeyType.k1, data: new Uint8Array(privateKeyDataSize) };
if (whole[0] !== 0x80) {
Expand Down

0 comments on commit bf7cf57

Please sign in to comment.