🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@anzerr/banano.talk

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anzerr/banano.talk

I saw the way [monkeytalks](https://github.com/BananoCoin/monkeytalks) encodes text into the amount in a transaction. I wanted to expand on this idea to try and get longer text saved. The encoding can be slimed down by using the pow to store the charset.

Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
15
200%
Maintainers
1
Weekly downloads
 
Created
Source

Intro

I saw the way monkeytalks encodes text into the amount in a transaction. I wanted to expand on this idea to try and get longer text saved. The encoding can be slimed down by using the pow to store the charset. If we use the past two digest of the PoW that expands the charset to 65535.

This is a first attempt to use this expanded charset to store longer text.

Install

npm install --save git+https://github.com/anzerr/banano.talk.git
npm install --save @anzerr/banano.talk

Example

const Talk = require('banano.talk');

(new Talk()).encode('howtobanano.info').then((res) => {
	console.log(res);
}).catch(console.log);

The output should look like this

{
    text: 'howtobanano.info ',
    charset: '0000',
    blocks: ['h', 'o', 'w', 'to', 'b', 'an', 'an', 'o', '.', 'in', 'f', 'o', ' '],
    raw: ['37',
        '28',
        '40',
        '45',
        '22',
        '56',
        '56',
        '28',
        '14',
        '46',
        '34',
        '28',
        '0'
    ],
    code: '000028344614285656224540283719'
}

FAQs

Package last updated on 07 Aug 2019

Did you know?

Socket

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.

Install

Related posts