UNPKG

taxa-network

Version:

Helper functions for building apps on the Taxa Network

35 lines (25 loc) 871 B
# Overview This package includes functions for interacting with ethe taxa network from within javascript. Works with the browser and node.js. # Usage ```js let taxa = require("taxa-network"); taxa.attestation("192.168.0.1", function() { console.log("attestation succeeded!") }, function(error) { console.log("attestation failed:", error); }); ``` Passed into the `attestation` function must be an ip address to the taxa-server you are attesting. # Other functionality You can also get an enclave report: ```js let taxa = require("taxa-network"); const report = taxa.get_report("192.168.0.1"); ``` And an access_token: ```js let taxa = require("taxa-network"); const access_token = taxa.get_access_token("192.168.0.1") ``` The main function, `attestation` calls these two functions internally. They have no use to be called on their own other than for testing.