Skip to content

Siafund keygen

David Vorick requested to merge siafund-keygen into master

This adds a cli tool for generating multisig keys and addresses. While there is no way to spend the results, support for that will be added before launch. At least this way people can get their keys.

The files created are a simple struct:

type KeyPair struct {
    Header string
    Version string
    Index int
    SecretKey crypto.SecretKey
    UnlockConditions types.UnlockConditions
}

The header is for identifying the file without knowing the extension. The version is in case we need to change anything. Then there's an index, which allows you to find the public key associated with your secret key. Finally there's the unlock conditions, which is required for spending an address.

The keys generated can be used for siacoins or siafunds, but are mostly intended for helping people spend siafunds.

Merge request reports