# CryptoStoreBinding

`import { CryptoStoreBinding } from "destack:crypto/binding";`

Store binding family.

```ds title="CryptoStoreBinding"
export interface CryptoStoreBinding {
    readCryptoProviderCapability(): Result<CryptoProviderCapability, HostError>;
    openCryptoStore(options: &'a readonly CryptoStoreOptions): Result<CryptoStoreHandle, HostError>;
    closeCryptoStore(store: CryptoStoreHandle): Result<void, HostError>;
    listCryptoKeys(store: CryptoStoreHandle, query: &'a readonly CryptoKeyQuery): Result<CryptoKeyListPage, HostError>;
    listCryptoCertificates(store: CryptoStoreHandle, query: &'a readonly CryptoCertificateQuery): Result<CryptoCertificateListPage, HostError>;
}
```

[language/library/src/crypto/binding/store.ds:158:213](https://github.com/destack-sh/destack/blob/main/language/library/src/crypto/binding/store.ds#L158-L213)

## Members

### `readCryptoProviderCapability(): Result<CryptoProviderCapability, HostError>`

Read crypto provider capabilities.

### `openCryptoStore(options: &'a readonly CryptoStoreOptions): Result<CryptoStoreHandle, HostError>`

Open one crypto store.

### `closeCryptoStore(store: CryptoStoreHandle): Result<void, HostError>`

Close one crypto store.

### `listCryptoKeys(store: CryptoStoreHandle, query: &'a readonly CryptoKeyQuery): Result<CryptoKeyListPage, HostError>`

List keys from one store.

### `listCryptoCertificates(store: CryptoStoreHandle, query: &'a readonly CryptoCertificateQuery): Result<CryptoCertificateListPage, HostError>`

List certificates from one store.
