5d0816430f
* rename pkg/linksharing to linksharing * rename pkg/httpserver to linksharing/httpserver * rename pkg/eestream to uplink/eestream * rename pkg/stream to uplink/stream * rename pkg/metainfo/kvmetainfo to uplink/metainfo/kvmetainfo * rename pkg/auth/signing to pkg/signing * rename pkg/storage to uplink/storage * rename pkg/accounting to satellite/accounting * rename pkg/audit to satellite/audit * rename pkg/certdb to satellite/certdb * rename pkg/discovery to satellite/discovery * rename pkg/overlay to satellite/overlay * rename pkg/datarepair to satellite/repair
20 lines
478 B
Go
20 lines
478 B
Go
// Copyright (C) 2018 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
package certdb
|
|
|
|
import (
|
|
"context"
|
|
"crypto"
|
|
|
|
"storj.io/storj/pkg/storj"
|
|
)
|
|
|
|
// DB stores uplink public keys.
|
|
type DB interface {
|
|
// SavePublicKey adds a new bandwidth agreement.
|
|
SavePublicKey(context.Context, storj.NodeID, crypto.PublicKey) error
|
|
// GetPublicKey gets the public key of uplink corresponding to uplink id
|
|
GetPublicKey(context.Context, storj.NodeID) (crypto.PublicKey, error)
|
|
}
|