0.7.0-unstable.51 • Published 2 years ago

@transmute/universal-wallet-google-secrets v0.7.0-unstable.51

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

@transmute/universal-wallet-google-secrets

npm i @transmute/universal-wallet-google-secrets --save

Be sure to enable: Google Cloud Secret Manager.

And make sure your service account has the appropriate permissions.

In order to test as a service account by key file use:

export GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/sa-key.json

Usage

import { pluginFactory } from "@transmute/universal-wallet-google-secrets";

const wallet = pluginFactory.build();

const s0 = await wallet.writeSecret(
  "555555555555",
  "seed",
  "7052adea8f9823817065456ecad5bf24dcd31a698f7bc9a0b5fc170849af4226"
);

const s1 = await wallet.readSecret("555555555555", "seed");
// {
//     '@context': [ 'https://w3id.org/wallet/v1' ],
//     id: 'urn:google:projects/555555555555/secrets/seed/versions/1',
//     type: 'GoogleCloudSecret',
//     tags: [ 'google' ],
//     value: '7052adea8f9823817065456ecad5bf24dcd31a698f7bc9a0b5fc170849af4226'
// }

Getting Started

git clone git@github.com:transmute-industries/verifiable-data.git
npm packages/universal-wallet-google-secrets; // note that this is a mono repo
npm i
npm run lint
npm run test
npm run build
0.7.0-unstable.9

3 years ago

0.7.0-unstable.8

3 years ago

0.7.0-unstable.7

3 years ago

0.7.0-unstable.6

3 years ago

0.7.0-unstable.5

3 years ago

0.7.0-unstable.4

3 years ago

0.7.0-unstable.3

3 years ago

0.7.0-unstable.2

3 years ago

0.7.0-unstable.1

3 years ago

0.6.1-unstable.7

3 years ago

0.6.1-unstable.5

3 years ago

0.6.1-unstable.6

3 years ago

0.6.1-unstable.4

3 years ago

0.6.1-unstable.3

3 years ago