uport-project / mnid Goto Github PK
View Code? Open in Web Editor NEWMulti Network Identifier - spec and reference implementation
Multi Network Identifier - spec and reference implementation
Hey, This is a great initiative 👍 to self describing opaque strings :)
@kumavis asked @diasdavid and I on IRC to take a look at this and give some feedback, so i figured i'd start an issue for discussion.
It seems what we're really doing here is coming up with a scheme for encoding PKI identities (an ethereum address being roughly the hash of a public key).
Some initial things i want to consider:
When the mnid object imported from the dependency I get undefined.
import mnid, {decode} from 'mnid'
console.log(mnid)
console.log(decode)
*console output*
undefined
ƒ decode(encoded) {
var data = _buffer.Buffer.from(base58.decode(encoded));
var netLength = data.length - 24;
var version = data.slice(0, 1);
var network = data.slice(1, netLength);
var addre…
I presume this is just a Webpack/ES6 import bug for bundling (personally I don't feel digging in)? To be safe would it make sense to add export default
object exporting the functions?
export default {
checksum,
encode,
decode,
isMNID
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.