
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@certifaction/verification-vue-component
Advanced tools
Vue component for Certifaction verification
The verification vue-component enables you to easily integrate the Certifaction Verification Tool into your VueJS project.
npm install @certifaction/verification-vue-component
# or if using yarn
yarn add @certifaction/verification-vue-component
import CertifactionVerification from '@certifaction/verification-vue-component'
new Vue({
components: {
CertifactionVerification
}
})
Example code how to load the component translations:
import merge from 'lodash.merge'
import verificationDE from '@certifaction/verification-vue-component/src/locales/de.json'
import verificationEN from '@certifaction/verification-vue-component/src/locales/en.json'
import verificationFR from '@certifaction/verification-vue-component/src/locales/fr.json'
import verificationIT from '@certifaction/verification-vue-component/src/locales/it.json'
function loadLocaleMessages() {
// Load your messages
}
const messages = merge({
de: verificationDE,
en: verificationEN,
fr: verificationFR,
it: verificationIT
}, loadLocaleMessages())
new VueI18n({
messages
})
@import "~@certifaction/verification-vue-component/src/style/components/certifaction_verification";
// To include the PDF viewer style:
.certifaction-verification {
@import "~@certifaction/verification-vue-component/dist/pdf/pdf_viewer";
}
Type: boolean
| Required: false
| Default: false
Show demo documents to see the different verification results.
Type: URL
| Required: true
URL to the PDF webassembly file.
Example to use the wasm from the Certifaction CDN:
// vue.config.js
process.env.VUE_APP_CACHE_BUSTER = new Date().getTime().toString()
const pdfWasmUrl = new URL(`/wasm/pdf_reader.wasm?t=${process.env.VUE_APP_CACHE_BUSTER}`, process.env.VUE_APP_CERTIFACTION_CDN_BASE_URL)
Type: string
| Required: true
URL to the PDF.js worker (@certifaction/verification-vue-component/dist/pdf/pdfjs.worker.min.js
)
vue.config.js example:
chainWebpack: config => {
config.module
.rule('js')
.exclude.add(/\.worker(\.min)?\.js$/)
config.module
.rule('worker')
.test(/\.worker(\.min)?\.js$/)
.use('file-loader')
.loader('file-loader')
.tap(() => ({
name: 'js/[name].[hash:8].[ext]',
esModule: false
}))
}
Type: string
| Required: true
URL to the folder where the cmaps are stored. (pdf/cmaps/
when using the vue.config.js example below)
vue.config.js example:
chainWebpack: config => {
config.plugin('copy')
.tap(args => {
args[0].push({
from: '@certifaction/verification-vue-component/dist/pdf/cmaps',
to: 'pdf/cmaps',
toType: 'dir',
context: '../../node_modules'
})
return args
})
}
Type: string
| Required: false
| Default: https://mainnet.infura.io/v3/4559d381898847c0b13ced86a45a4ec0
Type: string
(HEX format) | Required: false
| Default: 0xf73e27c5008ff487803d2337fc3ac4016f6526e4
Type: array
(strings in HEX format) | Required: false
| Default: ['0x5ee4ec3cbee909050e68c7ff7a8b422cfbd72244']
Type: string
(HEX format) | Required: false
| Default: 0x5532ba4add77dd25fa11acc5a84e5f183f57525e
Type: string
(HEX format) | Required: false
| Default: 0x3f647d9f6a22768EA9c91C299d0AD5924c6164Be
Type: string
| Required: false
| Default: https://api.certifaction.io
Type: Object<VerifierInterface>
| Required: false
If you want to double check, add information, or simply make sure the user gets the correct result even though the block containing your transaction isn't finalized, you can provide a VerifierInterface
's implementation.
The class should only contain the method verify(fileHash)
. The method should return the attributes you want to override.
For an example on how to do that, check @certifaction/verification-core/examples/CertifactionOffchainVerifierExample.js
Released by Certifaction AG
FAQs
Vue component for Certifaction verification
We found that @certifaction/verification-vue-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.