
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@suku/doc-auth-lib
Advanced tools
## Usage as a library After contract deployment it can be used as a library.
After contract deployment it can be used as a library.
let docauth = new DocAuthenicator(
nodeUrl, // nodeUrl
receipt.contractAddress, // contractAddress
privateKey // private key that is used for signing
);
let txReceipt = await docauth.addProof(fileBuffer, uid);
let docProof = docauth.readProof(buffer);
The Doc Authenticator requires a contract that needs to be deployed to the blockchain. The ./deploydocauthenticator
file allows for flexible contract deployment on any blockchain.
import deployDocAuth from './deploydocauthenticator';
const nodeUrl = "HTTP://xyz";
const privateKey = "abc";
deployDocAuth(nodeUrl,privateKey)
.then( async receipt => {
logger.info("Contract deployed. Contract address: " + receipt.contractAddress);
});
FAQs
This is the SUKU Blockchain Document Authenticator Library. It can be used to write blockchain proofs (signed hashes) of files to the blockchain. It expects a deployed version of the [SUKU Ethereum Node API](https://github.com/SukuLab/suku-ethereum-node-a
We found that @suku/doc-auth-lib demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.