mirror of https://github.com/poanetwork/gecko.git
21 lines
493 B
Go
21 lines
493 B
Go
// (c) 2019-2020, Ava Labs, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package keystore
|
|
|
|
import (
|
|
"github.com/ava-labs/gecko/database"
|
|
"github.com/ava-labs/gecko/ids"
|
|
)
|
|
|
|
// BlockchainKeystore ...
|
|
type BlockchainKeystore struct {
|
|
blockchainID ids.ID
|
|
ks *Keystore
|
|
}
|
|
|
|
// GetDatabase ...
|
|
func (bks *BlockchainKeystore) GetDatabase(username, password string) (database.Database, error) {
|
|
return bks.ks.GetDatabase(bks.blockchainID, username, password)
|
|
}
|