passport-permission

command
v0.0.0-...-f1d979d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2018 License: GPL-3.0 Imports: 16 Imported by: 0

README

passport-permission

A utility tool that allows a passport holder to allow or deny a fact provider to write/delete facts to/from a passport. By default any fact provider can write to a passport, but a passport holder can change permissions that allow only fact providers from the whitelist to write to a passport.

Usage

Usage of ./passport-permission:

  -add value
    	add fact provider to the whitelist
  -backendurl string
    	backend URL (simulated backend used if empty)
  -onlywhitelist value
    	enables or disables the use of a whitelist of fact providers
  -ownerkey string
    	owner private key filename
  -ownerkeyhex string
    	private key as hex (for testing)
  -passaddr string
    	Ethereum address of passport contract
  -remove value
    	remove fact provider from the whitelist
  -verbosity int
    	log verbosity (0-9) (default 2)
  -vmodule string
    	log verbosity pattern

Examples

  • Owner of a passport 0x9CfabB3172DFd5ED740c3b8A327BF573226c5064 adds fact provider 0x5b2AE3b3A801469886Bb8f5349fc3744cAa6348d to the whitelist in Ropsten network:

    ./passport-permission -ownerkey pass_owner.key \
      -passaddr 0x9CfabB3172DFd5ED740c3b8A327BF573226c5064 \
      -add 0x5b2AE3b3A801469886Bb8f5349fc3744cAa6348d \
      -backendurl https://ropsten.infura.io
    
  • Owner of a passport 0x9CfabB3172DFd5ED740c3b8A327BF573226c5064 removes fact provider 0x5b2AE3b3A801469886Bb8f5349fc3744cAa6348d to the whitelist in Ropsten network:

    ./passport-permission -ownerkey pass_owner.key \
      -passaddr 0x9CfabB3172DFd5ED740c3b8A327BF573226c5064 \
      -remove 0x5b2AE3b3A801469886Bb8f5349fc3744cAa6348d \
      -backendurl https://ropsten.infura.io
    
  • Owner of a passport 0x9CfabB3172DFd5ED740c3b8A327BF573226c5064 allows to store the facts only to fact providers from the whitelist:

    ./passport-permission -ownerkey pass_owner.key \
      -passaddr 0x9CfabB3172DFd5ED740c3b8A327BF573226c5064 \
      -onlywhitelist true \
      -backendurl https://ropsten.infura.io
    
  • Owner of a passport 0x9CfabB3172DFd5ED740c3b8A327BF573226c5064 allows any fact provider to write the facts:

    ./passport-permission -ownerkey pass_owner.key \
      -passaddr 0x9CfabB3172DFd5ED740c3b8A327BF573226c5064 \
      -onlywhitelist false \
      -backendurl https://ropsten.infura.io
    

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL