All Projects → CodeChain-io → codechain-primitives-js

CodeChain-io / codechain-primitives-js

Licence: ISC license
JavaScript functions and classes for CodeChain primitives

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to codechain-primitives-js

scalaj
scala/java interoperability, as deep as you want
Stars: ✭ 20 (+53.85%)
Mutual labels:  primitives
ArrayInterface.jl
Designs for new Base array interface primitives, used widely through scientific machine learning (SciML) and other organizations
Stars: ✭ 111 (+753.85%)
Mutual labels:  primitives
geometrize-haxe-demo
Demo using Geometrize Haxe and HaxeFlixel to recreate images with geometric primitives
Stars: ✭ 17 (+30.77%)
Mutual labels:  primitives
primitives
Foundational components for React Native UI
Stars: ✭ 38 (+192.31%)
Mutual labels:  primitives
frunzik
Lightweight C library for functional programming.
Stars: ✭ 28 (+115.38%)
Mutual labels:  primitives
alfa-ui-primitives
Alfa-Bank UI primitives for sharing between platforms
Stars: ✭ 31 (+138.46%)
Mutual labels:  primitives
Primitive
Reproducing images with geometric primitives.
Stars: ✭ 11,657 (+89569.23%)
Mutual labels:  primitives
3d Machine Learning
A resource repository for 3D machine learning
Stars: ✭ 7,405 (+56861.54%)
Mutual labels:  primitives
Chamfers-for-OpenSCAD
Create OpenSCAD primitives with 45° chamfers
Stars: ✭ 77 (+492.31%)
Mutual labels:  primitives
MLBlocks
A library for composing end-to-end tunable machine learning pipelines.
Stars: ✭ 94 (+623.08%)
Mutual labels:  primitives

codechain-primitives-js npm version Build Status codecov

JavaScript functions and classes for CodeChain primitives

Installing a package

# npm
npm install codechain-primitives
# yarn
yarn add codechain-primitives

Getting started

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

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

Functions

  • blake256
  • blake256WithKey
  • ripemd160
  • signEcdsa
  • verifyEcdsa
  • recoverEcdsa
  • generatePrivateKey
  • getPublicFromPrivate
  • toHex
  • getAccountIdFromPrivate
  • getAccountIdFromPublic

Classes

  • H128, H160, H256, H512
  • U64, U128, U256
  • AssetAddres
  • PlatformAddress

API Documentation

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].