1import * as secp256k1 from 'secp256k1';
3import { keccak256 } from './wallet';
5const MESSAGE = 'Bridge Authentication Token';
7export const getAuthToken = ({ wallet, walletType, walletHdPath, web3 }) => {
8 const { signature } = secp256k1.sign(
9 keccak256('\x19Ethereum Signed Message:\n' + MESSAGE.length + MESSAGE),
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list