18 lines
354 B
JavaScript
18 lines
354 B
JavaScript
import {
|
|
Encrypter,
|
|
PrivateKey,
|
|
StoreRemoteHTTP,
|
|
} from '../../packages/stack/src/index.js';
|
|
|
|
const privateKey = PrivateKey.generateRandom();
|
|
const encrypter = Encrypter.generateRandom();
|
|
const storeHTTP = new StoreRemoteHTTP(
|
|
'http://localhost:3000/store',
|
|
privateKey,
|
|
encrypter,
|
|
);
|
|
|
|
const keys = await storeHTTP.keys();
|
|
|
|
console.log(keys);
|