About

Cleaker

Connecting all points within a fixed distance.

Cleaker is a pronoun representing a person, place, or thing in space and time.

What is cleaker? click here.

Its role is to function as a Digital Identifier (DID) creator; make cleaker accept an object (like a .me profile) and return a unique DID for it.

Install with npm.

npm i cleaker

Usage Example

import { generateDID } from 'cleaker';


const profile = { /* .me profile data */ };


// Generate a DID using SHA-256

const didSHA256 = generateDID(profile, 'SHA-256');

console.log('DID (SHA-256):', didSHA256);


// Generate a DID using Keccak-256

const didKeccak256 = generateDID(profile, 'Keccak-256');

console.log('DID (Keccak-256):', didKeccak256);

By implementing both SHA-256 and Keccak-256, cleaker becomes a versatile tool for creating DIDs that are compatible with major blockchain networks. This approach allows for the integration of cleaker with a variety of blockchain technologies and potentially opens up various use cases in the blockchain domain.

Test Case:

node cleaker/tests/test.js

namespaces neurons.me neurons.me/this

Contributing

If you have suggestions or issues, please open an issue. We encourage contributions from the community.

License & Policies