xgovern
SecureWeb: Decentralized Governance
Last updated 2 years ago by xgovern .
Proprietary · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install xgovern 
SYNC missed versions from official npm registry.

xGovern (XGOV)

Javascript-based decentralized group governance and data layer
(Utilizing NaCl library with x25519 elliptic curve cryptography)

LICENSE (Proprietary; For Audit-only Code Disclosure)

© 2018 xGovern, all rights reserved.
Unauthorized copying of this file, via any medium is strictly prohibited.

API Usage & Documentation

Address Creation with generate_address

xgov.generate_address(
        {domain:(str,''), group:(str,''), async_interval:(+int,300)},
        {callback:(func), onprogress:(func)}
);

//
// Address generation with default protocol and no group membership
//	the first argument '{domain:'', group:''}' can be '{}', still the same result;
//
xgov.generate_address({domain:'', group:''},{
	callback:function(e,data){
		if(e) return; //Error case;
		var address = data.address //e.g. starts with x_ (x_XzOw9o048uk5jwSqKE1rUpASe8plQCKEG3JreiUHU0r)
		var secret = data.secret //e.g. 42~43 character long base62_encoded private key (string)
	}
});

//
// Address generation with default protocol and U.S. group membership signifier
//	takes about 1~7 seconds to generate one keypair with US header (with a single-thread 2Ghz core)
//	async_interval: how many new key pairs try after 'onprogress' triggers and process rests; 
//	 e.g. 500, after 500 new key pairs tried, onprogress is triggered and process rests to pass other executions
//
xgov.generate_address({domain:'', group:'US', async_interval:500},{
	callback:function(e,data){
		if(e) return; //Error case;
		var address = data.address //e.g. starts with xUS_ (xUS_XzOw9o048uk5USSqKE1rUpASe8plQCKEG3JreiUHU0r)
		var secret = data.secret //e.g. 42~43 character long base62_encoded private key (string)
	},
	onprogress:function(meta){
		meta.count; //how many new key pairs have been tried so far to match something that starts with group header 'xUS';
		meta.domain; //Target protocol domain
		meta.group; //target group
	}
});

Authors

Written by:
Joe K. Kim (jkk@xgovern.com)

Current Tags

  • 1.0.12                                ...           latest (2 years ago)

7 Versions

  • 1.0.12                                ...           2 years ago
  • 1.0.11                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.10                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.10                                ...           2 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 15
Last Day 0
Last Week 1
Last Month 1
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |