JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q32663F
  • License MIT

easy and light weight ecdsa implementation

Package Exports

  • simple-js-ecdsa

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (simple-js-ecdsa) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

simple-js-ecdsa

this project is intended as an easy to use ecdsa

creating a new identity

let identity = Identity.new()

opening an existing identity using a private key

Identity.fromKey(<private number>)

opening a identity using a wif

Identity.fromWif(<private wif>)

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)

signing in bip66 format

const signature = identity.bip66Sign(message)

verify bip66 signature

identity.verifyBip66(message, signature)

contribute

bitcoin address: 1KKiniL7QnMPZZLjgGB2Kq1d7zsjUr6TnS