Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

wampy-cryptosign

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wampy-cryptosign

Wampy.js Cryptosign-based Authentication plugin

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

wampy-cryptosign

WAMP Cryptosign-based Authentication plugin for Wampy.js.

NPM version Build Status Code coverage MIT License Known Vulnerabilities

Description

wampy-cryptosign exposes 3 methods:

  • hex2bytes(str). Helper method to convert hex string to bytes array.
  • bytes2hex(bytes). Helper method to convert bytes array to hex string.
  • sign(privateKey). Probably the only function you need. Used to automatically create a Ed25519 signature for challenge message, using private key. This function can be passed as onChallenge callback.

See examples in Wampy.js docs section "Cryptosign-based Authentication"

Thanks JetBrains for the best IDEs and support for open source!

jetbrains logo

Keywords

WAMP

FAQs

Package last updated on 20 Oct 2022

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