Digital Asset System

DĀS KIRINᵅ RELEASE

das-kirin

© 2018 Quarkonium, An Algobet Labs Project

What Is DĀS

A value transformer.

das-script-u   das-script-d

How DĀS Works

BIX Runner


...
export const SignHash = (ks, key, address, hash) => {
   let signed = signing.signMsgHash(ks, key, hash, AddHex(address));
   let sig = new Signature(signed);
   let secret = sigFormatter.derToJose(new Buffer(sig.toDER('secp256k1')), 'ES256');
   let jsonPayload = JSON.stringify({hash: hash, v: signed.v - 27});
   let payload = base64url.encode(jsonPayload);
   let token = [];
   token.push(payload);
   token.push(secret);
   return token.join('.');
};

export const DecodeVerification = (token) => {
   let part = token.split('.');
   let payload = JSON.parse(base64url.decode(part[0]));
   let sig = importDER(sigFormatter.joseToDer(part[1], 'ES256'), 'ES256');
   let hashBuf = new Buffer(payload.hash, 'hex');
   let pub = ethjsUtil.ecrecover(hashBuf, payload.v + 27, sig.r, sig.s);
   let address = ethjsUtil.pubToAddress(pub).toString('hex');
   return {token:token, signedId: payload.hash, signer: address};
};
...
                

Demo DĀS

Topup

Technologies

Blockchain + IPFS

NodeJS + MongoDB

...

Trackable and Searchable

Encryption and Authentication

Contact

quarkonium.slack.com

admin@quarkonium.org

http://www.quarkonium.org