Documentation ¶
Index ¶
- func DeauthorizeBaking(transport string, id string) error
- func GetHighWatermark(transport string, id string) (hwm uint32, err error)
- func GetHighWatermarks(transport string, id string) (mainHWM, testHWM uint32, chainID string, err error)
- func SetHighWatermark(transport string, id string, hwm uint32) error
- func SetupBaking(transport string, id, keyID, chainID string, mainHWM, testHWM uint32) (pkh string, err error)
- type Config
- type Vault
- func (v *Vault) GetPublicKey(ctx context.Context, id string) (vault.StoredKey, error)
- func (v *Vault) ListPublicKeys(ctx context.Context) vault.StoredKeysIterator
- func (v *Vault) Name() string
- func (v *Vault) SignMessage(ctx context.Context, digest []byte, key vault.StoredKey) (crypt.Signature, error)
- func (v *Vault) VaultName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeauthorizeBaking ¶
func GetHighWatermarks ¶
Types ¶
type Config ¶
type Config struct { ID string `yaml:"id"` Keys []string `yaml:"keys"` CloseAfter time.Duration `yaml:"close_after"` Transport string `yaml:"transport"` }
Config represents Ledger signer backend configuration
type Vault ¶
type Vault struct {
// contains filtered or unexported fields
}
Vault is a Ledger signer backend
func (*Vault) GetPublicKey ¶
GetPublicKey returns a public key by given ID
func (*Vault) ListPublicKeys ¶
func (v *Vault) ListPublicKeys(ctx context.Context) vault.StoredKeysIterator
ListPublicKeys returns a list of keys stored under the backend
func (*Vault) SignMessage ¶
Click to show internal directories.
Click to hide internal directories.