uport-lite
Lightweight library for looking up public profiles on uport-registry
Last updated 6 years ago by mike.xu .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install uport-lite 
SYNC missed versions from official npm registry.

Light weight library for fetching public uPort profiles

A uPort is an ethereum address representing an identity of a person, thing or other entitity. We are using the MNID address encoding scheme to safely support multiple networks.

A public profile is stored on ipfs at a hash registered in the uPortRegistry.

This library aims to let developers look up a profile for a given ethereum address and nothing else. It is designed to be tiny, so you can easily add uport functionality to non Ethereum apps.

Use

By default it uses the uport registry on the ropsten network as well as infura ipfs and jsonRpc gateways.

import UportLite from 'uport-lite'

// UportLite is just a function returning a function. It is not a Class so don't use `new`
const registry = UportLite()

registry('2oVdmcz7BkWozm2JE4hHixRV8s5y3STqhPG', (error, profile) => {
  console.log(profile)
})

You can configure it passing options to the function:

import UportLite from 'uport-lite'

const registry = UportLite({
  ipfsGw: 'https://ipfs.infura.io/ipfs/',
  infuraKey: 'INFURA_API_KEY',
  networks: {
    '0x94365e3b': {
      rpcUrl: 'https://private.chain/rpc',
      address: '0x0101....'
    }
  }
})

registry('5A8bRWU3F7j3REx3vkJWxdjQPp4tqmxFPmab1Tr', (error, profile) => {
  console.log(profile)
})

Current Tags

  • 1.0.5                                ...           latest (6 years ago)
  • 1.0.0-alpha-6                                ...           next (8 years ago)

20 Versions

  • 1.0.5                                ...           6 years ago
  • 1.0.4                                ...           6 years ago
  • 1.0.3                                ...           6 years ago
  • 1.0.2                                ...           7 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           8 years ago
  • 1.0.0-alpha-6                                ...           8 years ago
  • 0.2.5                                ...           8 years ago
  • 1.0.0-alpha-5                                ...           8 years ago
  • 1.0.0-alpha-4                                ...           8 years ago
  • 1.0.0-alpha-3                                ...           8 years ago
  • 1.0.0-alpha-2                                ...           8 years ago
  • 1.0.0-alpha                                ...           8 years ago
  • 0.2.4                                ...           8 years ago
  • 0.2.3                                ...           8 years ago
  • 0.2.2                                ...           8 years ago
  • 0.2.1                                ...           8 years ago
  • 0.2.0                                ...           8 years ago
  • 0.1.1                                ...           8 years ago
  • 0.1.0                                ...           8 years ago
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (8)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE