2.0.1 • Published 8 years ago

asymmetrical-signing v2.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Asymmetrical Signing

NPM version Build status Test coverage Dependency Status License Downloads

Asymmetrical signing using secp256k1. Sign data with a private key, the allow others to verify the data with a public key.

Example

const asign = require('asymmetrical-signing')

// create keys
const privateKey = asign.createPrivateKey()
const publicKey = asign.createPublicKey(privateKey)

// convert some data into a message
const message = asign.createMessage({
  message: 'something'
})

// sign it with the private ey
const signature = asign.signMessage(message, privateKey)

// verify the data with a public key
console.log(asign.verifyMessage(message, signature, publicKey))

Data

Types of data supported:

  • string
  • Buffer
  • objects
  • arrays
2.0.1

8 years ago

2.0.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago