Skip to content

prashanthbn/escs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Electronic Skill Credential Specification

Sample Python3 code to create and verify a digitally signed skill credential.

Using the sample scripts

These instructions assume that you have cloned the respository locally, and are in the root of the repo

  1. Create a new python3 virtualenv
  2. Once the virtualenv is setup and activated, install the package and the scripts
$ pip3 install .
  1. Run the script to sign a credential given a private key and public key (You could use ssh-keygen to create a keypair. Instead of saving the keypair to the default location, save to a location of your choice). The public key should be in the same directory as the private key with the extension .pub
$ python3 scripts/signature.py --key <path_to_private_key> --sign <path_to_credential_file>

This will run the script and output a signed version of the credential in credential_file. This output can be re-directed to a file:

$ python3 scripts/signature.py --key <path_to_private_key> --sign <path_to_credential_file> > signed_credential.json
  1. Verify the signed document using the public key contained in the credential
$ python3 scripts/signature.py --verify signed_credential.json

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages