Open mandelmonkey opened 8 years ago
I Can verify a signature for message in corebitcoin but when I try to verify the signature in other frameworks such as bitcoin.j the signature is not valid, what is the correct way to get the signature as a string?
BTCKey * newKey = [[BTCKey alloc] init];
NSData * sig = [newKey signatureForMessage:@"hello world"]; NSLog(@"sig:%@",sig.base58String); NSLog(@"sig:%@",sig.BTCHash256.hex); NSLog(@"sig:%@",sig.hex); if([newKey isValidSignature:sig forMessage:@"hello world"]){ NSLog(@"valid"); } else{ NSLog(@"not valid"); }
I Can verify a signature for message in corebitcoin but when I try to verify the signature in other frameworks such as bitcoin.j the signature is not valid, what is the correct way to get the signature as a string?
BTCKey * newKey = [[BTCKey alloc] init];