MyCrypto/common/libs/wallet/base.js

22 lines
508 B
JavaScript
Raw Normal View History

2017-06-29 23:03:11 +00:00
// @flow
import { stripHex } from 'libs/values';
import type { RawTransaction } from 'libs/transaction';
2017-06-29 23:03:11 +00:00
export default class BaseWallet {
getAddress(): Promise<string> {
return Promise.reject('Implement me');
2017-07-04 03:21:19 +00:00
}
getNakedAddress(): Promise<string> {
return new Promise(resolve => {
this.getAddress().then(address => {
resolve(stripHex(address));
});
});
}
signRawTransaction(_tx: RawTransaction): Promise<string> {
return Promise.reject('Implement me');
}
2017-06-29 23:03:11 +00:00
}