Skip to content

Commit 1e12a39

Browse files
committed
Added option to create "branded" paper wallets (free gift cards)
1 parent f6f64d0 commit 1e12a39

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

BitStore/Controller/Settings/SwipeViewController.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,12 @@ - (void)stopScan {
6060
[_scanViewController removeFromParentViewController];
6161
}
6262

63+
#pragma mark - ScanDelegate
6364
- (void)scannedAddress:(NSString *)address amount:(NSString *)amount {
65+
if ([address hasPrefix:@"BitStore:"]) {
66+
address = [address substringFromIndex:9];
67+
}
68+
6469
BTCPrivateKeyAddress* addr = [BTCPrivateKeyAddress addressWithBase58String:address];
6570
[self stopScan];
6671

@@ -152,6 +157,7 @@ - (void)doTransaction:(BTCKey *)key {
152157
}
153158
}
154159

160+
// TODO refactor this, sending should be done somewhere central
155161
- (BTCTransaction *)transactionSpendingFromPrivateKey:(NSData *)privateKey
156162
to:(BTCPublicKeyAddress *)destinationAddress
157163
error:(NSError**)errorOut {

0 commit comments

Comments
 (0)