New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@albertiprotocol/sdk-ts

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@albertiprotocol/sdk-ts

A Typescript Implementation Of Alberti Protocol To Build Your Clients!

unpublished
latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
2
Created
Source

Alberti Protocol SDK

The Alberti Protocol SDK is a comprehensive toolkit for cryptographic operations, including message encryption, decryption, signing, verification, and identity management. applications.

Installation

// development BETA
npm install github:AlbertiProtocol/sdk-ts

// stable
npm install @albertiprotocol/sdk-ts

Rules

  • All media should be shared via IPFS
  • Client must store everything on the device
  • Pools are temporary place, for exchange of information

Commit

A commit is the standardised signed packet of data, ready to be relayed to others.

const { postTemplate, createCommit } = require("@albertiprotocol/sdk-ts");

const privateKey = "your-private-key";
const difficulty = 4;

const post_content = "Bitcoin Price is $35,270";
const post_tags = ["bitcoin", "cryptocurrency", "fintech"];

const attachments = [
  { type: "img", cid: "QmXpYFUKcLik57tYeL5ccw5Acc4pvo8sVXZhf8oAAnQTUQ" },
  { type: "img", url: "https://i.ibb.co/q9V5S1Q/graph-1.png" },
];

const postdata = postTemplate(post_content, post_tags, attachments);

const commitdata = createCommit(privateKey, postdata, "post", difficulty);

// Now post commitdata to any pool

FAQs

Package last updated on 18 Jun 2024

Related posts