
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@relaycorp/relaydev
Advanced tools
This command-line application is a thin wrapper around the Relaynet core library for Node.js and it contains a series of utilities aimed at implementers of the Relaynet protocol suite. If you're porting Relaynet to a new programming language or platform, you may want to check the input and output of your implementation against these utilities.
Relaynet couriers, service providers or end users do not need to use this software at all.
You must have Node.js 10 or newer to use this software. To get the latest stable version, run:
npm install -g @relaycorp/relaydev
And to get or upgrade to the latest development version, run:
npm install -g @relaycorp/relaydev@dev
relaydev
CLITo learn how to use a sub-command, run it without arguments or with the --help
option.
key
: Key managementrelaydev key gen-rsa
: Generate an RSA keyFor example, run the following to inspect the generated key:
relaydev key gen-rsa | openssl rsa -check -in - -inform DER -noout -text
relaydev key gen-ecdh
: Generate an ECDH keyFor example, run the following to inspect the generated key:
relaydev key gen-ecdh | openssl pkey -in - -inform DER -noout -text
relaydev key get-rsa-pub
: Derive the public key of an RSA private keyFor example, run the following to inspect the extracted public key:
relaydev key gen-rsa | \
relaydev key get-rsa-pub | \
openssl rsa -in - -inform DER -pubin -noout -text
relaydev cert issue
: Issue a Relaynet PKI CertificateFor example, the following will create a self-issued gateway certificate that expires the following week:
END_DATE="$(date --date='next week' --iso-8601=seconds)"
relaydev key gen-rsa > key.der
openssl rsa -in key.der -inform DER -pubout -outform DER | \
relaydev cert issue --type=gateway --end-date="${END_DATE}" key.der \
> cert.der
relaydev cert inspect
: Inspect a Relaynet PKI CertificateFor example, to inspect the certificate cert.der
, run:
relaydev cert inspect < cert.der
relaydev ramf serialize
: Create and serialize a RAMF messageFor example, run the following to create a cargo cargo.ramf
whose payload is contained in the file cargo-message-set.cms
:
cat cargo-message-set.cms | relaydev ramf serialize cargo \
--recipient-address=https://example.com \
--sender-key=key.der \
--sender-cert=cert.der \
> cargo.ramf
relaydev ramf deserialize
: Deserialize and validate a RAMF messageFor example, to inspect the cargo message created above, run:
relaydev ramf deserialize < cargo.ramf
If you're contributing to this package, after installing it locally with npm install
, make sure to run npm run build:dev
to transpile the TypeScript code and make the relaydev
script available in your $PATH
-- you'll have to re-run that whenever you want to check your changes.
To run the functional tests, run npm test
. Note you'll need the following dependencies in your $PATH
to run the tests:
openssl
jq
FAQs
Development tools for implementers of the Relaynet Protocol Suite
We found that @relaycorp/relaydev demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.