-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audit logs, stricter signing, and fetch rpc gasPrice #124
base: master
Are you sure you want to change the base?
Conversation
* Using metamask ob-store to sync chrome storage and logs * pass password instead of private key down to service level * event logging for decrypt key error, sign, send, sign, and staking * removal of harmony static instance (storing private key) * removal of privatekey in vue states
BUILD: onewallet.zip Checksums
|
chrome.runtime.sendMessage( | ||
{ action: GET_LOGS }, | ||
async (state) => { | ||
var blob = new Blob([JSON.stringify(state, null, '\t')], {type: "application/json;charset=utf-8"}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JSON stringify can be quite slow if state has a large number of rows (array elements). But I think in most cases it should be fine
The change looks good. Reviewing all code from scratch and testing |
@@ -275,12 +275,11 @@ export default { | |||
this.$notify({ | |||
group: "notify", | |||
type: "error", | |||
text: err.message, | |||
text: this.caption, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sanitize this to prevent injection? See Matthew's report
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added lodash escape in new commit
Code looks good (checked independent of the diffs) |
@@ -10,7 +10,7 @@ | |||
}, | |||
"scripts": { | |||
"dev": "NODE_ENV=development webpack --progress --watch", | |||
"build": "NODE_ENV=production webpack --progress && md5sum dist/*.js dist/*.html > dist/checksums.md5" | |||
"build": "NODE_ENV=production webpack --progress && cd dist && find -type f -exec md5sum {} \\;|sort -s > checksums.md5" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
find...
filter for .html
and .js
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed so the output path in md5 doesn't have the "dist" so you can compare checksum easier. Everything is relative to the current directory. Also opened up to any files checksums just in case...
Hash confirmed. Transfer and Delegate operations are tested. Signing (smart contract call), personal sign (offline), undelegate, and collectreward are not tested yet
|
New checksum is
|
New changes look good. Also I got hashes
|
It was cached. I added echo to break it..
It matches now:
|
@polymorpher Previous build didn't checkout PR. This is the correct Dockerfile
and build without cache
|
okay, hashes are
|
I think this is ready for a release |
Signatures match -- all go for release.
|
merge this? since it is already deployed |
Updated build. All the scripts checksums are the same. The only file changed is the manifest.json. |
|
I also changed version to 1.2.8 |
…odal to re-implement the modal;
New build for modaljs fix
|
I built with termsModal set to
|
Changes in this PR (1.2.7)
Audit Logs
Audit logs are event logging stored in chrome.storage (higher storage limits than localStorage). It stores all the internalEvents, externalEvents, as well as any decrypt fails, successful send one, send token, stake, sign transaction.
Logs can be downloaded from settings menu as JSON.
Strict Signing
Misc