receiveAt with new key

This commit is contained in:
howard-stearns 2018-02-23 17:05:46 -08:00
parent 8f44a52140
commit 726c1ed816
3 changed files with 2 additions and 4 deletions
interface
resources/qml/hifi/commerce/wallet
src/commerce

View file

@ -792,7 +792,6 @@ Rectangle {
function walletResetSetup() {
root.activeView = "walletSetup";
Commerce.resetLocalWalletOnly();
var timestamp = new Date();
walletSetup.startingTimestamp = timestamp;
walletSetup.setupAttemptID = generateUUID();

View file

@ -205,7 +205,7 @@ Item {
"This step cannot be undone.";
lightboxPopup.button1color = hifi.buttons.red;
lightboxPopup.button1text = "YES, CREATE NEW WALLET";
lightboxPopup.button1method = "proceed(true);root.visible = false;";
lightboxPopup.button1method = "root.visible = false;proceed(true);";
lightboxPopup.button2text = "CANCEL";
lightboxPopup.button2method = "root.visible = false;"
lightboxPopup.buttonLayout = "topbottom";

View file

@ -541,7 +541,6 @@ bool Wallet::generateKeyPair() {
// TODO: redo this soon -- need error checking and so on
writeSecurityImage(_securityImage, keyFilePath());
QString oldKey = _publicKeys.count() == 0 ? "" : _publicKeys.last();
QString key = keyPair.first->toBase64();
_publicKeys.push_back(key);
qCDebug(commerce) << "public key:" << key;
@ -551,7 +550,7 @@ bool Wallet::generateKeyPair() {
// 2. It is maximally private, and we can step back from that later if desired.
// 3. It maximally exercises all the machinery, so we are most likely to surface issues now.
auto ledger = DependencyManager::get<Ledger>();
return ledger->receiveAt(key, oldKey);
return ledger->receiveAt(key, "");
}
QStringList Wallet::listPublicKeys() {