Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@spartan-hc/holo-hash
Advanced tools
new HoloHash( input )
A Javascript library for managing Holochain's HoloHash
types.
This module is intended to provide Javascript classes for managing the various HoloHash
types. It
is designed to resemble the struct names and implementations based on Holochain's holo_hash
crate
(https://crates.io/crates/holo_hash). Although, method names and formats have been modified to
match Javascript's architecture.
uhCAkzycGKqICX7BJ11aehXkQ0ebZd9A0m08f-p8c1Pyy4uMlNUQU
)u
)
zycGKqICX7BJ11aehXkQ0ebZd9A0m08f-p8c1Pyy4uM
zycGKqICX7BJ11aehXkQ0ebZd9A0m08f-p8c1Pyy4uMlNUQU
hCAkzycGKqICX7BJ11aehXkQ0ebZd9A0m08f-p8c1Pyy4uMlNUQU
holo_hash
crate)instanceof
(new AgentPubKey(...) instanecof HoloHash) === true
(new AgentPubKey(...) instanecof AnyDhtHash) === true
(new AgentPubKey(...) instanecof AgentPubKey) === true
(new AgentPubKey(...) instanecof EntryHash) === false
npm i @spartan-hc/holo-hash
import { HoloHash } from '@spartan-hc/holo-hash';
new HoloHash("uhCAkzycGKqICX7BJ11aehXkQ0ebZd9A0m08f-p8c1Pyy4uMlNUQU");
// AgentPubKey(39) [
// 132, 32, 36, 207, 39, 6, 42, 162, 2,
// 95, 176, 73, 215, 86, 158, 133, 121, 16,
// 209, 230, 217, 119, 208, 52, 155, 79, 31,
// 250, 159, 28, 212, 252, 178, 226, 227, 37,
// 53, 68, 20
// ]
Alternatively, attach a method to the native String.prototype
.
import { bindNative } from '@spartan-hc/holo-hash';
bindNative();
"uhCAkzycGKqICX7BJ11aehXkQ0ebZd9A0m08f-p8c1Pyy4uMlNUQU".toHoloHash();
// AgentPubKey(39) [
// 132, 32, 36, 207, 39, 6, 42, 162, 2,
// 95, 176, 73, 215, 86, 158, 133, 121, 16,
// 209, 230, 217, 119, 208, 52, 155, 79, 31,
// 250, 159, 28, 212, 252, 178, 226, 227, 37,
// 53, 68, 20
// ]
See docs/API.md
See CONTRIBUTING.md
FAQs
A Javascript library for managing Holochain's HoloHash types
The npm package @spartan-hc/holo-hash receives a total of 1 weekly downloads. As such, @spartan-hc/holo-hash popularity was classified as not popular.
We found that @spartan-hc/holo-hash demonstrated a healthy version release cadence and project activity because the last version was released less than 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.