Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simple-js-schnorr

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-js-schnorr

this project is intended as an easy to use schnorr signatures. (note: if you don't know what an elliptic curve is you can ignore all curve parameters)

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

simple-js-schnorr

this project is intended as an easy to use schnorr signatures. (note: if you don't know what an elliptic curve is you can ignore all curve parameters)

creating a new identity

const identity = Identity.new()

if you would like to use a curve besides secp256k1

const ECMath = require('simple-js-ec-math')
const g = new ECMath.ModPoint(x,y)
const curve = new ECMath.Curve(<a>, <b>, <n>, <p>, g, <preprocessing>)
const identity = Identity.new(curve)

opening an existing identity using a private key

Identity.fromKey(<private number>, <curve?>)

opening a identity using a wif

Identity.fromWif(<private wif>, <curve?>)

opening a identity using sec1

Identity.fromSec1(<private wif>, <curve?>)

retrievable items in a identity

identity.key
identity.sec1Compressed
identity.sec1Uncompressed
identity.wif
identity.address
identity.compressAddress

signing a message

const signature = identity.sign(<message>)

verify a signature

identity.verify(<message>, <signature>)

verify address

identity.validateAddress(<address>)

get public point

identity.publicPoint

key exchange

<identity>.keyExchange(<identity>)

coming soon

signature and key combinations

contribute

bitcoin address: 1KKiniL7QnMPZZLjgGB2Kq1d7zsjUr6TnS

ethereum address: 0x177b258bD53A8F7d8C609A9277A60A51d1e7e0e0

Keywords

FAQs

Package last updated on 18 May 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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc