Skip to content

Instantly share code, notes, and snippets.

@david4096
Created June 28, 2013 08:34
Show Gist options
  • Select an option

  • Save david4096/5883334 to your computer and use it in GitHub Desktop.

Select an option

Save david4096/5883334 to your computer and use it in GitHub Desktop.
Verify bitcoin signed message bookmarklet
<html>
<head></head>
<body>Drag this to the bookmarks bar:
<a href="javascript:var headID = document.getElementsByTagName('head')[0];
var newScript = document.createElement('script');
newScript.type = 'text/javascript';
newScript.onload=scriptLoaded;
newScript.src = 'https://gist.github.com/david4096/5883149/raw/c59756fc1f33b9fe39a4b3e951c59ae4e198b475/verify.js?'+Math.random();
headID.appendChild(newScript);
function scriptLoaded() {
message = prompt('paste message');signature = window.getSelection();address=verify_message(signature, message);alert(address);console.log(address)
}">Verify Signature</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment