signatory

command module
v0.0.1-beta4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2019 License: MIT Imports: 15 Imported by: 0

README

Signatory Logo

A Tezos Remote Signer

CII Best Practices CircleCI Maintainability Test Coverage

WARNING: This project is in active development. While we welcome users and feedback, please be warned that this project is a work in progress and users should proceed with caution.

What is Signatory?

Signatory is a remote signing daemon that allows people running Tezos bakers to securely sign endorsement and baking operations with a variety of different key management systems.

The goal of the Signatory service is to make key management as secure as possible in a Cloud and on premise HSM context.

Why Use Signatory?

Security and convenience are typically diametrically opposed. Signatory makes it easier for Tezos node operators to manage their keys in a secure way by offering several well-tested & supported signing options for cloud-based or hardware-based HSMs.

Quick Start

Coming soon


Features

Remote Signing

Signatory receives signing requests from either a baker or an endorser, signs the data using one of its backends, and returns a signature.

Observability

Signatory is also focused on observability, meaning that it exposes metrics about its operations. This allows operators to see historic trends, signing volumes, errors and latencies, enabling rich reporting and alerting capabilities.

Key Import

Key import is an important security consideration when choosing a Cloud HSM offering. Some HSM's allow you to generate the secret key internally, and the secret key can never be exported. Others allow for key import with different levels of security. The trade-offs in this setting are important.


How it Works

  • Tezos will send a signing request to Signatory
  • Signatory checks that the operation is either block or endorsement
  • Signatory will send the operation to the configured backend for singing
  • Upon receiving the signing operation from the backend, Signatory will validate the signature with a Tezos node (optional)
  • Signatory returns the operation signature to the Tezos node

Supported Signing Backends

Signatory currently supports Azure Key Vault. Other backend signing services are either in the planning phase, or are currently being added.

The service will support a variety of backend Key Management Systems (KMS) for secure handling of private keys. Most cloud based KMS systems offer a HSM backed mode, which is strongly recommended.

By supporting multiple Cloud KMS/HSM systems, we hope to help the network from centralization on a particular Cloud offering. In the first year of the Tezos network operation, there was anecdotal evidence that a lot of bakers run on AWS. AWS is a superb provider, but having a concentration of nodes on one cloud vendor centralizes the underlying infrastructure of the network, which is not desirable.

Backend KMS/HSM Support Status

Status
Azure KMS In Testing
YubiHSM2 In Testing
Google Cloud KMS Planned
AWS KMS Planned

Tezos Address Types

In Tezos, the signing algorithm can be inferred from the the first three characters of an address. For example, an address beginning with tz3 uses the P-256 algorithm. HSM's and Cloud based HSM's have support for a subset of the three algorithms supported by Tezos.

Signing Algorithm Support From Various Backends

tz1 tz2 tz3
Google Cloud KMS
AWS KMS
Azure KMS
YubiHSM2

Reporting Issues

Security Issues

To report a security issue, please contact security@ecadlabs.com or via keybase/jevonearth on keybase.io.

Reports may be encrypted using keys published on keybase.io using keybase/jevonearth.

Other Issues & Feature Requests

Please use the GitHub issue tracker to report bugs or request features.

Contributions

To contribute, please check the issue tracker to see if an existing issue exists for your planned contribution. If there's no Issue, please create one first, and then submit a pull request with your contribution.

For a contribution to be merged, it must be well documented, come with unit tests, and integration tests where appropriate. Submitting a "work in progress" pull request is welcome!


Alternative Remote Signers

At least three other remote signers are available to use with Tezos. Tezos also provides native support for baking with a Ledger Nano. We encourage bakers to, at a minimum, review these projects. We are eager to collaborate and be peers with these great projects.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL