Open stefek99 opened 7 years ago
<!doctype html>
<html>
<head>
<script src="https://wzrd.in/debug-standalone/bitcore-message@latest"></script>
<script>
var address = 'n1ZCYg9YXtB5XCZazLxSmPDa8iwJRZHhGx';
var signature = 'H/DIn8uA1scAuKLlCx+/9LnAcJtwQQ0PmcPrJUq90aboLv3fH5fFvY+vmbfOSFEtGarznYli6ShPr9RXwY9UrIY=';
var verified = bitcoreMessage('hello, world').verify(address, signature);
console.log('result:', verified);
</script>
</head>
<body>
</body>
</html>
https://wzrd.in/standalone/bitcore-message@latest
is not working =\
Thank you for speedy reply!
Massive network request
True:
https://wzrd.in/standalone/bitcore-message@latest is not working =\
Can you please advise me how to get it running locally?
In that way I'll be more productive (no 4MB request) and I'll better understand the process...
You should build bitcore-message
with browserify with --standalone
flag.
I also need to read more about WIF: https://en.bitcoin.it/wiki/Wallet_import_format
I would like to create a standalone demo like this: http://plnkr.co/edit/Rqc7Yv45SUq0DuKCMQAA?p=preview
First I want to get it running on my machine so:
Super simple html file:
Code above taken from the docs: https://github.com/bitpay/bitcore-message
Unfortunately it gives me an error:
Uncaught ReferenceError: Message is not defined
Ideally, I would like to use CDN https://cdnjs.com/ or https://wzrd.in/ to host the standalone proof of concept... I was never good at solving build dependencies so fully appreciating your help!
These are good examples but using node, I would like it to run in a browser: https://github.com/bitpay/bitcore-lib/blob/master/docs/examples.md#sign-a-bitcoin-message