username1565 / brainwallet.github.io Goto Github PK
View Code? Open in Web Editor NEWThis project forked from area/brainwallet.github.io
https://username1565.github.io/brainwallet.github.io/
License: MIT License
This project forked from area/brainwallet.github.io
https://username1565.github.io/brainwallet.github.io/
License: MIT License
I don't understand C++ syntax of the source code
in altcoins modules for signing and verify messages,
so I cann't fix this script to be compatible with altcoins wallets.
For example, we can using signing and verify the signed messages for altcoins:
But in vertcoin-qt wallet "Message verification failed".
Also, the message, which signed in vertcoin-qt wallet -
cann't be successfully verified using brainwallet "Verify" tab:
https://username1565.github.io/brainwallet.github.io/#verify
Here is the source code of module for signing and verify messages, in vertcoin-qt.exe:
https://github.com/vertcoin-project/vertcoin-core/blob/0.13.0/src/qt/signverifymessagedialog.cpp
But I don't understand anything there.
Can anyone fix this for all another altcoins?
Also, I see here https://github.com/username1565/brainwallet.github.io/blob/master/js/bitcoinsig.js
there is the prefix for message digest:
function msg_digest(message) {
var b = msg_bytes("Bitcoin Signed Message:\n").concat(msg_bytes(message));
return Crypto.SHA256(Crypto.SHA256(b, {asBytes:true}), {asBytes:true});
}
and here: https://github.com/vertcoin-project/vertcoin-core/blob/0.13.0/src/qt/signverifymessagedialog.cpp is using strMessageMagic
and this is defined here: https://github.com/vertcoin-project/vertcoin-core/blob/0.13.0/src/validation.cpp
as
const std::string strMessageMagic = "Vertcoin Signed Message:\n";
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.