Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

blockchain-profile

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blockchain-profile - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "blockchain-profile",
"version": "0.1.0",
"version": "0.1.1",
"description": "Blockchain ID Profile Generator",

@@ -5,0 +5,0 @@ "main": "index.js",

# Blockchain Profile JS
[![CircleCI](https://img.shields.io/circleci/project/blockstack/blockchain-id-js.svg)](https://circleci.com/gh/blockstack/blockchain-id-js)
[![npm](https://img.shields.io/npm/l/blockchainid.svg)](https://www.npmjs.com/package/blockchainid)
[![npm](https://img.shields.io/npm/v/blockchainid.svg)](https://www.npmjs.com/package/blockchainid)
[![npm](https://img.shields.io/npm/dm/blockchainid.svg)](https://www.npmjs.com/package/blockchainid)
[![CircleCI](https://img.shields.io/circleci/project/blockstack/blockchain-profile-js.svg)](https://circleci.com/gh/blockstack/blockchain-profile-js)
[![npm](https://img.shields.io/npm/l/blockchain-profile.svg)](https://www.npmjs.com/package/blockchain-profile)
[![npm](https://img.shields.io/npm/v/blockchain-profile.svg)](https://www.npmjs.com/package/blockchain-profile)
[![npm](https://img.shields.io/npm/dm/blockchain-profile.svg)](https://www.npmjs.com/package/blockchain-profile)
[![Slack](http://slack.blockstack.org/badge.svg)](http://slack.blockstack.org/)

@@ -35,2 +35,9 @@

But first, import the required modules:
```js
var BlockchainProfile = require('blockchain-profile').BlockchainProfile,
PrivateKeychain = require('keychain-manager').PrivateKeychain
```
### Create a Profile Object

@@ -57,11 +64,3 @@

```js
var BlockchainProfile = require('blockchain-profile').BlockchainProfile,
PrivateKeychain = require('keychain-manager').PrivateKeychain,
PublicKeychain = require('keychain-manager').PublicKeychain
var privateKeychain = new PrivateKeychain(),
publicKeychain = privateKeychain.publicKeychain()
```
```js
var privateKeychain = new PrivateKeychain()
var tokenFile = BlockchainProfile.profileToTokens(profile, privateKeychain)

@@ -73,9 +72,6 @@ ```

```js
var hostUrls = ['https://s3.amazonaws.com/mq9/' + username + '.json']
var checksums = [{
field: 'pgp[0].publicKey',
hash: 'e508f0c2c455ab79a4fabc4b51aa537e123c08abee40a87c47e6705a2bbae4ae',
algorithm: 'SHA256'
}]
var zoneFile = BlockchainProfile.zoneFile(username, publicKeychain, hostUrls, checksums)
var publicKeychain = privateKeychain.publicKeychain()
var hostUrls = ['https://s3.amazonaws.com/mq9/users/satoshi-nakamoto.json']
var checksums = [{ field: 'pgp[0].publicKey', hash: 'e508f0c2c455ab79a4fabc4b51aa537e123c08abee40a87c47e6705a2bbae4ae', algorithm: 'SHA256' }]
var zoneFile = BlockchainProfile.zoneFile('satoshi.id', publicKeychain, hostUrls, checksums)
```

@@ -82,0 +78,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc