Skip to content

Commit

Permalink
fix(account): improve Account:publicKey type
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Jul 17, 2024
1 parent 15063c6 commit 0524553
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/utils/hd-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import nacl from 'tweetnacl';
import { full as hmac } from 'tweetnacl-auth';
import { fromString } from 'bip32-path';
import aesjs from 'aes-js';
import { sha256hash, encode, Encoding } from './encoder';
import {
sha256hash, encode, Encoding, Encoded,
} from './encoder';
import { CryptographyError } from './errors';
import { concatBuffers } from './other';

Expand Down Expand Up @@ -58,8 +60,8 @@ interface HDWallet {
}

interface Account {
secretKey: string;
publicKey: string;
secretKey: string; // TODO: use Encoded.AccountSecretKey instead hex
publicKey: Encoded.AccountAddress;
}

type Dec<N extends number> = [-1, 0, 1, 2, 3, 4][N];
Expand Down

0 comments on commit 0524553

Please sign in to comment.