GithubHelp home page GithubHelp logo

stampery / node Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 6.0 136 KB

Stampery API for NodeJS. Notarize all your data using the blockchain

License: MIT License

CoffeeScript 100.00%
anchoring bitcoin blockchain ethereum hash nodejs stampery

node's People

Contributors

aesedepece avatar kronolynx avatar luisivan avatar pablo-merino avatar prahaladbelavadi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

node's Issues

api docs question

For stamping a SHA3-512 hash, you only have to make a call to the stamp method of our API, as seen in the examples to the right.

Since not being able to file an issue at your api docs repo, I would like ask if there is a typo in your documentation. Thanks for creating such great tool.

I can't find the stamp method being used in the example provided. Do you mean the hash method like stampery.hash?

The following image shows a screenshot of a portion of your API doc and in the last paragraph, it says stamp method but there is no stamp in the example on the rightmost.

where_is_stamp_method

NPM install of 'stampery' is broken, dependency issue with stampery/msgpackrpc

You require the stampery/msgpackrpc package from github. Attempting to use node in a test pure npm/JS project results in dependency failures.

The msgpackrpc project does not contain JS code, only iced coffeescript.

~/src/stampery-test$ npm test

> [email protected] test /Users/glenn/src/stampery-test
> node index.js

module.js:339
    throw err;
    ^


Error: Cannot find module 'msgpackrpc'
    at Function.Module._resolveFilename (module.js:337:15)
    at Function.Module._load (module.js:287:25)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/Users/glenn/src/stampery-test/node_modules/stampery/index
.js:16:16)
    at Object.<anonymous> (/Users/glenn/src/stampery-test/node_modules/stampery/index
.js:390:4)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
npm ERR! Test failed.  See above for more details.

Cannot Resolve Module

yarn add stampery yields not found modules:

  • fs
  • net
  • tls

I am not sure if this is an error on my site, but shouldn't yarn handle the installation of the dependencies?

Node client fails trying to use the basic example code you provide

I have been trying (in good faith) to try to get your API code to work. You have resolved some issues (#1, #2, #3), but it still fails. You really need tests for your code. Here is the latest failure example.

Also, you really should not close issues until it is confirmed with the submitter that the issue is actually resolved.

~/src/stampery-test$ node index.js
/Users/glenn/src/stampery-test/node_modules/stampery/index.js:77
      this.clientId = this._hash('md5', this.clientSecret).substring(0, 15);
                           ^

TypeError: this._hash is not a function
    at new Stampery (/Users/glenn/src/stampery-test/node_modules/stampery/index.js:77:28)
    at Object.<anonymous> (/Users/glenn/src/stampery-test/index.js:6:12)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Function.Module.runMain (module.js:467:10)
    at startup (node.js:136:18)
    at node.js:963:3

Here is the sample code I am trying to run (copied from the README of this project):

Stampery = require('stampery');

stampery = new Stampery('REDACTED')

stampery.on('proof', function(hash, proof) {
  console.log("Received proof for " + hash, proof);
  valid = stampery.prove(hash, proof);
  console.log('Proof validity:', valid);
});

stampery.on('ready', function() {
  stampery.receiveMissedProofs();
  stampery.hash('The piano has been drinking', function(hash) {
    stampery.stamp(hash);
  });
});

My package.json looks like:

{
  "name": "stampery-test",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "node index.js"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "stampery": "^3.1.2"
  }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.