Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPublicKeyNotFound = errors.Wrap(stderr.New("public key not found"), http.StatusUnauthorized)
ErrPublicKeyNotFound is returned by AuthorizedKeysStorage.GetPublicKey if authorized key is not found
Functions ¶
This section is empty.
Types ¶
type AuthorizedKeysStorage ¶
type AuthorizedKeysStorage interface { GetPublicKey(ctx context.Context, keyHash gotez.PublicKeyHash) (crypt.PublicKey, error) ListPublicKeys(ctx context.Context) ([]crypt.PublicKeyHash, error) }
AuthorizedKeysStorage represents an authorized public keys storage
func Must ¶
func Must(s AuthorizedKeysStorage, err error) AuthorizedKeysStorage
Must panics in case of error
func StaticAuthorizedKeys ¶
func StaticAuthorizedKeys(pub ...crypt.PublicKey) (AuthorizedKeysStorage, error)
StaticAuthorizedKeys returns an AuthorizedKeysStorage that uses the given public keys
func StaticAuthorizedKeysFromRaw ¶
func StaticAuthorizedKeysFromRaw(pub ...tz.PublicKey) (AuthorizedKeysStorage, error)
StaticAuthorizedKeysFromRaw returns an AuthorizedKeysStorage that uses the given public keys
Click to show internal directories.
Click to hide internal directories.