Skip to content

switched npm package polyfill for bigint to big-integer, updated Sign… #411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 74 additions & 10 deletions examples/sites/devcon-issuer/react/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/sites/devcon-issuer/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"asn1js": "^2.0.26",
"big-integer": "^1.6.48",
"bigint-polyfill": "^0.1.0",
"isevn": "^2.0.2",
"react": "^17.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import { getParametersValue, clearProps, bufferToHexCodes } from "pvutils";
import AlgorithmIdentifier from "./AlgorithmIdentifier.js";
import PublicKeyInfo from "./PublicKeyInfo.js";
import BigInt from "bigint-polyfill";
import BigInt from "big-integer";

export class DevconTicket {
//**********************************************************************************
Expand Down Expand Up @@ -89,17 +89,17 @@ export class DevconTicket {

if ("devconId" in asn1.result) {
const devconId = asn1.result["devconId"].valueBlock._valueHex;
this.devconId = new BigInt("0x" + bufferToHexCodes(devconId));
this.devconId = new BigInt("0x" + bufferToHexCodes(devconId)).value;
}

if ("ticketId" in asn1.result) {
const ticketId = asn1.result["ticketId"].valueBlock._valueHex
this.ticketId = new BigInt("0x" + bufferToHexCodes(ticketId));
this.ticketId = new BigInt("0x" + bufferToHexCodes(ticketId)).value;
}

if ("ticketClass" in asn1.result) {
const ticketClass = asn1.result["ticketClass"].valueBlock._valueHex;
this.ticketClass = new BigInt("0x" + bufferToHexCodes(ticketClass));
this.ticketClass = new BigInt("0x" + bufferToHexCodes(ticketClass)).value;
}

//endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@ export class Negotiator {
}

// Return tickets for web
return tickets.web ? tickets.web : [];
return tickets.web;
}
}
Loading