
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
Warning: This project is under active development, APIs are subject to change.
This is a library which allows you to set, get, and remove data associated with an ethereum account. It can be used to store identity data, user settings, etc. by dapps that use a web3 enabled browser. The data will be retrievable as long as the user has access to the private key for the used ethereum account. Data is backed up using an identity hub.
Take a look at the demo to get a feeling of how it works!
Simply install using npm
$ npm install userspace
and then import into your project
const UserSpace = require('userspace')
UserSpace.open(web3.eth.accounts[0]).then(userspace => {
// Code goes here...
})
Kind: global class
StringObjectBooleanBooleanInstantiates a user space
Returns: UserSpace - self
| Param | Type | Description |
|---|---|---|
| muDID | MuPort | A MuPort DID instance |
StringGet the value of the given key
Kind: instance method of UserSpace
Returns: String - the value associated with the key
| Param | Type | Description |
|---|---|---|
| key | String | the key |
ObjectGet all of the items in the userspace
Kind: instance method of UserSpace
Returns: Object - an object containing all items
BooleanSet a value for the given key
Kind: instance method of UserSpace
Returns: Boolean - true if successful
| Param | Type | Description |
|---|---|---|
| key | String | the key |
| value | String | the value |
BooleanRemove the value for the given key
Kind: instance method of UserSpace
Returns: Boolean - true if successful
| Param | Type | Description |
|---|---|---|
| key | String | the key |
UserSpaceOpens the user space associated with the given address
Kind: static method of UserSpace
Returns: UserSpace - the userspace instance for the given address
| Param | Type | Description |
|---|---|---|
| address | String | an ethereum address |
FAQs
Interact with the user space
We found that userspace demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.