Skip to content

Commit

Permalink
refactor: format keypair function return
Browse files Browse the repository at this point in the history
  • Loading branch information
sampullman committed Oct 27, 2022
1 parent 6d15811 commit 3697c0a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/node/emulator/test-accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ export const pubFlowKey = async (privateKey: string): Promise<string> => {

export const createKeyPair = () => {
const key = ec.genKeyPair()
return key
return {
privateKey: key.getPrivate('hex'),
publicKey: key.getPublic('hex').replace(/^04/, ''),
}
}

export const createFlowAccount = async (
Expand Down

0 comments on commit 3697c0a

Please sign in to comment.