blockchain-profile
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100497
198