Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
rune-decoder
Advanced tools
A simple JavaScript libary for decoding runes.
Still in Beta and may have some bugs and may have breaking API changes in future
Install directly from the repo:
yarn add https://github.com/clams-tech/rune-decoder
npm i https://github.com/clams-tech/rune-decoder
Using the decode method you can get a similar result to that of passing a rune to the Core Lightning Decode method:
import { decode } from 'decode-rune'
const rune =
'aTEhoWOAllxYDgWSUyGPEKVeUwr-MG_Il1HXZis1MYs9NCZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl'
const decoded = decode(rune)
console.log(decoded)
// {
// id: '4',
// hash: '693121a16380965c580e059253218f10a55e530aff30ffc89751d7662b35318b',
// restrictions: [
// {
// alternatives: ['method^list', 'method^get', 'method=summary'],
// summary: 'method starts with list OR method starts with get OR method is equal to summary'
// },
// {
// alternatives: ['method/listdatastore'],
// summary: 'method is not equal to listdatastore'
// }
// ]
// }
If a rune is invalid, null
will be returned.
FAQs
Decode runes
We found that rune-decoder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.