-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e618f6
commit 0e81005
Showing
14 changed files
with
51 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * as secp256k1 from './secp256k1'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
import { | ||
getPublicKey, | ||
hexToBuffer, | ||
publicKeyBytesToAddress, | ||
publicKeyToEthAddress, | ||
} from '../utils'; | ||
import { secp256k1 } from '../crypto'; | ||
import { hexToBuffer } from '../utils'; | ||
|
||
export const testPrivateKey1 = hexToBuffer( | ||
'9c0523e7611e62f5dca291ad335e950db076c5ee31c4107355abde0d357bbd29', | ||
); | ||
export const testPublicKey1 = getPublicKey(testPrivateKey1); | ||
export const testAddress1 = publicKeyBytesToAddress(testPublicKey1); | ||
export const testEthAddress1 = publicKeyToEthAddress(testPublicKey1); | ||
export const testPublicKey1 = secp256k1.getPublicKey(testPrivateKey1); | ||
export const testAddress1 = secp256k1.publicKeyBytesToAddress(testPublicKey1); | ||
export const testEthAddress1 = secp256k1.publicKeyToEthAddress(testPublicKey1); | ||
|
||
export const testPrivateKey2 = hexToBuffer( | ||
'd11e7aa633eb15682bc2456d399c2a9861c82e0a308dbfd4d3a51ffa972f2b62', | ||
); | ||
export const testPublicKey2 = getPublicKey(testPrivateKey2); | ||
export const testAddress2 = publicKeyBytesToAddress(testPublicKey2); | ||
export const testEthAddress2 = publicKeyToEthAddress(testPublicKey2); | ||
export const testPublicKey2 = secp256k1.getPublicKey(testPrivateKey2); | ||
export const testAddress2 = secp256k1.publicKeyBytesToAddress(testPublicKey2); | ||
export const testEthAddress2 = secp256k1.publicKeyToEthAddress(testPublicKey2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters