Skip to content

Verifying a bitcoin address signed message. #2

@Bwen

Description

@Bwen

Example of the 3 components that you get after singing a message with a bitcoin client:
http://coinig.com/?adr=18neTpQ5MWnXg4n4rpoK5TgxXjEVcg2MYR&msg=rmh%40unmitigatedrisk.com+-+my+voice+is+my+passphrase+authenticate+me&sig=G0d6BnQem1gT4nd9esfsEyn1k%2FGfYAxDkNJmkNvmz8wCOI2Ncw9DvIcyP7OJcEvWbUHQNIBFK3V8wYdnhEFhYHI%3D

This exception is thrown: https://github.com/ionux/phactor/blob/master/src/Signature.php#L350

Because the signature is not the right format according to the Verify method.

It would be nice if it could detect the signature and convert it automatically to the proper format to be able to verify it. Or multiple functions supporting different signature format...

Thanks again!

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions