1.0.3 • Published 1 year ago
vue3-eimzo v1.0.3
vue-eimzo
Installation
https://www.npmjs.com/package/vue3-eimzo
npm i vue3-eimzo
# or
yarn add vue3-eimzoInstalling as a plugin
import VueEimzo from 'vue3-eimzo'
app.use(VueEimzo)
// you can access EIMZO client as $eimzo inside vue instanceMethods
await this.$eimzo.install()
this.certs = await this.$eimzo.listAllUserKeys()
let loadKeyResult = await this.$eimzo.loadKey(key)
let cert = await this.$eimzo.getMainCertificate(loadKeyResult.id)
let certInfo = await this.$eimzo.getCertInfo(cert)
let result = await this.$eimzo.signPkcs7(key, 'Hello world')
let token = await this.$eimzo.getTimestampToken(result.signature_hex)Project setup
yarn installCompiles and hot-reloads for development
yarn serveCompiles and minifies for production
yarn buildRun your unit tests
yarn test:unitLints and fixes files
yarn lint