JSPM

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

utils for gitpay.org and related systems

Package Exports

  • gitpay

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 (gitpay) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Stories in Ready

util

Join the chat at https://gitter.im/gitpay/util

commands

btc <nick>                   - get bitcoin and testnet address
code                         - shows gitpay code of conduct
decrypt <message> <key>      - decrypt message with key file
encrypt <message> <key>      - encrypt message with key uri
help                         - shows help message
id <nick>                    - shows nick details in turtle
keys <nick>                  - get uris of keys for a nick
me <nick>                    - saves your identity for convenience
nick <nick>                  - saves your nick for convenience
pubkey <key>                 - saves your pub key URI for convenience
privkey <key>                - saves your priv key file for convenience
sign <message> <key>         - sign message with key file
verify <message> <sig> <key> - verify a signature with key file and message
version                      - shows version number

Commands are currently run from the commands directory. TODO: package into cli parent script.

installation

git clone https://github.com/gitpay/util.git
cd util/commands

examples

encrypt

./encrypt.js gitpay
jWN9C6Rj/i5jQh1JaohfOEsXkDHy+9j+jKuajAnVmfMh9As4XxvWM9Bd6T277EX1vZB80gq9otqintB8TG7GYTJ8NuGnMGJQlRWYLllIHaD6Jnv5UW1qf5HtvQ1wRQzeI2+MHccXB3xD3qc0FlGLbF22cGe79CHPFBRW2U7ij7ikGZK8iaAUr79o1PR6g0B6fuw44DGBJISqLwmiBbbYhSCHqfih/hkFv5gB1gSWA9rZ0+vmyMr5+fOPgM1AblljujaqAWXRdoNvzyVF0mwiq1NUAtsedxIg+TEBMQO+6gE7IXk90ZneaaCIgBOvzothBy36J9QJfGgoa3EMqqeG4g==

decrypt

./decrypt.js jWN9C6Rj/i5jQh1JaohfOEsXkDHy+9j+jKuajAnVmfMh9As4XxvWM9Bd6T277EX1vZB80gq9otqintB8TG7GYTJ8NuGnMGJQlRWYLllIHaD6Jnv5UW1qf5HtvQ1wRQzeI2+MHccXB3xD3qc0FlGLbF22cGe79CHPFBRW2U7ij7ikGZK8iaAUr79o1PR6g0B6fuw44DGBJISqLwmiBbbYhSCHqfih/hkFv5gB1gSWA9rZ0+vmyMr5+fOPgM1AblljujaqAWXRdoNvzyVF0mwiq1NUAtsedxIg+TEBMQO+6gE7IXk90ZneaaCIgBOvzothBy36J9QJfGgoa3EMqqeG4g==
gitpay

sign

./sign.js gitpay
p+COR37L4odjO4zO58OcHWF+HmZZx5qwemB6xvOl2s1sys46RjvdUaIG+TXmWXZy1G6G5gVcARI12q1oDJ0iqOPX3GkEnV69iycvTNZClnDwoPyMG7RnT7wk7jTZluWmHKxb/2kBpGRIFo+AWGFeawe5QSCWSsXbZCd5TAGjgLbNhO7BAET7HxXF19X6QbyMWF6W97O6sKBaG72vFvRXBqb9gKIYuNPJz7GR0mWtI/KeGDdLi5QWqjFCnsj6FUgnAQuQQeP8M2+OlWbaVTAM72zP0jIqtOEMPy3+M9FTgj3hpDwUFiUBnmTzbP6YFNxasia5srDDPRLlP9oxoH0kZA==

verify

./verify.js gitpay p+COR37L4odjO4zO58OcHWF+HmZZx5qwemB6xvOl2s1sys46RjvdUaIG+TXmWXZy1G6G5gVcARI12q1oDJ0iqOPX3GkEnV69iycvTNZClnDwoPyMG7RnT7wk7jTZluWmHKxb/2kBpGRIFo+AWGFeawe5QSCWSsXbZCd5TAGjgLbNhO7BAET7HxXF19X6QbyMWF6W97O6sKBaG72vFvRXBqb9gKIYuNPJz7GR0mWtI/KeGDdLi5QWqjFCnsj6FUgnAQuQQeP8M2+OlWbaVTAM72zP0jIqtOEMPy3+M9FTgj3hpDwUFiUBnmTzbP6YFNxasia5srDDPRLlP9oxoH0kZA==
true

git pay utils

Utils for dealing with PKI

  • get public key from openssh
  • get private key from openssh
  • convert openssh keys to x.509 certifiate
  • generate webid tls certificates