Socket
Socket
Sign inDemoInstall

@nimiq/accounts-client

Package Overview
Dependencies
1
Maintainers
8
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 0.3.1

2

package.json
{
"name": "@nimiq/accounts-client",
"version": "0.3.0",
"version": "0.3.1",
"main": "dist/AccountsClient.umd.js",

@@ -5,0 +5,0 @@ "module": "dist/AccountsClient.es.js",

@@ -599,4 +599,3 @@ # Nimiq Accounts Manager <!-- omit in toc -->

- 1 byte length of the prefix (`22` or `0x16`)
- a 22 bytes prefix (`'Nimiq Signed Message:\n'`, available as `AccountsClient.MSG_PREFIX`)
- a 23 bytes prefix (`'\x16Nimiq Signed Message:\n'`, available as `AccountsClient.MSG_PREFIX`)
- the length of the message as a stringified number

@@ -608,3 +607,3 @@

```javascript
sign( sha256( '\x16' + 'Nimiq Signed Message:\n' + message.length + message ) );
sign( sha256( '\x16Nimiq Signed Message:\n' + message.length + message ) );
```

@@ -619,4 +618,3 @@

// For string messages:
const data = String.fromCharCode(AccountsClient.MSG_PREFIX.length)
+ AccountsClient.MSG_PREFIX
const data = AccountsClient.MSG_PREFIX
+ message.length

@@ -623,0 +621,0 @@ + message;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc