Socket
Socket
Sign inDemoInstall

foundry-primitives

Package Overview
Dependencies
18
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    foundry-primitives

JavaScript classes for Foundry primitives


Version published
Weekly downloads
123
increased by55.7%
Maintainers
1
Install size
4.57 MB
Created
Weekly downloads
 

Readme

Source

foundry-primitives-js

JavaScript functions and classes for Foundry primitives

Installing a package

# npm
npm install foundry-primitives
# yarn
yarn add foundry-primitives

Getting started

// Using require
var primitives = require("foundry-primitives");
var H256 = primitives.H256;
var blake256 = primitives.blake256;

// Using import
import { blake256, H256 } from "foundry-primitives";

Functions

  • blake256
  • blake256WithKey
  • ripemd160
  • signEd25519
  • verifyEd25519
  • generatePrivateKey
  • getPublicFromPrivate
  • toHex
  • toArray
  • getAccountIdFromPrivate
  • getAccountIdFromPublic

Classes

  • H128, H160, H256, H512
  • U64, U128, U256
  • Address

API Documentation

https://codechain-io.github.io/foundry-primitives-js

Keywords

FAQs

Last updated on 05 Mar 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc