
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
@bcrl/wallet-sdk
Advanced tools
An SDK to interact with the wallet.
install either with npm or yarn
npm install @bcrl/wallet-sdk
Or include the following script tag in your html
<script
type="module"
src="https://cdn.jsdelivr.net/npm/@bcrl/wallet-sdk@latest/index.js"
></script>
To interact with the agent, you need a valid token for the authorization. You also need to pass the agent url and the wallet url.
To play around with a minimal example, you can use this JSfiddle
In case of issuance, you need also to pass an array of credentials.
<button id="issue">Issue</button>
<img id="code" />
<a id="link" target="_blank">Click here</a>
document.getElementById('issue').addEventListener('click', () => {
const token = '';
const wallet = '';
const credentials = [];
const issuer = new Issuer(token, wallet);
issuer
.issue({
credentialDataSupplierInput: {},
credentials,,
user_pin_required: false,
})
.then((res) => {
const qrcode = `https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=${encodeURIComponent(
res.url
)}`;
document.getElementById('code').setAttribute('src', qrcode);
document.getElementById('link').setAttribute('href', res.url);
const interval = setInterval(async () => {
const status = await issuer.getStatus(res.id);
switch (status) {
case 'CREDENTIAL_ISSUED':
clearInterval(interval);
alert('done :)');
break;
case 'ERROR':
clearInterval(interval);
alert('error :(');
break;
}
}, 1000);
});
});
In case of verification, you need to pass the id of the credential you want to verify.
<button id="verify">Verify</button>
<img id="code" />
<a id="link" target="_blank">Click here</a>
document.getElementById('verify').addEventListener('click', () => {
const token = '';
const wallet = '';
const id = '';
const verifier = new Verifier(token, wallet);
verifier
.verify({
id,
})
.then((res) => {
const qrcode = `https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=${encodeURIComponent(
res.url
)}`;
document.getElementById('code').setAttribute('src', qrcode);
document.getElementById('link').setAttribute('href', res.url);
const interval = setInterval(async () => {
const status = await verifier.getStatus(res.id, id);
let values;
switch (status.status) {
case 'verified':
clearInterval(interval);
if (Array.isArray(status.payload.vp_token)) {
values = status.payload.vp_token.map((vp) =>
verifier.handleVp(vp)
);
} else {
values = verifier.handleVp(status.payload.vp_token);
}
alert(JSON.stringify(values, null, 2));
break;
case 'error':
clearInterval(interval);
break;
}
}, 1000);
});
});
you can also use a service token to get access to the remote agent:
import { TokenConfig, getRemoteAgent } from '@bcrl/wallet-sdk';
const auth: TokenConfig = {
clientId: '',
clientSecret: '',
};
getRemoteAgent('https://agent.web3.yanacocha.fit.fraunhofer.de/fit', auth).then(
(agent) => {}
);
FAQs
An SDK to interact with the wallet.
The npm package @bcrl/wallet-sdk receives a total of 12 weekly downloads. As such, @bcrl/wallet-sdk popularity was classified as not popular.
We found that @bcrl/wallet-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.